Skip to content

Commit 21b0eaf

Browse files
committed
update COS test to be able to handle service credentials with nested objects
1 parent 3652fbb commit 21b0eaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/test/scala/integration/CredentialsIBMPythonCOSTests.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class CredentialsIBMPythonCOSTests extends TestHelpers with WskTestHelpers with
3232
val datdir = "tests/dat/cos"
3333
val actionName = "testCOSService"
3434
val actionFileName = "testCOSService.py"
35-
val creds = TestUtils.getVCAPcredentials("cloud-object-storage")
36-
val apikey = creds.get("apikey")
37-
var resource_instance_id = creds.get("resource_instance_id")
35+
val creds = TestUtils.getCredentials("cloud-object-storage")
36+
val apikey = creds.get("apikey").getAsString()
37+
var resource_instance_id = creds.get("resource_instance_id").getAsString()
3838
val __bx_creds = JsObject(
3939
"cloud-object-storage" -> JsObject(
4040
"apikey" -> JsString(apikey),

0 commit comments

Comments
 (0)