Skip to content

Commit

Permalink
wipwipwipwipwip
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerj0 committed Mar 21, 2024
1 parent c84115c commit e2109b9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/acceptance/api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@ var _ = Describe("AutoScaler Public API", func() {
Expect(string(newPolicy)).Should(MatchJSON(policy))
})

It("[cpuutil] should succeed to create a valid policy", func() {
policy := GenerateDynamicScaleOutPolicy(1, 2, "cpuutil", 5)
newPolicy, status := createPolicy(policy)
Expect(status).To(Or(Equal(200), Equal(201)))
Expect(string(newPolicy)).Should(MatchJSON(policy))
})

It("should succeed to create a valid policy but remove any extra fields", func() {
policyWithExtraFields, validPolicy := GenerateDynamicScaleOutPolicyWithExtraFields(1, 2, "memoryused", 30)
newPolicy, status := createPolicy(policyWithExtraFields)
Expand All @@ -119,12 +112,6 @@ var _ = Describe("AutoScaler Public API", func() {
Expect(string(response)).Should(ContainSubstring(`[{"context":"(root).instance_min_count","description":"Must be greater than or equal to 1"}]`))
})

It("[cpuutil] should fail to create an invalid policy", func() {
response, status := createPolicy(GenerateDynamicScaleOutPolicy(0, 2, "memoryused", 101))
Expect(status).To(Equal(400))
Expect(string(response)).Should(ContainSubstring(`[{"context":"(root).instance_min_count","description":"Must be less than or equal to 100"}]`))
})

})

Context("When policy is defined", func() {
Expand Down

0 comments on commit e2109b9

Please sign in to comment.