Skip to content

Commit

Permalink
Revert "feat(impl): [#519] test steps for bad case registering policy…
Browse files Browse the repository at this point in the history
… without payload"

This reverts commit 8c07fb2.
  • Loading branch information
ds-jhartmann committed May 13, 2024
1 parent 81609a7 commit d6d90b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,14 @@ public static ValidatableResponse registerPolicyForBpn(

final CreatePolicyRequest createPolicyRequest;
try {

CreatePolicyRequestBuilder builder = CreatePolicyRequest.builder();

if (validUntil != null) {
builder = builder.validUntil(OffsetDateTime.parse(validUntil));
}

builder = builder.businessPartnerNumber(bpn);

if (policyJson != null) {
builder = builder.payload(E2ETestHelperForPolicyStoreApi.jsonFromString(objectMapper, policyJson));
}

createPolicyRequest = builder.build();
createPolicyRequest = builder.businessPartnerNumber(bpn)
.payload(E2ETestHelperForPolicyStoreApi.jsonFromString(objectMapper,
policyJson))
.build();
} catch (JsonProcessingException e) {
throw new RuntimeException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,6 @@ public void iRegisterAPolicy(final String policyId, final String bpn, final Stri
validUntil);
}

@When("a policy WITHOUT payload is registered for BPN {string} and validUntil {string}")
public void iRegisterAPolicyWithoutPayload(final String bpn, final String validUntil) {
this.createPoliciesResponse = registerPolicyForBpn(this.authenticationPropertiesBuilder, null, bpn, validUntil);
}

@Given("I want to register a policy")
@Given("I want to update a policy")
public void iWantToRegisterAPolicy() {
Expand Down

0 comments on commit d6d90b7

Please sign in to comment.