mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 17:37:13 +02:00
Add OT&E verification that a domain was successfully created in sunrise
We already have verifications that a domain application was created in sunrise - which checks for end-date sunrise. Start-date sunrise has checks that a domain (not application) was created. There's no need to specifically check for a signed mark, since a successful domain create during sunrise must have a signed mark in it. Also removed the requirement for end-date sunrise / landrush testing. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190551080
This commit is contained in:
parent
fea495e319
commit
c1ca88ac9e
3 changed files with 14 additions and 52 deletions
|
@ -47,39 +47,9 @@ public class VerifyOteActionTest {
|
|||
persistResource(
|
||||
new HistoryEntry.Builder()
|
||||
.setClientId("blobio-1")
|
||||
.setType(Type.DOMAIN_APPLICATION_CREATE)
|
||||
.setXmlBytes(ToolsTestData.loadBytes("domain_create_complete.xml").read())
|
||||
.build());
|
||||
persistResource(
|
||||
new HistoryEntry.Builder()
|
||||
.setClientId("blobio-1")
|
||||
.setType(Type.DOMAIN_APPLICATION_CREATE)
|
||||
.setType(Type.DOMAIN_CREATE)
|
||||
.setXmlBytes(ToolsTestData.loadBytes("domain_create_sunrise.xml").read())
|
||||
.build());
|
||||
persistResource(
|
||||
new HistoryEntry.Builder()
|
||||
.setClientId("blobio-1")
|
||||
.setType(Type.DOMAIN_APPLICATION_DELETE)
|
||||
.setXmlBytes(ToolsTestData.loadBytes("domain_delete.xml").read())
|
||||
.build());
|
||||
persistResource(
|
||||
new HistoryEntry.Builder()
|
||||
.setClientId("blobio-2")
|
||||
.setType(Type.DOMAIN_APPLICATION_DELETE)
|
||||
.setXmlBytes(ToolsTestData.loadBytes("domain_delete.xml").read())
|
||||
.build());
|
||||
persistResource(
|
||||
new HistoryEntry.Builder()
|
||||
.setClientId("blobio-1")
|
||||
.setType(Type.DOMAIN_APPLICATION_UPDATE)
|
||||
.setXmlBytes(ToolsTestData.loadBytes("domain_update_complete.xml").read())
|
||||
.build());
|
||||
persistResource(
|
||||
new HistoryEntry.Builder()
|
||||
.setClientId("blobio-2")
|
||||
.setType(Type.DOMAIN_APPLICATION_UPDATE)
|
||||
.setXmlBytes(ToolsTestData.loadBytes("domain_update_complete.xml").read())
|
||||
.build());
|
||||
persistResource(
|
||||
new HistoryEntry.Builder()
|
||||
.setClientId("blobio-1")
|
||||
|
@ -181,7 +151,7 @@ public class VerifyOteActionTest {
|
|||
|
||||
for (Entry<String, Object> registrar : response.entrySet()) {
|
||||
assertThat(registrar.getKey()).matches("blobio");
|
||||
assertThat(registrar.getValue().toString()).containsMatch("Reqs passed: 19/19");
|
||||
assertThat(registrar.getValue().toString()).containsMatch("Reqs passed: 16/16");
|
||||
assertThat(registrar.getValue().toString()).containsMatch("Overall: PASS");
|
||||
}
|
||||
}
|
||||
|
@ -195,12 +165,8 @@ public class VerifyOteActionTest {
|
|||
for (Entry<String, Object> registrar : response.entrySet()) {
|
||||
assertThat(registrar.getKey()).matches("blobio");
|
||||
String expectedOteStatus =
|
||||
"domain application creates landrush: 1\n"
|
||||
+ "domain application creates sunrise: 1\n"
|
||||
+ "domain application deletes: 2\n"
|
||||
+ "domain application updates: 2\n"
|
||||
+ ".*"
|
||||
+ "domain creates idn: 1\n"
|
||||
"domain creates idn: 1\n"
|
||||
+ "domain creates start date sunrise: 1\n"
|
||||
+ "domain creates with claims notice: 1\n"
|
||||
+ "domain creates with fee: 1\n"
|
||||
+ "domain creates with sec dns: 1\n"
|
||||
|
@ -219,7 +185,7 @@ public class VerifyOteActionTest {
|
|||
+ "host deletes: 1\n"
|
||||
+ "host updates: 1\n"
|
||||
+ ".*"
|
||||
+ "Requirements passed: 19/19\n"
|
||||
+ "Requirements passed: 16/16\n"
|
||||
+ "Overall OT&E status: PASS\n";
|
||||
Pattern expectedOteStatusPattern = Pattern.compile(expectedOteStatus, Pattern.DOTALL);
|
||||
assertThat(registrar.getValue().toString()).containsMatch(expectedOteStatusPattern);
|
||||
|
@ -239,12 +205,8 @@ public class VerifyOteActionTest {
|
|||
String oteStatus = registrar.getValue().toString();
|
||||
|
||||
String expectedOteStatus =
|
||||
"domain application creates landrush: 1\n"
|
||||
+ "domain application creates sunrise: 1\n"
|
||||
+ "domain application deletes: 2\n"
|
||||
+ "domain application updates: 2\n"
|
||||
+ ".*"
|
||||
+ "domain creates idn: 1\n"
|
||||
"domain creates idn: 1\n"
|
||||
+ "domain creates start date sunrise: 1\n"
|
||||
+ "domain creates with claims notice: 1\n"
|
||||
+ "domain creates with fee: 1\n"
|
||||
+ "domain creates with sec dns: 1\n"
|
||||
|
@ -263,7 +225,7 @@ public class VerifyOteActionTest {
|
|||
+ "host deletes: 0\n"
|
||||
+ "host updates: 1\n"
|
||||
+ ".*"
|
||||
+ "Requirements passed: 18/19\n"
|
||||
+ "Requirements passed: 15/16\n"
|
||||
+ "Overall OT&E status: FAIL\n";
|
||||
Pattern expectedOteStatusPattern = Pattern.compile(expectedOteStatus, Pattern.DOTALL);
|
||||
assertThat(oteStatus).containsMatch(expectedOteStatusPattern);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue