@@ -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 ("Glbs" , func () {
@@ -353,7 +351,7 @@ var _ = Describe("Glbs", func() {
353
351
` ),
354
352
),
355
353
ghttp .CombineHandlers (
356
- ghttp .VerifyRequest (http .MethodPost , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/3fefc35e7decadb111dcf85d723a4f20/load_balancers/07085e0ea3c40225dcab6aff04cf64d9" ),
354
+ ghttp .VerifyRequest (http .MethodPut , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/3fefc35e7decadb111dcf85d723a4f20/load_balancers/07085e0ea3c40225dcab6aff04cf64d9" ),
357
355
ghttp .VerifyJSON (`{"proxied": true, "name": "www.example.com", "session_affinity": "none", "fallback_pool": "4112ba6c2974ec43886f90736968e888", "default_pools": ["6563ebae141638f92ebbdc4a821bef8c", "4112ba6c2974ec43886f90736968e838"]}` ),
358
356
ghttp .RespondWith (http .StatusCreated , `
359
357
{
@@ -428,7 +426,7 @@ var _ = Describe("Glbs", func() {
428
426
server = ghttp .NewServer ()
429
427
server .AppendHandlers (
430
428
ghttp .CombineHandlers (
431
- ghttp .VerifyRequest (http .MethodPost , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/3fefc35e7decadb111dcf85d723a4f20/load_balancers/07085e0ea3c40225dcab6aff04cf64d9" ),
429
+ ghttp .VerifyRequest (http .MethodPut , "/v1/crn:v1:staging:public:iam::::apikey:ApiKey-62fefdd1-4557-4c7d-8a1c-f6da7ee2ff3a/zones/3fefc35e7decadb111dcf85d723a4f20/load_balancers/07085e0ea3c40225dcab6aff04cf64d9" ),
432
430
ghttp .RespondWith (http .StatusInternalServerError , `Failed to create Glb` ),
433
431
),
434
432
)
0 commit comments