Binary built via:
cd $GOPATH/src/github.com/aelsabbahy/goss/
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=mika~git804995a8_with_tap_and_junit" -o release/goss-linux-amd64 github.com/aelsabbahy/goss/cmd/goss
using goss.git based on 804995a8 and including my PRs
https://github.com/aelsabbahy/goss/pull/48 (junit support) +
https://github.com/aelsabbahy/goss/pull/47 (TAP support)
Also use /usr/sbin/goss if it's present and only if it's not
yet there download the according version. This makes
development and testing of custom goss versions easier.
While at it fix string<->integer issues like:
| DEPRICATION WARNING: false: command.exit-status should be an integer not a string
Change-Id: I3dadc0b604db565b11adf1839b11e29437856fd1
The Jenkins test 'netinstall-test-ngcp-installer' restores plain Debian VM
and install NGCP using ngcp-installer only.
In this case the test should skip some strict host/names checks.
Change-Id: I9b84784ebed0a54ff51aa2baef274f5466879352
At the momment results are not stable due to goss error.
The issue reported to upsteam: https://github.com/aelsabbahy/goss/issues/27
> Failures:
> Port: tcp:1443: ip: doesn't match, expect: [10.15.20.169] found: [127.0.0.1]
> Port: tcp:443: ip: doesn't match, expect: [10.15.20.169] found: [127.0.0.1]
>
> Total Duration: 0.436s
> Count: 259, Failed: 2
It should be re-enabled as soon as goss is fixed.
Change-Id: Iae2db3a29dd77b99733a92ec017ad00012ab0a87
Check for getty process without path information and arguments,
because on systemd powered systems we have:
| /sbin/agetty tty1 38400
while sysvinit powered systemd run:
| /sbin/getty 38400 tty1
| /sbin/getty 38400 tty2
| /sbin/getty 38400 tty3
| /sbin/getty 38400 tty4
| /sbin/getty 38400 tty5
| /sbin/getty 38400 tty6
As soon as one "getty" process is available that should be fine enough
for us, no matter whether it's /sbin/agetty or /sbin/getty.
(Of course it would be even better if we'd have regex support
in the tests, but that's not available in upstream code...)
We have no DNS records for freshly installed VMs/Vagrant/Amazon images.
So, we have to skip the test there. It is enabled by default for
other test cases as it is useful itself.
We can conside to configure DNS for freshly installed VMs one day.
In failing tests it's hard to parse very long cmdlines, so reduce
it as much as possible and still sensible. Also fix quoting of
the heartbeat command line for YAML format.