<commit_before>package quotas_test

import(
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	. "github.com/onsi/gomega/gbytes"
	. "github.com/onsi/gomega/gexec"
	. "github.com/pivotal-cf-experimental/cf-test-helpers/cf"
)

var _ = Describe("CF Quota commands", func() {
	It("can Create, Read, Update, and Delete quotas", func() {
		AsUser(context.AdminUserContext(), func() {
			Eventually(Cf("create-quota",
				"quota-name-goes-here",
				"-m", "512M",
			), 5.0).Should(Exit(0))

			quotaOutput := Cf("quotas")
			Eventually(quotaOutput, 5).Should(Say("quota-name-goes-here"))

			Eventually(Cf("update-quota",
				"quota-name-goes-here",
				"-m", "513M",
			), 5).Should(Exit(0))

			Eventually(Cf("quotas")).Should(Say("513M"))

			Eventually(Cf("delete-quota",
				"quota-name-goes-here",
				"-f,",
			)).Should(Exit(0))

			Eventually(Cf("quotas")).ShouldNot(Say("quota-name-goes-here"))
		})
	})
})
<commit_msg>Add a test for the 'cf quota $QUOTA_NAME' command<commit_after>package quotas_test

import(
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"
	. "github.com/onsi/gomega/gbytes"
	. "github.com/onsi/gomega/gexec"
	. "github.com/pivotal-cf-experimental/cf-test-helpers/cf"
)

var _ = Describe("CF Quota commands", func() {
	It("can Create, Read, Update, and Delete quotas", func() {
		AsUser(context.AdminUserContext(), func() {
			Eventually(Cf("create-quota",
				"quota-name-goes-here",
				"-m", "512M",
			), 5.0).Should(Exit(0))

			Eventually(Cf("quota", "quota-name-goes-here"), 5.0).Should(Say("512M"))

			quotaOutput := Cf("quotas")
			Eventually(quotaOutput, 5).Should(Say("quota-name-goes-here"))

			Eventually(Cf("update-quota",
				"quota-name-goes-here",
				"-m", "513M",
			), 5).Should(Exit(0))

			Eventually(Cf("quotas")).Should(Say("513M"))

			Eventually(Cf("delete-quota",
				"quota-name-goes-here",
				"-f,",
			)).Should(Exit(0))

			Eventually(Cf("quotas")).ShouldNot(Say("quota-name-goes-here"))
		})
	})
})

{'fraction_non_alphanumeric': 0.2161339421613394, 'fraction_numerical': 0.018772196854388634, 'mean_word_length': 3.9672544080604535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7087823', 'n_tokens_mistral': 941, 'n_tokens_neox': 798, 'n_words': 97}