mirror of
https://github.com/google/nomulus
synced 2026-09-20 15:04:24 +00:00
Change the LoadTestAction to use /_dr/epptool
The load tests used to directly build EPP, but that becomes problematic for an upcoming CL that refactors a lot of the EPP flow code. Instead, use the existing tool endpoint (conveniently, LoadTestAction is already in the tools module). This required changing the EppToolServlet to get its xml from a param rather than from the request payload, since task queues won't allow both a payload and request params on the same task. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124351878
This commit is contained in:
committed by
Justine Tunney
parent
5a2f63cf58
commit
366c5a344d
@@ -16,14 +16,15 @@ package google.registry.tools;
|
||||
|
||||
import com.beust.jcommander.ParameterException;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
/** Unit tests for {@link CreateContactCommand}. */
|
||||
public class CreateContactCommandTest
|
||||
extends EppToolCommandTestCase<CreateContactCommand> {
|
||||
|
||||
@Override
|
||||
void initEppToolCommandTestCase() {
|
||||
@Before
|
||||
public void initCommand() {
|
||||
command.passwordGenerator = new FakePasswordGenerator("abcdefghijklmnopqrstuvwxyz");
|
||||
}
|
||||
|
||||
@@ -45,7 +46,7 @@ public class CreateContactCommandTest
|
||||
"--fax=+1.7035555556",
|
||||
"--email=jdoe@example.com",
|
||||
"--password=2fooBAR");
|
||||
eppVerifier().verifySent("testdata/contact_create_complete.xml");
|
||||
eppVerifier().verifySent("contact_create_complete.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -53,7 +54,7 @@ public class CreateContactCommandTest
|
||||
// Will never be the case, but tests that each field can be omitted.
|
||||
// Also tests the auto-gen password.
|
||||
runCommandForced("--client=NewRegistrar");
|
||||
eppVerifier().verifySent("testdata/contact_create_minimal.xml");
|
||||
eppVerifier().verifySent("contact_create_minimal.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user