Skip to content

Fix OverrideYml test for CF API v3#356

Merged
ivanovac merged 1 commit intomasterfrom
tst-fix
Dec 8, 2025
Merged

Fix OverrideYml test for CF API v3#356
ivanovac merged 1 commit intomasterfrom
tst-fix

Conversation

@ivanovac
Copy link
Copy Markdown
Contributor

@ivanovac ivanovac commented Dec 5, 2025

What

Fixes the OverrideYml integration test to work with CF API v3.

Why

After migrating to switchblade with CF API v3 support, the OverrideYml test was failing because staging logs are no longer captured in the Deploy.Execute() logs buffer when staging fails.

In v2, the logs buffer contained both setup and staging output. In v3, when staging fails:

  • The logs buffer only contains setup output (push, routes, etc.)
  • Staging logs must be fetched separately from the CF platform

How

Modified the test to fetch staging logs using cf logs --recent:

  1. Target correct org/space: Switchblade creates a dedicated org and space with the same name as the app. The test now targets this space before fetching logs.

  2. Direct log verification: Replaced Eventually(logs).Should(SatisfyAll(...)) with direct Expect() assertions on the fetched logs.

@ramonskie
Copy link
Copy Markdown
Contributor

the github action test is failing due to the fact that it tries to download big files which results in out of disk space errors.
this should now be fixed by c5e5987
as we removed the cached test. as this would be done within concourse anyways

@ivanovac ivanovac merged commit 57b5152 into master Dec 8, 2025
31 of 49 checks passed
@ivanovac ivanovac deleted the tst-fix branch December 8, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants