Skip to content

Commit

Permalink
Bump app disk space in scaling integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Webb <[email protected]>
Co-authored-by: Nick Webb <[email protected]>
  • Loading branch information
jpalmerpivotal and nickjameswebb committed Jun 24, 2020
1 parent f58097e commit fb3f929
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions integration/v7/isolated/scale_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ var _ = Describe("scale command", func() {
})

When("Scaling the disk space", func() {
It("scales disk to 92M", func() {
It("scales disk to 512M", func() {
buffer := NewBuffer()
_, err := buffer.Write([]byte("y\n"))
Expect(err).ToNot(HaveOccurred())
session := helpers.CFWithStdin(buffer, "scale", appName, "-k", "92M")
session := helpers.CFWithStdin(buffer, "scale", appName, "-k", "512M")
Eventually(session).Should(Say(`Scaling app %s in org %s / space %s as %s\.\.\.`, appName, orgName, spaceName, userName))
Eventually(session).Should(Say(`This will cause the app to restart\. Are you sure you want to scale %s\? \[yN\]:`, appName))
Eventually(session).Should(Say(`Stopping app %s in org %s / space %s as %s\.\.\.`, appName, orgName, spaceName, userName))
Expand All @@ -230,12 +230,12 @@ var _ = Describe("scale command", func() {
Expect(processSummary.Type).To(Equal("web"))
Expect(processSummary.InstanceCount).To(MatchRegexp(`\d/1`))
Expect(instanceSummary.Memory).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of \d+[KMG]`))
Expect(instanceSummary.Disk).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of 92M`))
Expect(instanceSummary.Disk).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of 512M`))
})

When("-f flag provided", func() {
It("scales without prompt", func() {
session := helpers.CF("scale", appName, "-k", "92M", "-f")
session := helpers.CF("scale", appName, "-k", "512M", "-f")
Eventually(session).Should(Say("Scaling app %s in org %s / space %s as %s...", appName, orgName, spaceName, userName))
Eventually(session).Should(Exit(0))

Expand All @@ -247,7 +247,7 @@ var _ = Describe("scale command", func() {
Expect(processSummary.Type).To(Equal("web"))
Expect(processSummary.InstanceCount).To(MatchRegexp(`\d/1`))
Expect(instanceSummary.Memory).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of \d+[KMG]`))
Expect(instanceSummary.Disk).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of 92M`))
Expect(instanceSummary.Disk).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of 512M`))
})
})
})
Expand Down Expand Up @@ -289,7 +289,7 @@ var _ = Describe("scale command", func() {
buffer := NewBuffer()
_, err := buffer.Write([]byte("y\n"))
Expect(err).ToNot(HaveOccurred())
session := helpers.CFWithStdin(buffer, "scale", appName, "-i", "2", "-k", "120M", "-m", "60M")
session := helpers.CFWithStdin(buffer, "scale", appName, "-i", "2", "-k", "512M", "-m", "60M")
Eventually(session).Should(Say(`Scaling app %s in org %s / space %s as %s\.\.\.`, appName, orgName, spaceName, userName))
Eventually(session).Should(Say(`This will cause the app to restart\. Are you sure you want to scale %s\? \[yN\]:`, appName))
Eventually(session).Should(Say(`Stopping app %s in org %s / space %s as %s\.\.\.`, appName, orgName, spaceName, userName))
Expand All @@ -305,7 +305,7 @@ var _ = Describe("scale command", func() {
Expect(processSummary.InstanceCount).To(MatchRegexp(`\d/2`))
Expect(instanceSummary.State).To(MatchRegexp(`running|starting`))
Expect(instanceSummary.Memory).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of 60M`))
Expect(instanceSummary.Disk).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of 120M`))
Expect(instanceSummary.Disk).To(MatchRegexp(`\d+(\.\d+)?[KMG]? of 512M`))
})
})

Expand Down

0 comments on commit fb3f929

Please sign in to comment.