Skip to content

Commit

Permalink
Add more descriptive error msg in system test when quotas are exceeded
Browse files Browse the repository at this point in the history
[#156728819]

Co-authored-by: Henry Stanley <hstanley@pivotal.io>
  • Loading branch information
Andrea Nodari and Henry Stanley committed May 11, 2018
1 parent f42ed01 commit f4b54dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system_tests/instance_quotas_tests/instance_quotas_test.go
Expand Up @@ -71,7 +71,7 @@ var _ = Describe("quotas", func() {
By("updating to a plan with maxed quota")
session := cf.Cf("update-service", instanceB, "-p", planA)
Eventually(session, cf.CfTimeout).Should(gexec.Exit())
Expect(session).To(gbytes.Say("The quota for this service plan has been exceeded. Please contact your Operator for help."))
Expect(session).To(gbytes.Say(fmt.Sprintf(planQuotaTemplate, serviceOffering, 1)))

By("deleting instance to free up quota")
Eventually(cf.Cf("delete-service", instanceA, "-f"), cf.CfTimeout).Should(gexec.Exit(0))
Expand Down

0 comments on commit f4b54dd

Please sign in to comment.