@@ -8,11 +8,9 @@ import (
8
8
"github.com/IBM-Cloud/bluemix-go/client"
9
9
bluemixHttp "github.com/IBM-Cloud/bluemix-go/http"
10
10
"github.com/IBM-Cloud/bluemix-go/session"
11
-
12
- "github.com/onsi/gomega/ghttp"
13
-
14
11
. "github.com/onsi/ginkgo"
15
12
. "github.com/onsi/gomega"
13
+ "github.com/onsi/gomega/ghttp"
16
14
)
17
15
18
16
var _ = Describe ("Dns" , func () {
@@ -296,7 +294,7 @@ var _ = Describe("Dns", func() {
296
294
server = ghttp .NewServer ()
297
295
server .AppendHandlers (
298
296
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" ),
300
298
ghttp .RespondWith (http .StatusCreated , `
301
299
{
302
300
"result": {
@@ -320,7 +318,7 @@ var _ = Describe("Dns", func() {
320
318
` ),
321
319
),
322
320
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" ),
324
322
ghttp .RespondWith (http .StatusCreated , `
325
323
{
326
324
"result": {
@@ -376,7 +374,7 @@ var _ = Describe("Dns", func() {
376
374
server = ghttp .NewServer ()
377
375
server .AppendHandlers (
378
376
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" ),
380
378
ghttp .RespondWith (http .StatusInternalServerError , `Failed to update Dns` ),
381
379
),
382
380
)
0 commit comments