Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/sguruvar/keda
Browse files Browse the repository at this point in the history
  • Loading branch information
sguruvar committed Jan 17, 2024
2 parents bcafe6f + 268fe43 commit 5a5b8b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ func TestScaler(t *testing.T) {
t.Log("--- setting up ---")

ampClient := createAMPClient()
workspaceOutput, _ := ampClient.CreateWorkspace(context.Background(), nil)
workspaceOutput, err := ampClient.CreateWorkspace(context.Background(), nil)
assert.NoError(t, err, "aws prometheus workspace creation has failed")
workspaceID = *workspaceOutput.WorkspaceId

kc := GetKubernetesClient(t)
Expand All @@ -156,10 +157,8 @@ func TestScaler(t *testing.T) {
WorkspaceId: &workspaceID,
}
input := &deleteWSInput
_, err := ampClient.DeleteWorkspace(context.Background(), input)
if err != nil {
t.Log("Unable to delete AMP workspace", err)
}
_, err = ampClient.DeleteWorkspace(context.Background(), input)
assert.NoError(t, err, "aws prometheus workspace deletion has failed")
DeleteKubernetesResources(t, testNamespace, data, templates)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ func TestScaler(t *testing.T) {
t.Log("--- setting up ---")

ampClient := createAMPClient()
workspaceOutput, _ := ampClient.CreateWorkspace(context.Background(), nil)
workspaceOutput, err := ampClient.CreateWorkspace(context.Background(), nil)
assert.NoError(t, err, "aws prometheus workspace creation has failed")
workspaceID = *workspaceOutput.WorkspaceId

kc := GetKubernetesClient(t)
Expand All @@ -141,10 +142,8 @@ func TestScaler(t *testing.T) {
WorkspaceId: &workspaceID,
}
input := &deleteWSInput
_, err := ampClient.DeleteWorkspace(context.Background(), input)
if err != nil {
t.Log("Unable to delete AMP workspace", err)
}
_, err = ampClient.DeleteWorkspace(context.Background(), input)
assert.NoError(t, err, "aws prometheus workspace deletion has failed")
DeleteKubernetesResources(t, testNamespace, data, templates)
}

Expand Down

0 comments on commit 5a5b8b2

Please sign in to comment.