Appliscale / perun

A command-line validation tool for AWS Cloud Formation that allows to conquer the cloud faster!
https://perun-for-aws.appliscale.io
Apache License 2.0
91 stars 8 forks source link

Test not passing bug #175

Closed maxiwoj closed 5 years ago

maxiwoj commented 5 years ago

This test is failing on master: https://github.com/Appliscale/perun/blob/94284719a799f4498329300c2e7cdb32388c9d51/checkingrequiredfiles/creatingfiles_test.go#L103

go test -cover ./...
?       github.com/Appliscale/perun [no test files]
?       github.com/Appliscale/perun/awsapi  [no test files]
INFO: Running on EC2
ERROR: RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/placement/availability-zone: dial tcp 169.254.169.254:80: connect: host is down
--- FAIL: TestGetIamInstanceProfileAssociations (0.62s)
    creatingfiles_test.go:108:
            Error Trace:    creatingfiles_test.go:108
            Error:          Expected value not to be nil.
            Test:           TestGetIamInstanceProfileAssociations
            Messages:       Error should be non-nil
FAIL
coverage: 29.0% of statements
FAIL    github.com/Appliscale/perun/checkingrequiredfiles   6.291s