Skip to content

Commit

Permalink
Delete duplicate app crashing test
Browse files Browse the repository at this point in the history
- move app instance scaling test to instance_reporting.go
- removed dynamic_info.go

[finishes #165291993](https://www.pivotaltracker.com/story/show/165291993)

Co-authored-by: Dave Walter <[email protected]>
  • Loading branch information
weymanf and davewalter committed Aug 7, 2019
1 parent 0e4ba0b commit ed4d2f4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 63 deletions.
63 changes: 0 additions & 63 deletions apps/dynamic_info.go

This file was deleted.

32 changes: 32 additions & 0 deletions apps/instance_reporting.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,36 @@ var _ = AppsDescribe("Getting instance information", func() {
Expect(app.Out).NotTo(Say("instances: 1/1"))
})
})

Describe("Scaling instances", func() {
var appName string

BeforeEach(func() {
appName = random_name.CATSRandomName("APP")

Expect(cf.Cf("push",
appName,
"-b", Config.GetBinaryBuildpackName(),
"-m", DEFAULT_MEMORY_LIMIT,
"-p", assets.NewAssets().Catnip,
"-c", "./catnip",
"-i", "1",
"-d", Config.GetAppsDomain()).Wait(Config.CfPushTimeoutDuration())).To(Exit(0))
})

AfterEach(func() {
app_helpers.AppReport(appName)

Expect(cf.Cf("delete", appName, "-f", "-r").Wait()).To(Exit(0))
})

It("can be queried for state by instance", func() {
Expect(cf.Cf("scale", appName, "-i", "2").Wait(Config.CfPushTimeoutDuration())).To(Exit(0))

app := cf.Cf("app", appName).Wait()
Expect(app).To(Exit(0))
Expect(app).To(Say("#0"))
Expect(app).To(Say("#1"))
})
})
})

0 comments on commit ed4d2f4

Please sign in to comment.