Skip to content

Commit

Permalink
Merge pull request #13 from ymartin-ovh/testfix
Browse files Browse the repository at this point in the history
Added missing Nameservers details in testGetSubnetByIDOutputExpected
  • Loading branch information
pavel-z1 authored Apr 7, 2023
2 parents a93e9ab + 85f25ad commit ed44370
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions controllers/subnets/subnets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ var testGetSubnetByIDOutputExpected = Subnet{
Mask: 24,
SectionID: 1,
MasterSubnetID: 2,
Nameservers: map[string]interface{}{
"id": "0",
"name": "mynameserver.example.com",
"namesrv1": "1.2.3.4",
"description": "a nameserver description",
"permissions": "1",
},
}

const testGetSubnetByIDOutputJSON = `
Expand Down Expand Up @@ -82,7 +89,7 @@ const testGetSubnetByIDOutputJSON = `
"name": "mynameserver.example.com",
"namesrv1": "1.2.3.4",
"description": "a nameserver description",
"permissions": 1
"permissions": "1"
},
"scanAgent": null,
"isFolder": "0",
Expand Down Expand Up @@ -534,7 +541,7 @@ func TestCreateSubnet(t *testing.T) {
}
}

func TestCreateFirstFreeSubnet(t *testing.T){
func TestCreateFirstFreeSubnet(t *testing.T) {
ts := httpCreatedTestServer(testCreateFirstFreeSubnetOutputJSON)
defer ts.Close()
sess := fullSessionConfig()
Expand Down

0 comments on commit ed44370

Please sign in to comment.