Skip to content

Provide an environment value to implement BDD test with a mocked cybersource service #133

Open

Description

@sporniket

I want to implement BDD test on my implementation of Psp Integration.

Usually, I have a mean to tell that the PSP API url point to a Wiremock managed url to send back to my code a controlled answer.

I cannot do that with cybersource SDK and ends up having to really use the test environnement ('CAS'). It means that my test MUST use keys and certificates that will expire, and that they will break at a later time. And it also means that my test are flawed, as I cannot control for sure the content of the answers from cybersource.

⇒ I would like another environment, e.g. called 'MOCK', that would allow a configuration value to store the effective url to use, e.g. 'https://localost:4000/mock/cybs', to be able to implement correctly BDD tests.

Activity

  1. mahendya1002 commented on Apr 16, 2020

    @mahendya1002
    Contributor

    you can set mock url in serverUrl property in cybs.properties file or in Properties object before invoking Client.runTransaction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions