From c25967bd6157989531f4d1a5c8d1cd06f7751df5 Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Fri, 21 Aug 2015 17:01:29 -0400 Subject: [PATCH] fix --- events/api/src/main/java/org/keycloak/events/EventType.java | 3 ++- .../org/keycloak/testsuite/actions/TermsAndConditionsTest.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/events/api/src/main/java/org/keycloak/events/EventType.java b/events/api/src/main/java/org/keycloak/events/EventType.java index b049b2a038..250ac9fa04 100755 --- a/events/api/src/main/java/org/keycloak/events/EventType.java +++ b/events/api/src/main/java/org/keycloak/events/EventType.java @@ -67,7 +67,8 @@ public enum EventType { IDENTITY_PROVIDER_ACCCOUNT_LINKING(false), IDENTITY_PROVIDER_ACCCOUNT_LINKING_ERROR(false), IMPERSONATE(true), - CUSTOM_REQUIRED_ACTION(true); + CUSTOM_REQUIRED_ACTION(true), + CUSTOM_REQUIRED_ACTION_ERROR(true); private boolean saveByDefault; diff --git a/testsuite/integration/src/test/java/org/keycloak/testsuite/actions/TermsAndConditionsTest.java b/testsuite/integration/src/test/java/org/keycloak/testsuite/actions/TermsAndConditionsTest.java index a1636c8686..f758900d3b 100755 --- a/testsuite/integration/src/test/java/org/keycloak/testsuite/actions/TermsAndConditionsTest.java +++ b/testsuite/integration/src/test/java/org/keycloak/testsuite/actions/TermsAndConditionsTest.java @@ -108,7 +108,7 @@ public class TermsAndConditionsTest { termsPage.declineTerms(); - events.expectLogin().detail(Details.CUSTOM_REQUIRED_ACTION, TermsAndConditions.PROVIDER_ID) + events.expectLogin().event(EventType.CUSTOM_REQUIRED_ACTION_ERROR).detail(Details.CUSTOM_REQUIRED_ACTION, TermsAndConditions.PROVIDER_ID) .error(Errors.REJECTED_BY_USER) .removeDetail(Details.CONSENT) .assertEvent();