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

accept diagnostics as args #6634

Merged
merged 3 commits into from
Jan 23, 2016
Merged

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Jan 13, 2016

Allows specifying diagnostic names as args, but doesn't remove the flag.

@sosiouxme @stevekuznetsov ptal

@@ -9,7 +9,7 @@ source "${OS_ROOT}/hack/util.sh"
source "${OS_ROOT}/hack/cmd_util.sh"
os::log::install_errexit

# Cleanup cluster resources created by this test
Cleanup cluster resources created by this test
Copy link
Contributor

Choose a reason for hiding this comment

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

Where'd the # go?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Where'd the # go?

fixed


os::cmd::expect_failure_and_text 'openshift ex diagnostics FakeDiagnostic --diagnostics AlsoMissing' 'No requested diagnostics are available: requested=AlsoMissing, FakeDiagnostic'
os::cmd::expect_failure_and_text 'openshift ex diagnostics AnalyzeLogs --diagnostics AlsoMissing' 'Not all requested diagnostics are available: requested=AlsoMissing, AnalyzeLogs'
echo "diagnostics: ok"
Copy link
Member

Choose a reason for hiding this comment

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

FWIW there is a file for diagnostics test cmds once this merges https://github.com/openshift/origin/pull/6397/files#diff-6061a923ddc8d6dfdd6620834faccb34

@sosiouxme
Copy link
Member

@deads2k Since there doesn't seem to be a need for subcommands I think this is a good improvement - comma lists suck. In fact if we're going to go this route I'd prefer to just remove --diagnostics entirely.

@deads2k
Copy link
Contributor Author

deads2k commented Jan 14, 2016

[test]

@deads2k
Copy link
Contributor Author

deads2k commented Jan 14, 2016

@deads2k Since there doesn't seem to be a need for subcommands I think this is a good improvement - comma lists suck. In fact if we're going to go this route I'd prefer to just remove --diagnostics entirely.

removed.

@deads2k
Copy link
Contributor Author

deads2k commented Jan 18, 2016

Pulled in the deprecation commit too. Any other comments?

@deads2k
Copy link
Contributor Author

deads2k commented Jan 19, 2016

#5605 and #6259 re[test]

@deads2k
Copy link
Contributor Author

deads2k commented Jan 19, 2016

@stevekuznetsov ptal

@@ -26,6 +26,8 @@ This command validates that a configuration file intended to be used for a node

valiateNodeConfigExample = ` // Validate node configuration file
$ %s openshift.local.config/master/node-config.yaml`

validateNodeConfigDeprecationMessage = `This command is deprecated and will be removed. Use 'openshift ex diagnostics NodeConfigCheck --node-config=<path/to/config.yaml' instead.`
Copy link
Contributor

Choose a reason for hiding this comment

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

erroneous < in example path

@deads2k
Copy link
Contributor Author

deads2k commented Jan 20, 2016

rebased and comments addressed.

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 21, 2016
@stevekuznetsov
Copy link
Contributor

LGTM after rebase

@deads2k
Copy link
Contributor Author

deads2k commented Jan 22, 2016

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4719/) (Image: devenv-rhel7_3222)

@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 22, 2016
@deads2k deads2k force-pushed the diag-args branch 2 times, most recently from 3b7f7a0 to 27d612f Compare January 22, 2016 18:01
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to fac65be

@openshift-bot
Copy link
Contributor

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

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to fac65be

openshift-bot pushed a commit that referenced this pull request Jan 23, 2016
@openshift-bot openshift-bot merged commit b034751 into openshift:master Jan 23, 2016
@deads2k deads2k deleted the diag-args branch February 26, 2016 18:43
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.

5 participants