mirror of
https://github.com/google/nomulus
synced 2026-08-15 11:46:08 +00:00
Add test confirming that login works without contact obj URI (#2983)
This is a follow-up to PR #2954.
This commit is contained in:
@@ -133,7 +133,7 @@ public abstract class LoginFlowTestCase extends FlowTestCase<LoginFlow> {
|
||||
}
|
||||
|
||||
@Test
|
||||
void testSuccess_contactObjectUri_worksWhenNotProhibited() throws Exception {
|
||||
void testSuccess_contactObjectUriSent_worksWhenNotProhibited() throws Exception {
|
||||
persistResource(
|
||||
FeatureFlag.get(PROHIBIT_CONTACT_OBJECTS_ON_LOGIN)
|
||||
.asBuilder()
|
||||
@@ -142,6 +142,16 @@ public abstract class LoginFlowTestCase extends FlowTestCase<LoginFlow> {
|
||||
doSuccessfulTest("login_with_contact_objuri.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testSuccess_contactObjectUriNotSent_worksWhenNotProhibited() throws Exception {
|
||||
persistResource(
|
||||
FeatureFlag.get(PROHIBIT_CONTACT_OBJECTS_ON_LOGIN)
|
||||
.asBuilder()
|
||||
.setStatusMap(ImmutableSortedMap.of(START_OF_TIME, FeatureStatus.INACTIVE))
|
||||
.build());
|
||||
doSuccessfulTest("login_valid.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
void testFailure_invalidTypes() {
|
||||
doFailingTest("login_invalid_types.xml", UnimplementedObjectServiceException.class);
|
||||
|
||||
Reference in New Issue
Block a user