MCPcopy Index your code
hub / github.com/cloudfoundry/cli / WaitForAppDiskToTakeEffect

Function WaitForAppDiskToTakeEffect

integration/helpers/app.go:374–386  ·  view source on GitHub ↗
(appName string, processIndex int, instanceIndex int, shouldRestartFirst bool, expectedDisk string)

Source from the content-addressed store, hash-verified

372}
373
374func WaitForAppDiskToTakeEffect(appName string, processIndex int, instanceIndex int, shouldRestartFirst bool, expectedDisk string) {
375 if shouldRestartFirst {
376 session := CF("restart", appName)
377 Eventually(session).Should(Exit(0))
378 }
379
380 Eventually(func() string {
381 session := CF("app", appName)
382 Eventually(session).Should(Exit(0))
383 appTable := ParseV3AppProcessTable(session.Out.Contents())
384 return appTable.Processes[processIndex].Instances[instanceIndex].Disk
385 }).Should(MatchRegexp(fmt.Sprintf(`\d+(\.\d+)?[KMG]? of %s`, expectedDisk)))
386}
387
388func WaitForLogRateLimitToTakeEffect(appName string, processIndex int, instanceIndex int, shouldRestartFirst bool, expectedLogRateLimit string) {
389 if shouldRestartFirst {

Callers 2

disk_flag_test.goFile · 0.92

Calls 2

CFFunction · 0.85
ParseV3AppProcessTableFunction · 0.85

Tested by

no test coverage detected