From ec52cf01ff7fd59c75cd97be6ff95d6ddeed85ba Mon Sep 17 00:00:00 2001 From: Sergii Shamrai <71881713+sergiishamrai-okta@users.noreply.github.com> Date: Mon, 23 Nov 2020 13:50:49 +0200 Subject: [PATCH] Add missing methods and update ITs --- .../sdk/tests/it/AuthorizationServerIT.groovy | 2 +- src/swagger/api.yaml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/integration-tests/src/test/groovy/com/okta/sdk/tests/it/AuthorizationServerIT.groovy b/integration-tests/src/test/groovy/com/okta/sdk/tests/it/AuthorizationServerIT.groovy index e59f572d039..898426c84af 100644 --- a/integration-tests/src/test/groovy/com/okta/sdk/tests/it/AuthorizationServerIT.groovy +++ b/integration-tests/src/test/groovy/com/okta/sdk/tests/it/AuthorizationServerIT.groovy @@ -566,7 +566,7 @@ class AuthorizationServerIT extends ITSupport { assertThat(createdPolicyRule, notNullValue()) assertThat(createdPolicyRule.getType(), equalTo(AuthorizationServerPolicyRule.TypeEnum.ACCESS)) - retrievedPolicy.deletePolicyRule(createdAuthorizationServer.getId(), createdPolicyRule.getId()) + createdPolicyRule.deletePolicyRule(createdAuthorizationServer.getId()) // delete may not effect immediately in the backend sleep(getTestOperationDelay()) diff --git a/src/swagger/api.yaml b/src/swagger/api.yaml index b37f6a2dbf9..0626ed9c868 100644 --- a/src/swagger/api.yaml +++ b/src/swagger/api.yaml @@ -7662,6 +7662,16 @@ definitions: - dest: policyId src: id operationId: getAuthorizationServerPolicy + - alias: updatePolicy + arguments: + - dest: policyId + src: id + operationId: updateAuthorizationServerPolicy + - alias: deletePolicy + arguments: + - dest: policyId + src: id + operationId: deleteAuthorizationServerPolicy x-okta-operations: - alias: listPolicyRules arguments: @@ -7730,6 +7740,13 @@ definitions: - dest: policyId parentSrc: id operationId: updateAuthorizationServerPolicyRule + - alias: deletePolicyRule + arguments: + - dest: ruleId + src: id + - dest: policyId + parentSrc: id + operationId: deleteAuthorizationServerPolicyRule x-okta-operations: - alias: activate arguments: