mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Update signed marks files and add an expiration test
We'll continue to use injected clocks for the rest of our tests that use signed marks files, so that they don't all fail after the current validity period. The new test TmchTestDataExpirationTest will let us know when the files are expired, so we can update them. All updated test data files come from https://newgtlds.icann.org/en/about/trademark-clearinghouse/registries-registrars ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=202208196
This commit is contained in:
parent
11c5d11a29
commit
892c1fc707
95 changed files with 6574 additions and 6461 deletions
|
@ -29,6 +29,7 @@ import google.registry.flows.domain.DomainFlowTmchUtils;
|
|||
import google.registry.model.domain.DomainApplication;
|
||||
import google.registry.model.reporting.HistoryEntry;
|
||||
import google.registry.model.smd.EncodedSignedMark;
|
||||
import google.registry.model.smd.SignedMark;
|
||||
import google.registry.tools.Command.RemoteApiCommand;
|
||||
import google.registry.tools.params.PathParameter;
|
||||
import java.nio.file.Files;
|
||||
|
@ -92,9 +93,10 @@ final class UpdateSmdCommand implements RemoteApiCommand {
|
|||
"Can't update SMD on a landrush application.");
|
||||
|
||||
// Verify the new SMD.
|
||||
String domainLabel = InternetDomainName.from(domainApplication.getFullyQualifiedDomainName())
|
||||
.parts().get(0);
|
||||
tmchUtils.verifyEncodedSignedMark(encodedSignedMark, domainLabel, now);
|
||||
String domainLabel =
|
||||
InternetDomainName.from(domainApplication.getFullyQualifiedDomainName()).parts().get(0);
|
||||
SignedMark signedMark = tmchUtils.verifyEncodedSignedMark(encodedSignedMark, now);
|
||||
tmchUtils.verifySignedMarkValidForDomainLabel(signedMark, domainLabel);
|
||||
|
||||
DomainApplication updatedApplication = domainApplication.asBuilder()
|
||||
.setEncodedSignedMarks(ImmutableList.of(encodedSignedMark))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue