Skip to content

Commit

Permalink
Merge pull request #2395 from constantine2nd/develop
Browse files Browse the repository at this point in the history
test/Fix failing tests
  • Loading branch information
simonredfern committed Jun 16, 2024
2 parents f1303bf + 3d068cf commit db8a998
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions obp-api/src/test/scala/code/api/v3_1_0/ConsentTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,27 @@ class ConsentTest extends V310ServerSetup {
}

scenario("We will call the endpoint with user credentials", ApiEndpoint1, ApiEndpoint3, VersionOfApi, VersionOfApi2) {
setPropsValues("consumer_validation_method_for_consent"-> "CONSUMER_KEY_VALUE")
wholeFunctionality(RequestHeader.`Consent-JWT`)
setPropsValues("consumer_validation_method_for_consent"-> "CONSUMER_CERTIFICATE")
}

scenario("We will call the endpoint with user credentials and deprecated header name", ApiEndpoint1, ApiEndpoint3, VersionOfApi, VersionOfApi2) {
setPropsValues("consumer_validation_method_for_consent"-> "CONSUMER_KEY_VALUE")
wholeFunctionality(RequestHeader.`Consent-Id`)
setPropsValues("consumer_validation_method_for_consent"-> "CONSUMER_CERTIFICATE")
}

scenario("We will call the endpoint with user credentials-Implicit", ApiEndpoint1, ApiEndpoint3, VersionOfApi, VersionOfApi2) {
setPropsValues("consumer_validation_method_for_consent"-> "CONSUMER_KEY_VALUE")
wholeFunctionalityImplicit(RequestHeader.`Consent-JWT`)
setPropsValues("consumer_validation_method_for_consent"-> "CONSUMER_CERTIFICATE")
}

scenario("We will call the endpoint with user credentials and deprecated header name-Implicit", ApiEndpoint1, ApiEndpoint3, VersionOfApi, VersionOfApi2) {
setPropsValues("consumer_validation_method_for_consent"-> "CONSUMER_KEY_VALUE")
wholeFunctionalityImplicit(RequestHeader.`Consent-Id`)
setPropsValues("consumer_validation_method_for_consent"-> "CONSUMER_CERTIFICATE")
}
}

Expand Down

0 comments on commit db8a998

Please sign in to comment.