Commit graph

16 commits

Author SHA1 Message Date
mcilwain
14c794aa45 Always clear ofy session cache in command tests
The previous code would not execute after failure tests that ended
with thrown exceptions, potentially causing issues with post-run
verification inside of tests.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117484219
2016-03-23 22:38:08 -04:00
mcilwain
99a50f7972 Remove EppResource.SharedFields following successful data migration
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117412736
2016-03-23 22:38:08 -04:00
mcilwain
702c5b9692 Annihilate the annihilator []
I am become Ben, annihilator of annihilators.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117275133
2016-03-16 21:20:25 -04:00
ctingue
77dd730400 Break out EppResourceInput subclasses
This frankenclass was starting to get a little cluttered, especially once I add the ChildEntityInput/Reader.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117266882
2016-03-16 21:20:25 -04:00
mcilwain
57fa57968d Rename Runnable classes from Tasks to Actions
This is cleanup relating to a naming decision that we made awhile ago
but never got around to.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117244827
2016-03-16 21:20:25 -04:00
nickfelt
7e80b5646f Make Cancellation OneTime vs Recurring logic explicit
This CL does a very similar cleanup to Cancellation as the diffbase
does to GracePeriod - see []  It simplifes logic where we
used to overload methods to accept eitherw OneTime or Recurring billing
events refs, despite storing them in separate fields in the entity
(since BillingEvent is not a polymorphic superclass, just a Java-only
one, you can't store them as refs to BillingEvent).

That overloading was ultimately only there as a convenience/hack from
when we added Recurring events and didn't want to go back and change
everything.  It obfuscates what's really going on, requires extra
casting/loss of type-safety, and relies on indirect signals (e.g. the
Billing event reason being AUTO_RENEW) to guess what the right billing
event type is.  That latter aspect will likely no longer work in a
monthly billing world, and was brittle anyways (as came up in the
context of removing the AUTO_RENEW reason - see []
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117165174
2016-03-16 21:20:25 -04:00
nickfelt
9786e6732f Make GracePeriod OneTime vs Recurring logic explicit
This CL cleans up some old crufy logic in GracePeriod that overloaded
methods to accept either OneTime or Recurring billing events refs,
despite storing them in separate fields in the entity (since
BillingEvent is not a polymorphic superclass, just a Java-only one,
you can't store them as refs to BillingEvent).

That overloading was ultimately only there as a convenience/hack from
when we added Recurring events and didn't want to go back and change
everything.  It obfuscates what's really going on, requires extra
casting/loss of type-safety, and relies on indirect signals (e.g. the
grace period type being AUTO_RENEW) to guess what the right billing
event type is.  That latter aspect will likely no longer work in a
monthly billing world, and was brittle in any case.

A coming CL will rip the same logic out of Cancellation.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117164286
2016-03-16 21:20:25 -04:00
jart
f2116093b1 Delete admin console
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116894352
2016-03-10 16:48:39 -05:00
jart
6772b2ef80 Move VerifyOteAction to tools/server
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116825910
2016-03-10 16:48:39 -05:00
jart
3eef39126d Add Registrar client ID to Braintree payment info
The client ID is passed as the "customer ID" to Braintree. In order for
this to work, someone needs to go into the Braintree website beforehand,
click on "New Customer" link, and create the customer record with a
matching ID.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116769955
2016-03-10 16:48:39 -05:00
mcilwain
dd633c9e72 Add [] to export domain lists to GCS
The ExportDomainListsAction [] has a cron entry that runs it twice per day.  It exports one flat text file per real (non-test) TLD to the "{project-id}-domain-lists" bucket in Google Cloud Storage, overwriting the existing ones in place.  Each file is a newline-delimited list of active (non-deleted) domains in that TLD.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116767987
2016-03-10 16:48:39 -05:00
Wolfgang Meyers
cfe153e735 Make additional targets publicly visible
The admin console needs public visibility for additional targets.

//java/com/google/domain/registry/tools/params
 - Needed for the Whois test server
//java/com/google/domain/registry/whois
 - Needed for reusing WhoisHttpServer in the whois appengine module
//javatests/com/google/domain/registry/server
 - Needed for the Whois test server
2016-03-08 11:12:25 -08:00
mountford
ab26b288c1 RDAP: Add boilerplate entries required by ICANN RDAP Profile
The ICANN RDAP Profile (dated 3 December 2015) requires certain boilerplate entries at the top level of the JSON object. Specifically:

1.4.4. The terms of service of the RDAP service MUST be specified in the
notices object in the topmost JSON object of the response. The notices
object MUST contain a links object [RFC7483]. The links object MUST
contain an URL of the contracted party providing the RDAP service.

1.4.10. An RDAP response MUST contain a remarks member with a description
containing the string “This response conforms to the RDAP Operational
Profile for gTLD Registries and Registrars version 1.0”.

1.5.18. A domain name RDAP response MUST contain a remarks member with
a title “EPP Status Codes”, a description containing the string “For
more information on domain status codes, please visit
https://icann.org/epp” and a links member with the
https://icann.org/epp URL.

1.5.20. A domain name RDAP response MUST contain a remarks member with
a title “Whois Inaccuracy Complaint Form”, a description containing
the string “URL of the ICANN Whois Inaccuracy Complaint Form:
https://www.icann.org/wicf” and a links member with the
https://www.icann.org/wicf URL.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116389950
2016-03-04 16:25:25 -05:00
jart
ddd45b22fb Give core registry libraries public visibility
This is so Donuts can create entirely separate Bazel repositories that
link against the Domain Registry codebase.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116182448
2016-03-04 16:20:50 -05:00
jakubvrana
1ecf3db5fc Use goog.dom.safeHtmlToNode instead of deprecated htmlToDocumentFragment.
goog.dom.htmlToDocumentFragment is going to be removed in [] It is removed because its usage can cause XSS.

More information: []

Tested:
    TAP --sample for global presubmit queue
    []
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=116081948
2016-03-04 16:12:49 -05:00
Justine Tunney
0ef0c933d2 Import code from internal repository to git 2016-03-01 17:59:16 -05:00