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())