mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
Add syntheticCreationTime to BillingEvent.OneTime
In order to clean up potentially bad BillingEvent.Recurring expansions, we'll need to be able to trace synthetic billing events back to particular runs of the []. This field will be set to the cursor time at the start of the MR (all expansions in one MR job will have the same timestamp). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=121999938
This commit is contained in:
parent
d62da7bb19
commit
51362722cd
4 changed files with 76 additions and 18 deletions
|
@ -25,28 +25,28 @@ public class DeleteDomainCommandTest extends EppToolCommandTestCase<DeleteDomain
|
|||
public void testSuccess() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=Test");
|
||||
new EppVerifier().verifySent("testdata/domain_delete.xml");
|
||||
eppVerifier().verifySent("testdata/domain_delete.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_multipleWordReason() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=\"Test test\"");
|
||||
new EppVerifier().verifySent("testdata/domain_delete_multiple_word_reason.xml");
|
||||
eppVerifier().verifySent("testdata/domain_delete_multiple_word_reason.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_requestedByRegistrarFalse() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=Test", "--registrar_request=false");
|
||||
new EppVerifier().verifySent("testdata/domain_delete.xml");
|
||||
eppVerifier().verifySent("testdata/domain_delete.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_requestedByRegistrarTrue() throws Exception {
|
||||
runCommand("--client=NewRegistrar", "--domain_name=example.tld", "--force",
|
||||
"--reason=Test", "--registrar_request=true");
|
||||
new EppVerifier().verifySent("testdata/domain_delete_by_registrar.xml");
|
||||
eppVerifier().verifySent("testdata/domain_delete_by_registrar.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue