google-nomulus/javatests/google/registry/flows/domain
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
..
testdata Enforce anchor tenant domain create period 2018-04-23 15:11:37 -04:00
token Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainAllocateFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainApplicationCreateFlowTest.java Return more informative errors when signed mark is invalid at this time 2018-04-02 16:29:24 -04:00
DomainApplicationDeleteFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainApplicationInfoFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainApplicationUpdateFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainCheckFlowTest.java Make domain check return availability regardless of fee extensions 2018-04-23 14:36:02 -04:00
DomainClaimsCheckFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainCreateFlowTest.java Make EAP fee description check more flexible 2018-05-05 23:26:33 -04:00
DomainDeleteFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainInfoFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainRenewFlowTest.java Add domain lifecycle test for renew with total term >10 years 2018-03-06 19:11:26 -05:00
DomainRestoreRequestFlowTest.java Change RESTORE BillingEvents to have 1-year periods 2018-03-06 19:25:05 -05:00
DomainTransferApproveFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainTransferCancelFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainTransferFlowTestCase.java Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
DomainTransferQueryFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainTransferRejectFlowTest.java Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
DomainTransferRequestFlowTest.java Make async flow logic handle missing client transaction IDs 2018-05-05 23:21:55 -04:00
DomainUpdateFlowTest.java Add short-term host/contact caching for high-QPS domain mutations 2018-03-06 19:05:20 -05:00