Fix helmmanager
[nonrtric/plt/sme.git] / capifcore / internal / publishservice / publishservice_test.go
index db23ce1..eccca15 100644 (file)
@@ -75,8 +75,8 @@ func TestPublishUnpublishService(t *testing.T) {
        assert.Equal(t, "http://example.com/"+apfId+"/service-apis/"+*resultService.ApiId, result.Recorder.Header().Get(echo.HeaderLocation))
        newServiceDescription.ApiId = &newApiId
        wantedAPILIst := []publishapi.ServiceAPIDescription{newServiceDescription}
-       assert.True(t, serviceUnderTest.AreAPIsRegistered(&wantedAPILIst))
-       assert.True(t, serviceUnderTest.IsAPIRegistered("aefId", "app-management"))
+       assert.True(t, serviceUnderTest.AreAPIsPublished(&wantedAPILIst))
+       assert.True(t, serviceUnderTest.IsAPIPublished("aefId", "app-management"))
        serviceRegisterMock.AssertCalled(t, "GetAefsForPublisher", apfId)
        helmManagerMock.AssertCalled(t, "InstallHelmChart", "namespace", "repoName", "chartName", "releaseName")
        assert.ElementsMatch(t, []string{aefId}, serviceUnderTest.getAllAefIds())