Skip to content

add e2e test for oc adm must-gather#22594

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
sanchezl:e2e-oc_adm_must-gather
Apr 19, 2019
Merged

add e2e test for oc adm must-gather#22594
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
sanchezl:e2e-oc_adm_must-gather

Conversation

@sanchezl
Copy link
Copy Markdown
Contributor

No description provided.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 17, 2019
@sanchezl sanchezl force-pushed the e2e-oc_adm_must-gather branch from 2a44d36 to 90f2c94 Compare April 18, 2019 01:28
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 18, 2019
@mfojtik
Copy link
Copy Markdown
Contributor

mfojtik commented Apr 18, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 18, 2019
@mfojtik
Copy link
Copy Markdown
Contributor

mfojtik commented Apr 18, 2019

/retest

Copy link
Copy Markdown
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

I'd like to see a followup with the fixes, still.


import (
g "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please stick to the import organization we have, which is:

  1. builtin imports
  2. other imports
  3. k8s imports
  4. origin imports.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also wrt gomega we try to have an alias o is sufficient rather than importing everything into current namespace.

oc := util.NewCLI("oc-adm-must-gather", util.KubeConfigPath()).AsAdmin()
g.It("runs successfully", func() {
tempDir, err := ioutil.TempDir("", "test.oc-adm-must-gather.")
Ω(err).ShouldNot(HaveOccurred())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd prefer we stick with ANSI characters anywhere in our codebase.

@openshift-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mfojtik, sanchezl, soltysh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit f408ac4 into openshift:master Apr 19, 2019
@sanchezl sanchezl deleted the e2e-oc_adm_must-gather branch April 22, 2019 14:57
@sanchezl sanchezl restored the e2e-oc_adm_must-gather branch April 22, 2019 14:58
@sanchezl sanchezl deleted the e2e-oc_adm_must-gather branch April 22, 2019 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants