-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to activate and deactivate DNS services for a zone (#145)
- Loading branch information
Wilson Lin
authored
Aug 11, 2023
1 parent
3fe0d6c
commit 1aa4e81
Showing
7 changed files
with
164 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,12 +105,15 @@ func TestDomainsService_GetEmailForward(t *testing.T) { | |
assert.NoError(t, err) | ||
forward := forwardResponse.Data | ||
wantSingle := &EmailForward{ | ||
ID: 41872, | ||
DomainID: 235146, | ||
From: "[email protected]", | ||
To: "[email protected]", | ||
CreatedAt: "2021-01-25T13:54:40Z", | ||
UpdatedAt: "2021-01-25T13:54:40Z"} | ||
ID: 41872, | ||
DomainID: 235146, | ||
From: "[email protected]", | ||
AliasName: "", | ||
AliasEmail: "[email protected]", | ||
To: "[email protected]", | ||
DestinationEmail: "[email protected]", | ||
CreatedAt: "2021-01-25T13:54:40Z", | ||
UpdatedAt: "2021-01-25T13:54:40Z"} | ||
assert.Equal(t, wantSingle, forward) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
HTTP/1.1 200 OK | ||
Server: nginx | ||
Date: Tue, 08 Aug 2023 04:19:23 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 2400 | ||
X-RateLimit-Remaining: 2399 | ||
X-RateLimit-Reset: 1691471963 | ||
X-WORK-WITH-US: Love automation? So do we! https://dnsimple.com/jobs | ||
ETag: W/"fe6afd982459be33146933235343d51d" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: 8e8ac535-9f46-4304-8440-8c68c30427c3 | ||
X-Runtime: 0.176579 | ||
Strict-Transport-Security: max-age=63072000 | ||
|
||
{"data":{"id":1,"account_id":1010,"name":"example.com","reverse":false,"secondary":false,"last_transferred_at":null,"active":true,"created_at":"2015-04-23T07:40:03Z","updated_at":"2015-04-23T07:40:03Z"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
HTTP/1.1 200 OK | ||
Server: nginx | ||
Date: Tue, 08 Aug 2023 04:19:52 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 2400 | ||
X-RateLimit-Remaining: 2398 | ||
X-RateLimit-Reset: 1691471962 | ||
X-WORK-WITH-US: Love automation? So do we! https://dnsimple.com/jobs | ||
ETag: W/"5f30a37d01b99bb9e620ef1bbce9a014" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: d2f7bba4-4c81-4818-81d2-c9bbe95f104e | ||
X-Runtime: 0.133278 | ||
Strict-Transport-Security: max-age=63072000 | ||
|
||
{"data":{"id":1,"account_id":1010,"name":"example.com","reverse":false,"secondary":false,"last_transferred_at":null,"active":false,"created_at":"2015-04-23T07:40:03Z","updated_at":"2015-04-23T07:40:03Z"}} |