diff --git a/tests/unit/Identity/v3/Models/CredentialTest.php b/tests/unit/Identity/v3/Models/CredentialTest.php index fede4523..2890ea21 100644 --- a/tests/unit/Identity/v3/Models/CredentialTest.php +++ b/tests/unit/Identity/v3/Models/CredentialTest.php @@ -34,8 +34,10 @@ public function test_it_updates() $this->credential->projectId = 'bar'; $expectedJson = [ - 'type' => 'foo', - 'project_id' => 'bar', + 'credential' => [ + 'type' => 'foo', + 'project_id' => 'bar', + ] ]; $this->mockRequest('PATCH', 'credentials/CRED_ID', 'cred', $expectedJson, []); diff --git a/tests/unit/Identity/v3/ServiceTest.php b/tests/unit/Identity/v3/ServiceTest.php index bf82c460..420bbf6d 100644 --- a/tests/unit/Identity/v3/ServiceTest.php +++ b/tests/unit/Identity/v3/ServiceTest.php @@ -504,14 +504,16 @@ public function test_it_creates_credential() 'blob' => "{\"access\":\"--access-key--\",\"secret\":\"--secret-key--\"}", 'projectId' => 'project_id', 'type' => 'ec2', - 'userId' => 'user_id' + 'userId' => 'user_id', ]; $userJson = [ - 'blob' => $userOptions['blob'], - 'project_id' => $userOptions['projectId'], - 'type' => $userOptions['type'], - 'user_id' => $userOptions['userId'], + 'credential' => [ + 'blob' => $userOptions['blob'], + 'project_id' => $userOptions['projectId'], + 'type' => $userOptions['type'], + 'user_id' => $userOptions['userId'], + ], ]; $this->mockRequest('POST', 'credentials', 'cred', $userJson);