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

cmd tests are not working properly #125

Closed
kadel opened this issue Aug 29, 2016 · 1 comment
Closed

cmd tests are not working properly #125

kadel opened this issue Aug 29, 2016 · 1 comment

Comments

@kadel
Copy link
Member

kadel commented Aug 29, 2016

one example

test result:

===> Starting test <===
convert::expect_success_and_warning: Running: 'kompose convert --stdout -f /home/tomas/dev/goenv/kompose/src/github.com/skippbox/kompose/script/test/fixtures/etherpad/docker-compose.yml' expected_output: '/home/tomas/dev/goenv/kompose/src/github.com/skippbox/kompose/script/test/fixtures/etherpad/output-k8s.json' expected_warning: 'Unsupported key depends_on - ignoring'
PASS: converted output matches
PASS: warning found: 'Unsupported key depends_on - ignoring'

but if I run command manually it fails and there is no output:

▶ kompose convert --stdout -f /home/tomas/dev/goenv/kompose/src/github.com/skippbox/kompose/script/test/fixtures/etherpad/docker-compose.yml
WARN[0000] The DB_PORT variable is not set. Substituting a blank string. 
WARN[0000] The DB_NAME variable is not set. Substituting a blank string. 
WARN[0000] The DB_PASS variable is not set. Substituting a blank string. 
WARN[0000] The DB_USER variable is not set. Substituting a blank string. 
WARN[0000] The ROOT_PASS variable is not set. Substituting a blank string. 
WARN[0000] The DB_PASS variable is not set. Substituting a blank string. 
WARN[0000] The DB_PORT variable is not set. Substituting a blank string. 
WARN[0000] The DB_USER variable is not set. Substituting a blank string. 
WARN[0000] The DB_HOST variable is not set. Substituting a blank string. 
WARN[0000] The DB_NAME variable is not set. Substituting a blank string. 
FATA[0000] "mariadb" failed to load ports from compose file: invalid container port ""
@kadel kadel changed the title cmd tests are now working properly cmd tests are not working properly Sep 5, 2016
@kadel
Copy link
Member Author

kadel commented Sep 5, 2016

My bad, I forgot export env varibales. 😳
When I export proper env variables that are specified in docker-compose.yml it works properly.

closing

@kadel kadel closed this as completed Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant