Skip to content

show namespace for custom strategy bc #10340

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

Conversation

juanvallejo
Copy link
Contributor

Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1365460

If there is a bc using a custom strategy, oc get all --all-namespaces does not show namespace for that bc.

cc @fabianofranz

@juanvallejo
Copy link
Contributor Author

[test]

os::cmd::expect_success 'oc create -f examples/sample-app/application-template-custombuild.json'
os::cmd::expect_failure_and_text 'oc new-app ruby-helloworld-sample' 'deploymentconfig "frontend" created'
os::cmd::expect_success_and_text 'oc get all --all-namespaces' 'cmd-basicresources[\ ]+bc\/ruby\-sample\-build'
echo "resource printer namespace handling: ok"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding new tests to this suite, let's break out resource printer tests from basicresources

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do, I can make a new PR that does this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add it to this one

@fabianofranz
Copy link
Member

fabianofranz commented Aug 10, 2016

LGTM

@stevekuznetsov
Copy link
Contributor

@fabianofranz hold on... we need to be treating our tests better. More tests should not go into basicresources. There's no point in merging this in if I or Juan will just have to clean it up later.

@juanvallejo
Copy link
Contributor Author

@stevekuznetsov

Add it to this one

Done!

trap os::test::junit::reconcile_output EXIT

# Test that resource printer includes resource kind on multiple resources
os::test::junit::declare_suite_start "cmd/basicresources/get"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this is a suite for the resource printer, I think we should rename it that instead of get

@juanvallejo juanvallejo force-pushed the jvallejo_show-namespace-for-custom-bc branch from 7e27a34 to 3359206 Compare August 11, 2016 17:01
@stevekuznetsov
Copy link
Contributor

LGTM [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Aug 11, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7811/) (Image: devenv-rhel7_4807)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 3359206

@juanvallejo
Copy link
Contributor Author

juanvallejo commented Aug 11, 2016

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 3359206

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/7811/)

@openshift-bot openshift-bot merged commit c4d4cf0 into openshift:master Aug 12, 2016
@juanvallejo juanvallejo deleted the jvallejo_show-namespace-for-custom-bc branch August 12, 2016 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants