-
Notifications
You must be signed in to change notification settings - Fork 52
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
VCR updates for tests in kubernetes repo #83
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Default sort was by hash, inconvenient. (and sorted existing .txt so next VCR diff is easy to read)
Add PVs, claim them with PVCs (deterministic 1:1 by label selector), use them in a pod.
f401f38
to
ef22fe5
Compare
@zeari @yaacov @moolitayer PTAL, this now has all I want. |
oc get persistentVolumes --show-labels | ||
echo | ||
echo "== oc get persistentvolumeclaims --all-namespaces --show-kind --show-labels ==" | ||
oc get persistentVolumeClaims --all-namespaces --show-labels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a diff of --show-kind
in the three echo statements above. seems helpful to include, event if we are only showing one object kind at a time.
ef22fe5
to
891e243
Compare
Done, PTAL. |
@@ -96,12 +114,26 @@ oc label route my-route-2 key-route-label- | |||
oc patch --type=merge template my-template-2 --patch='{"parameters": []}' | |||
oc delete pod my-pod-2 | |||
|
|||
#old_quotas=$("oc describe quota |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, removed
- Add a memory quota to test binary suffixes (Mi, Gi). - Delete all quotas from my-project-1 before 2nd recording, as test expects. - Modify quota items for 2nd recording to cover delete, update, no-change. https://bugzilla.redhat.com/show_bug.cgi?id=1504560
Currently ignored for `oc get images` but let's specify anyway.
var=$(cmd) exit status is cmd exit status. export ... exit status is always 0. See https://stackoverflow.com/a/48486983/239657.
…unts The default PVs are HostPath to /var/lib/minishift/openshift.local.pv/pv0089 etc.
891e243
to
99ac35b
Compare
Checked commits cben/manageiq-providers-openshift@4dc5914~...99ac35b with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0 **
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@cben good to go?
this one good to go.
|
VCR updates for tests in kubernetes repo (cherry picked from commit 542fa53) https://bugzilla.redhat.com/show_bug.cgi?id=1559544
Gaprindashvili backport details:
|
No longer rely on hawkular metrics for example of volumes.
Defined PVs, PVCs (successfully bound and pending), and referenced PVC in pod.
Recorded without
--metrics
=> minishift used ~2GB RAM instead of ~5GB 📉Modify quotas between runs.
https://bugzilla.redhat.com/show_bug.cgi?id=1504560
@miq-bot add-label test, gaprindashvili/yes
@zeari @yaacov @moolitayer please review (recommend by commits), together with ManageIQ/manageiq-providers-kubernetes#216