X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=capifcore%2Finternal%2Finvokermanagementapi%2Ftypevalidation_test.go;h=b6b491d0e55066767ff4f6c7d90ab5f4d6c93d49;hb=a98d361fe90ebac93c13a599529c4b743e11ace2;hp=499b0a12ee8ea976394c80628dc108a771d98ee3;hpb=c21e101767fbde3a091a0ee7fef7782fedbe5b37;p=nonrtric%2Fplt%2Fsme.git diff --git a/capifcore/internal/invokermanagementapi/typevalidation_test.go b/capifcore/internal/invokermanagementapi/typevalidation_test.go index 499b0a1..b6b491d 100644 --- 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) } -func TestIsOnboarded(t *testing.T) { +func TestValidateAlreadyOnboarded(t *testing.T) { publicKey := "publicKey" invokerUnderTest := APIInvokerEnrolmentDetails{ OnboardingInformation: OnboardingInformation{ @@ -67,8 +67,8 @@ func TestIsOnboarded(t *testing.T) { ApiInvokerPublicKey: "otherPublicKey", }, } - assert.False(t, invokerUnderTest.IsOnboarded(otherInvoker)) + assert.Nil(t, invokerUnderTest.ValidateAlreadyOnboarded(otherInvoker)) otherInvoker.OnboardingInformation.ApiInvokerPublicKey = publicKey - assert.True(t, invokerUnderTest.IsOnboarded(otherInvoker)) + assert.NotNil(t, invokerUnderTest.ValidateAlreadyOnboarded(otherInvoker)) }