@@ -8,11 +8,9 @@ import (
88 "github.com/IBM-Cloud/bluemix-go/client"
99 bluemixHttp "github.com/IBM-Cloud/bluemix-go/http"
1010 "github.com/IBM-Cloud/bluemix-go/session"
11-
12- "github.com/onsi/gomega/ghttp"
13-
1411 . "github.com/onsi/ginkgo"
1512 . "github.com/onsi/gomega"
13+ "github.com/onsi/gomega/ghttp"
1614)
1715
1816var _ = Describe ("Dns" , func () {
@@ -296,7 +294,7 @@ var _ = Describe("Dns", func() {
296294 server = ghttp .NewServer ()
297295 server .AppendHandlers (
298296 ghttp .CombineHandlers (
299- ghttp .VerifyRequest (http .MethodPost , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/3fefc35e7decadb111dcf85d723a4f20/dns_records" ),
297+ ghttp .VerifyRequest (http .MethodPut , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/3fefc35e7decadb111dcf85d723a4f20/dns_records" ),
300298 ghttp .RespondWith (http .StatusCreated , `
301299 {
302300 "result": {
@@ -320,7 +318,7 @@ var _ = Describe("Dns", func() {
320318 ` ),
321319 ),
322320 ghttp .CombineHandlers (
323- ghttp .VerifyRequest (http .MethodPost , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/3fefc35e7decadb111dcf85d723a4f20/dns_records/0f4740fc36065f8a9343c7ed9445f2a4" ),
321+ ghttp .VerifyRequest (http .MethodPut , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/3fefc35e7decadb111dcf85d723a4f20/dns_records/0f4740fc36065f8a9343c7ed9445f2a4" ),
324322 ghttp .RespondWith (http .StatusCreated , `
325323 {
326324 "result": {
@@ -376,7 +374,7 @@ var _ = Describe("Dns", func() {
376374 server = ghttp .NewServer ()
377375 server .AppendHandlers (
378376 ghttp .CombineHandlers (
379- ghttp .VerifyRequest (http .MethodPost , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/0f4740fc36065f8a9343c7ed9445f2a4/dns_records/0f4740fc36065f8a9343c7ed9445f2a4" ),
377+ ghttp .VerifyRequest (http .MethodPut , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/0f4740fc36065f8a9343c7ed9445f2a4/dns_records/0f4740fc36065f8a9343c7ed9445f2a4" ),
380378 ghttp .RespondWith (http .StatusInternalServerError , `Failed to update Dns` ),
381379 ),
382380 )
0 commit comments