google-nomulus/javatests/google/registry/flows
jianglai 82ded21b9e Make EAP fee description check more flexible
Currently we determine fee type from the fee extension description by checking if the format string of the FeeType contains the description we received. The formatting string for EAP is "Early Access Period, fee expires: %s", so the fee description generated by a domain check command, like "Early Access Period, fee expires: 2022-03-01T00:00:00.000Z", is not recognized as EAP.

This CL adds the ability to add arbitrary extra description strings to the FeeType for a description to match against. It also changes the match to "the given description contains any of the strings from the list of format string plus extra description strings".

For EAP, we added an extra description string "Early Access Period", so any fee description that contains "Early Access Period" will be matched to EAP FeeType, including the specific description (that contains the expiry time) that we send in a domain check.

Also improved error message on multiple fee type matching.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=194149162
2018-05-05 23:26:33 -04:00
..
async Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
contact Make async flow logic handle missing client transaction IDs 2018-05-05 23:21:55 -04:00
custom Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
domain Make EAP fee description check more flexible 2018-05-05 23:26:33 -04:00
host Make async flow logic handle missing client transaction IDs 2018-05-05 23:21:55 -04:00
poll Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
session Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
testdata Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
BUILD Remove the JVM flags -XX:PermSize and -XX:MaxPermSize 2018-03-19 18:25:04 -04:00
CheckApiActionTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
EppCommitLogsTest.java Consolidate some domain creation / deletion EPPs in testdata 2018-02-01 22:03:57 -05:00
EppConsoleActionTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
EppControllerTest.java Migrate away fully from MockitoJUnitRunner 2018-04-10 17:01:04 -04:00
EppLifecycleContactTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppLifecycleDomainApplicationTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppLifecycleDomainTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppLifecycleHostTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppLifecycleLoginTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppLoggedOutTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppLoginAdminUserTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppLoginTlsTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppLoginUserTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppTestCase.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
EppTestComponent.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
EppTlsActionTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
EppToolActionTest.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
EppXmlTransformerTest.java Move tests to use TestDataHelper for reading resources 2018-04-10 16:43:17 -04:00
EppXxeAttackTest.java Refactor assertCommandAndResponse to be "fluent" 2018-04-02 16:42:59 -04:00
ExtensionManagerTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
FlowReporterTest.java Remove unnecessary type specifications 2017-12-27 11:23:03 -05:00
FlowRunnerTest.java Remove unnecessary type specifications 2017-12-27 11:23:03 -05:00
FlowTestCase.java Add an EPP lifecycle test verifying that EAP fees are not refunded 2017-12-27 11:29:07 -05:00
ResourceCheckFlowTestCase.java Add base AllocationToken validation logic for domain checks 2018-01-19 14:32:48 -05:00
ResourceFlowTestCase.java Make async flow logic handle missing client transaction IDs 2018-05-05 23:21:55 -04:00
TlsCredentialsTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00