mirror of
https://github.com/google/nomulus
synced 2026-09-26 01:44:23 +00:00
All RDAP actions inherit from a common RdapActionBase class. All RDAP search actions inherit from a comman RdapSearchActionBase class, which inherits from RdapActionBase Each of the base classes has @Before initialization needed for the tests, as well as utility functions (such as login and logout). Currently, these were copied in all test classes. Instead, we created a similar test inheritance tree to centralize the initialization and place common utility functions. This way, the @Before of every test only needs to initialize the variables new to the specific action, making the code somewhat clearer. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217856844
39 lines
755 B
JSON
39 lines
755 B
JSON
{
|
|
"objectClassName" : "entity",
|
|
"handle" : "%NAME%",
|
|
"status" : ["inactive"],
|
|
"links" :
|
|
[
|
|
{
|
|
"value" : "https://example.tld/rdap/entity/%NAME%",
|
|
"rel" : "self",
|
|
"href": "https://example.tld/rdap/entity/%NAME%",
|
|
"type" : "application/rdap+json"
|
|
}
|
|
],
|
|
"events":
|
|
[
|
|
{
|
|
"eventAction": "registration",
|
|
"eventActor": "foo",
|
|
"eventDate": "1999-01-01T00:00:00.000Z"
|
|
},
|
|
{
|
|
"eventAction": "deletion",
|
|
"eventActor": "foo",
|
|
"eventDate": "1999-07-01T00:00:00.000Z"
|
|
},
|
|
{
|
|
"eventAction": "last update of RDAP database",
|
|
"eventDate": "2000-01-01T00:00:00.000Z"
|
|
}
|
|
],
|
|
"vcardArray" :
|
|
[
|
|
"vcard",
|
|
[
|
|
["version", {}, "text", "4.0"]
|
|
]
|
|
]
|
|
}
|