From f7f7964da64d4ea565788ce70aa514ea0742113e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serdar=20=C3=96zer?= Date: Wed, 22 Apr 2026 13:42:48 +0200 Subject: [PATCH] test(apps): add acceptance test for Cloud Controller API log emission Cloud Controller emits lifecycle log messages (e.g. "Created app with guid ...") via loggregator under the [API/*] source tag when processing an app push. This test verifies those logs appear in the app's recent log stream, providing an end-to-end check that the loggregator emitter in CCNG correctly forwards messages through the loggregator v2 gRPC client introduced in cloudfoundry/cloud_controller_ng#5043. --- apps/running_log.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/running_log.go b/apps/running_log.go index d96857fba..1cb75d716 100644 --- a/apps/running_log.go +++ b/apps/running_log.go @@ -60,4 +60,10 @@ var _ = AppsDescribe("app logs", func() { return logs.Recent(appName).Wait().Out }).Should(Say(fmt.Sprintf("\\[APP(.*)/0\\]\\s*ERR %s", message))) }) + + It("captures [API/*] logs emitted by the Cloud Controller", func() { + Eventually(func() *Buffer { + return logs.Recent(appName).Wait().Out + }).Should(Say(`\[API/\d+\]\s*OUT Created app with guid `)) + }) })