Skip to content
Snippets Groups Projects
Commit aaa33d22 authored by Yordan Kinkov's avatar Yordan Kinkov
Browse files

#3 add OCM client tests

parent 0ab4ff22
No related branches found
No related tags found
1 merge request!12Modify ocm client
Pipeline #52808 passed
...@@ -25,7 +25,7 @@ func Test_GetLoginProofInvitationSuccess(t *testing.T) { ...@@ -25,7 +25,7 @@ func Test_GetLoginProofInvitationSuccess(t *testing.T) {
})) }))
client := ocm.New(ocmServer.URL) client := ocm.New(ocmServer.URL)
res, err := client.GetLoginProofInvitation(context.Background(), "type=principalMembershipCredential") res, err := client.GetLoginProofInvitation(context.Background(), []string{"principalMembershipCredential"})
assert.NoError(t, err) assert.NoError(t, err)
assert.Equal(t, expected.StatusCode, res.StatusCode) assert.Equal(t, expected.StatusCode, res.StatusCode)
...@@ -39,7 +39,7 @@ func Test_GetLoginProofInvitationErr(t *testing.T) { ...@@ -39,7 +39,7 @@ func Test_GetLoginProofInvitationErr(t *testing.T) {
})) }))
client := ocm.New(ocmServer.URL) client := ocm.New(ocmServer.URL)
res, err := client.GetLoginProofInvitation(context.Background(), "type=principalMembershipCredential") res, err := client.GetLoginProofInvitation(context.Background(), []string{"principalMembershipCredential"})
assert.Nil(t, res) assert.Nil(t, res)
assert.Error(t, err) assert.Error(t, err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment