Skip to content

Commit

Permalink
fix PolicyRulesIT test failure (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindkrishnakumar-okta authored Jun 30, 2020
1 parent bd43772 commit 83acdc8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 83acdc8

Please sign in to comment.