altera soa-edit-api para INCEPTION-INCREMENT
This commit is contained in:
@@ -238,7 +238,7 @@ func TestCreateZonePostsZone(t *testing.T) {
|
||||
if payload.Name != "example.org." || payload.Kind != "Native" {
|
||||
t.Fatalf("unexpected payload: %#v", payload)
|
||||
}
|
||||
if payload.SOAEditAPI != soaEditAPIIncrease {
|
||||
if payload.SOAEditAPI != "INCEPTION-INCREMENT" {
|
||||
t.Fatalf("unexpected soa_edit_api: %q", payload.SOAEditAPI)
|
||||
}
|
||||
w.WriteHeader(http.StatusCreated)
|
||||
@@ -252,7 +252,7 @@ func TestCreateZonePostsZone(t *testing.T) {
|
||||
if err := json.NewDecoder(r.Body).Decode(&payload); err != nil {
|
||||
t.Fatalf("decode request: %v", err)
|
||||
}
|
||||
if payload.SOAEditAPI != soaEditAPIIncrease {
|
||||
if payload.SOAEditAPI != "INCEPTION-INCREMENT" {
|
||||
t.Fatalf("unexpected soa_edit_api: %q", payload.SOAEditAPI)
|
||||
}
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
@@ -285,7 +285,7 @@ func TestEnsureAllZonesSOAEditAPIUpdatesAllZones(t *testing.T) {
|
||||
t.Fatalf("unexpected path: %s", r.URL.Path)
|
||||
}
|
||||
_ = json.NewEncoder(w).Encode([]Zone{
|
||||
{ID: "already.example.org.", Name: "already.example.org.", SOAEditAPI: soaEditAPIIncrease},
|
||||
{ID: "already.example.org.", Name: "already.example.org.", SOAEditAPI: soaEditAPIInceptionIncrement},
|
||||
{ID: "missing.example.org.", Name: "missing.example.org."},
|
||||
{ID: "", Name: "fallback.example.org.", SOAEditAPI: "DEFAULT"},
|
||||
})
|
||||
@@ -294,7 +294,7 @@ func TestEnsureAllZonesSOAEditAPIUpdatesAllZones(t *testing.T) {
|
||||
if err := json.NewDecoder(r.Body).Decode(&payload); err != nil {
|
||||
t.Fatalf("decode request: %v", err)
|
||||
}
|
||||
if payload.SOAEditAPI != soaEditAPIIncrease {
|
||||
if payload.SOAEditAPI != "INCEPTION-INCREMENT" {
|
||||
t.Fatalf("unexpected soa_edit_api: %q", payload.SOAEditAPI)
|
||||
}
|
||||
updated = append(updated, strings.TrimPrefix(r.URL.Path, "/api/v1/servers/localhost/zones/"))
|
||||
@@ -331,7 +331,7 @@ func TestSetZoneSOAEditAPIUsesPUT(t *testing.T) {
|
||||
if err := json.NewDecoder(r.Body).Decode(&payload); err != nil {
|
||||
t.Fatalf("decode request: %v", err)
|
||||
}
|
||||
if payload.SOAEditAPI != soaEditAPIIncrease {
|
||||
if payload.SOAEditAPI != "INCEPTION-INCREMENT" {
|
||||
t.Fatalf("unexpected soa_edit_api: %q", payload.SOAEditAPI)
|
||||
}
|
||||
w.WriteHeader(http.StatusNoContent)
|
||||
|
||||
Reference in New Issue
Block a user