Code Review
/
nonrtric
/
plt
/
sme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CI: Add silent prescan SonarCloud job
[nonrtric/plt/sme.git]
/
capifcore
/
internal
/
invokermanagementapi
/
typevalidation_test.go
diff --git
a/capifcore/internal/invokermanagementapi/typevalidation_test.go
b/capifcore/internal/invokermanagementapi/typevalidation_test.go
index
499b0a1
..
b6b491d
100644
(file)
--- a/
capifcore/internal/invokermanagementapi/typevalidation_test.go
+++ b/
capifcore/internal/invokermanagementapi/typevalidation_test.go
@@
-54,7
+54,7
@@
func TestValidateInvoker(t *testing.T) {
assert.Nil(t, err)
}
assert.Nil(t, err)
}
-func Test
Is
Onboarded(t *testing.T) {
+func Test
ValidateAlready
Onboarded(t *testing.T) {
publicKey := "publicKey"
invokerUnderTest := APIInvokerEnrolmentDetails{
OnboardingInformation: OnboardingInformation{
publicKey := "publicKey"
invokerUnderTest := APIInvokerEnrolmentDetails{
OnboardingInformation: OnboardingInformation{
@@
-67,8
+67,8
@@
func TestIsOnboarded(t *testing.T) {
ApiInvokerPublicKey: "otherPublicKey",
},
}
ApiInvokerPublicKey: "otherPublicKey",
},
}
- assert.
False(t, invokerUnderTest.Is
Onboarded(otherInvoker))
+ assert.
Nil(t, invokerUnderTest.ValidateAlready
Onboarded(otherInvoker))
otherInvoker.OnboardingInformation.ApiInvokerPublicKey = publicKey
otherInvoker.OnboardingInformation.ApiInvokerPublicKey = publicKey
- assert.
True(t, invokerUnderTest.Is
Onboarded(otherInvoker))
+ assert.
NotNil(t, invokerUnderTest.ValidateAlready
Onboarded(otherInvoker))
}
}