Skip to content

Conversation

@tnikolova82
Copy link
Contributor

fix: Remove invalid HTTPS redirect test fixture and add platform-specific test handling

  • Delete fixtures/https_redirect/with_env/manifest.yml (was missing app configuration)
    The manifest file only contained environment variables without an app definition,
    causing 'Manifest must have at least one application' errors during cf push.
    HTTPS redirect tests with environment variables will now be skipped on CF platform
    until a proper fixture is created.

  • Add platform-aware skip to 'properly logs stdout and stderr' test
    This test uses Docker commands directly (docker container logs) and is incompatible
    with the CF platform. Added check for Docker platform before executing the test.

  • Improve it.After cleanup handler robustness
    Made the cleanup handler conditional with !t.Skipped() check to prevent calling
    platform.Delete on skipped tests, avoiding errors when trying to delete non-existent
    deployment resources.

Expect(cmd.Run()).To(Succeed())
Eventually(func() string {
logs, _ := deployment.RuntimeLogs()
return logs.(string)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check this logs.(string) as logs variable returned from RuntimeLogs() already is a string

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.

3 participants