-
Notifications
You must be signed in to change notification settings - Fork 752
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
add BuildConfig support to kompose down #413
add BuildConfig support to kompose down #413
Conversation
@procrypt mind adding unit tests for this? |
196bebd
to
8468126
Compare
I'm afraid that we still don't have a way how to test this. :-( |
@kadel I'm trying something don't know if it the right thing to do, will update the WIP later today. |
@procrypt - @kadel is correct, we will need to mock out the entire OpenShift client for this :( I can think of a couple of ways to go about this -
I don't know what is the right way forward, but yep, mocking out the entire client might take a sprint or two :) |
I would recommend either mock required bits of API or see if we can use/reuse bits from openshift. |
@pradeepto @containscafeine no need to "mock" it, you can run an Openshift cluster within TravisCI. |
@cdrage then that won't be called unit tests right? If we are planning on doing complete e2e test with kompose in golang, which involves bringing up clusters then that should be a complete new thing. |
@pradeepto Using versioned containers, it's unlikely to fail coming up (from my experience "mocking" the cluster) |
I think that we can discuss this elsewhere. I don't think we have block this PR on tests. |
@kadel +1 |
docker-compose file used is docker-compose.yml
@kadel @cdrage @containscafeine Review please.
Fixes #382