Skip to content

Commit

Permalink
INT - fix test after merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollins-axway committed Feb 25, 2025
1 parent ce88fbd commit 1e734a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/agent/provisioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ func TestNewCredentialRequestBuilder(t *testing.T) {
}
}

var postCfgFunc = func(cc config.CentralConfig, afc config.AgentFeaturesConfig) error { return nil }

func TestNewAccessRequestBuilder(t *testing.T) {
s := httptest.NewServer(http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {}))
defer s.Close()
cfg := createCentralCfg(s.URL, "test")
InitializeWithAgentFeatures(cfg, &config.AgentFeaturesConfiguration{})
InitializeWithAgentFeatures(cfg, &config.AgentFeaturesConfiguration{}, postCfgFunc)

agent.apicClient = &mock.Client{
CreateOrUpdateResourceMock: func(data v1.Interface) (*v1.ResourceInstance, error) {
Expand Down Expand Up @@ -160,7 +162,7 @@ func TestNewApplicationProfileDefinitionBuilder(t *testing.T) {
s := httptest.NewServer(http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {}))
defer s.Close()
cfg := createCentralCfg(s.URL, "test")
InitializeWithAgentFeatures(cfg, &config.AgentFeaturesConfiguration{})
InitializeWithAgentFeatures(cfg, &config.AgentFeaturesConfiguration{}, postCfgFunc)
var sentAPD *v1.ResourceInstance
var createOrUpdateCalled bool

Expand Down Expand Up @@ -214,7 +216,7 @@ func TestCleanApplicationProfileDefinition(t *testing.T) {
s := httptest.NewServer(http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {}))
defer s.Close()
cfg := createCentralCfg(s.URL, "test")
InitializeWithAgentFeatures(cfg, &config.AgentFeaturesConfiguration{})
InitializeWithAgentFeatures(cfg, &config.AgentFeaturesConfiguration{}, postCfgFunc)
var deleteAPD *v1.ResourceInstance
var deleteCalled, returnErr bool

Expand Down

0 comments on commit 1e734a1

Please sign in to comment.