Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
309 changes: 224 additions & 85 deletions libcloud/dns/drivers/pointdns.py

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions libcloud/test/dns/fixtures/pointdns/_zones_1_ZONE_UPDATE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"zone": {
"id": 1,
"name": "example.com",
"group": "Other Group",
"user-id": 6,
"ttl": 3600
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"zone_mail_redirect": {
"source_address": "admin",
"destination_address": "user@example-site.com",
"id": 5,
"zone_id": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"zone_mail_redirect": {
"status": "OK"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"zone_mail_redirect": {
"source_address": "admin",
"destination_address": "user@example-site.com",
"id": 5,
"zone_id": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"zone_mail_redirect": {
"source_address": "admin",
"destination_address": "user@example-site.com",
"id": 5,
"zone_id": 1
}
},
{
"zone_mail_redirect": {
"source_address": "new_admin",
"destination_address": "second.user@example-site.com",
"id": 7,
"zone_id": 1
}
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"zone_mail_redirect": {
"source_address": "new_admin",
"destination_address": "new_user@example-site.com",
"id": 5,
"zone_id": 1
}
}
11 changes: 11 additions & 0 deletions libcloud/test/dns/fixtures/pointdns/_zones_1_redirects_CREATE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"zone_redirect": {
"name": "redirect2.domain1.com.",
"redirect_to": "http://other.com",
"id": 36843229,
"redirect_type": 302,
"iframe_title": "An Iframe",
"redirect_query_string": true,
"zone_id": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"zone_redirect": {
"status": "OK"
}
}
11 changes: 11 additions & 0 deletions libcloud/test/dns/fixtures/pointdns/_zones_1_redirects_GET.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"zone_redirect": {
"name": "redirect2.domain1.com.",
"redirect_to": "http://other.com",
"id": 36843229,
"redirect_type": 302,
"iframe_title": null,
"redirect_query_string": false,
"zone_id": 162949
}
}
24 changes: 24 additions & 0 deletions libcloud/test/dns/fixtures/pointdns/_zones_1_redirects_LIST.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"zone_redirect": {
"name": "redirect2.domain1.com.",
"redirect_to": "http://other.com",
"id": 36843229,
"redirect_type": 302,
"iframe_title": null,
"redirect_query_string": false,
"zone_id": 1
}
},
{
"zone_redirect": {
"name": "redirect1.domain1.com.",
"redirect_to": "http://someother.com",
"id": 36843497,
"redirect_type": 302,
"iframe_title": null,
"redirect_query_string": false,
"zone_id": 1
}
}
]
11 changes: 11 additions & 0 deletions libcloud/test/dns/fixtures/pointdns/_zones_1_redirects_UPDATE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"zone_redirect": {
"name": "redirect3.domain1.com.",
"redirect_to": "http://updatedother.com",
"id": 36843229,
"redirect_type": 302,
"iframe_title": null,
"redirect_query_string": false,
"zone_id": 1
}
}
7 changes: 7 additions & 0 deletions libcloud/test/dns/fixtures/pointdns/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"zone": {
"base": [
"You have reached domains limit. Please upgrade your plan to add more."
]
}
}
1 change: 1 addition & 0 deletions libcloud/test/dns/fixtures/pointdns/not_found.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Not found
10 changes: 10 additions & 0 deletions libcloud/test/dns/fixtures/pointdns/redirect_error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"zone_redirect": {
"redirect_type": [
"is not included in the list"
],
"name": [
"There is already A type record or redirect for this subdomain. Please remove it first."
]
}
}
Loading