mirror of
https://github.com/google/nomulus
synced 2025-12-23 06:15:42 +00:00
Fix wording on registry lock verification (#2518)
This commit is contained in:
@@ -60,7 +60,7 @@ public class ConsoleRegistryLockVerifyAction extends ConsoleApiAction {
|
|||||||
RegistryLock lock =
|
RegistryLock lock =
|
||||||
domainLockUtils.verifyVerificationCode(lockVerificationCode, user.getUserRoles().isAdmin());
|
domainLockUtils.verifyVerificationCode(lockVerificationCode, user.getUserRoles().isAdmin());
|
||||||
RegistryLockAction action =
|
RegistryLockAction action =
|
||||||
lock.getLockCompletionTime().isPresent()
|
lock.getUnlockCompletionTime().isPresent()
|
||||||
? RegistryLockAction.UNLOCKED
|
? RegistryLockAction.UNLOCKED
|
||||||
: RegistryLockAction.LOCKED;
|
: RegistryLockAction.LOCKED;
|
||||||
RegistryLockVerificationResponse lockResponse =
|
RegistryLockVerificationResponse lockResponse =
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ public class ConsoleRegistryLockVerifyActionTest {
|
|||||||
assertThat(response.getStatus()).isEqualTo(HttpServletResponse.SC_OK);
|
assertThat(response.getStatus()).isEqualTo(HttpServletResponse.SC_OK);
|
||||||
assertThat(response.getPayload())
|
assertThat(response.getPayload())
|
||||||
.isEqualTo(
|
.isEqualTo(
|
||||||
"{\"action\":\"unlocked\",\"domainName\":\"example.test\",\"registrarId\":\"TheRegistrar\"}");
|
"{\"action\":\"locked\",\"domainName\":\"example.test\",\"registrarId\":\"TheRegistrar\"}");
|
||||||
assertThat(loadByEntity(defaultDomain).getStatusValues())
|
assertThat(loadByEntity(defaultDomain).getStatusValues())
|
||||||
.containsAtLeastElementsIn(REGISTRY_LOCK_STATUSES);
|
.containsAtLeastElementsIn(REGISTRY_LOCK_STATUSES);
|
||||||
}
|
}
|
||||||
@@ -123,7 +123,7 @@ public class ConsoleRegistryLockVerifyActionTest {
|
|||||||
assertThat(response.getStatus()).isEqualTo(HttpServletResponse.SC_OK);
|
assertThat(response.getStatus()).isEqualTo(HttpServletResponse.SC_OK);
|
||||||
assertThat(response.getPayload())
|
assertThat(response.getPayload())
|
||||||
.isEqualTo(
|
.isEqualTo(
|
||||||
"{\"action\":\"unlocked\",\"domainName\":\"example.test\",\"registrarId\":\"TheRegistrar\"}");
|
"{\"action\":\"locked\",\"domainName\":\"example.test\",\"registrarId\":\"TheRegistrar\"}");
|
||||||
assertThat(loadByEntity(defaultDomain).getStatusValues())
|
assertThat(loadByEntity(defaultDomain).getStatusValues())
|
||||||
.containsAtLeastElementsIn(REGISTRY_LOCK_STATUSES);
|
.containsAtLeastElementsIn(REGISTRY_LOCK_STATUSES);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user