Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcp listening tests always fail with goss 0.4.9 if ipv6 present #1006

Open
sshipway opened this issue Nov 27, 2024 · 0 comments
Open

tcp listening tests always fail with goss 0.4.9 if ipv6 present #1006

sshipway opened this issue Nov 27, 2024 · 0 comments
Labels

Comments

@sshipway
Copy link
Contributor

Describe the bug
Defining a tcp test as "tcp:443" or as "tcp4:443"
Port 443 is listening on 0.0.0.0 (tcp4 only)
Goss reports this as "expected false to equal true"

This test worked prior to the 0.4.9 upgrade (version 0.3.20) when no ipv6 present

Could it be related to tcp6 (which is now enabled on this host)? However even using 'tcp4:80' I still get a fail

How To Reproduce

  • Have host with both ipv4 and ipv6 addresses
  • Have apache running listening on port 80, tcp4
  • verify connection (telnet localhost 80)
  • create goss rule
port:
  tcp:80:
    listening: true
  • Run goss test on this
  • See that it fails

Expected Behavior
The test should pass, as the port is being listened on and can be connected to by telnet

Actual Behavior
test failed, even though it passed under goss 0.3.20, and the port is definitely listening

Environment:

  • Version of goss
  • OS/Distribution version (if applicable)
@sshipway sshipway added the bug label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant