diff --git a/integration-tests/src/test/groovy/com/okta/sdk/tests/it/PolicyRulesIT.groovy b/integration-tests/src/test/groovy/com/okta/sdk/tests/it/PolicyRulesIT.groovy index 46ad618fbf7..6a13c334496 100644 --- a/integration-tests/src/test/groovy/com/okta/sdk/tests/it/PolicyRulesIT.groovy +++ b/integration-tests/src/test/groovy/com/okta/sdk/tests/it/PolicyRulesIT.groovy @@ -105,6 +105,7 @@ class PolicyRulesIT extends ITSupport implements CrudTestSupport { def policyRuleName = "policyRule+" + UUID.randomUUID().toString() PasswordPolicyRule policyRule = PasswordPolicyRuleBuilder.instance() .setName(policyRuleName) + .setType(PolicyRule.TypeEnum.PASSWORD) .setSelfServiceUnlockAccess(PasswordPolicyRuleAction.AccessEnum.DENY) .setSelfServicePasswordResetAccess(PasswordPolicyRuleAction.AccessEnum.ALLOW) .setPasswordChangeAccess(PasswordPolicyRuleAction.AccessEnum.ALLOW) @@ -196,10 +197,9 @@ class PolicyRulesIT extends ITSupport implements CrudTestSupport { assertThat policyRule.getConditions().getAuthContext().getAuthType(), is(PolicyRuleAuthContextCondition.AuthTypeEnum.ANY) assertThat policyRule.getConditions().getNetwork().getConnection(), is(PolicyNetworkCondition.ConnectionEnum.ANYWHERE) - assertThat policyRule.getConditions().getPeople().getUsers().getInclude(), is(Collections.emptyList()) + assertThat policyRule.getConditions().getPeople().getUsers().getInclude(), nullValue() assertThat policyRule.getConditions().getPeople().getUsers().getExclude(), is(Collections.emptyList()) - assertThat policyRule.getConditions().getPeople().getGroups().getInclude(), is(Collections.emptyList()) - assertThat policyRule.getConditions().getPeople().getGroups().getExclude(), is(Collections.emptyList()) + assertThat policyRule.getConditions().getPeople().getGroups(), nullValue() assertThat policyRule.getActions().getSignon().getAccess(), is(OktaSignOnPolicyRuleSignonActions.AccessEnum.ALLOW) assertThat policyRule.getActions().getSignon().getRequireFactor(), is(true) assertThat policyRule.getActions().getSignon().getRememberDeviceByDefault(), is(false)