From 7486292b9b9f27f22fba5ee50803c21abf082f15 Mon Sep 17 00:00:00 2001 From: Beni Cherniavsky-Paskin Date: Tue, 3 Oct 2017 14:02:12 +0300 Subject: [PATCH] Drop componentstatuses from vcr cassette Followup to https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/121 Removed (by manual editing) https://host.example.com:8443/api/v1/componentstatuses requests from cassette to avoid "unused interactions" error. BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1485431 --- .../openshift/container_manager/refresher.yml | 40 ------------------ .../refresher_after_openshift_deletions.yml | 41 ------------------- .../refresher_before_openshift_deletions.yml | 41 ------------------- 3 files changed, 122 deletions(-) diff --git a/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher.yml b/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher.yml index 1fe15fb5..eacd88ed 100644 --- a/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher.yml +++ b/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher.yml @@ -427,46 +427,6 @@ http_interactions: encoding: UTF-8 string: '{"kind":"PersistentVolumeClaimList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/persistentvolumeclaims","resourceVersion":"530008"},"items":[]} -' - http_version: - recorded_at: Wed, 21 Dec 2016 13:46:20 GMT -- request: - method: get - uri: https://host.example.com:8443/api/v1/componentstatuses - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - "*/*" - Accept-Encoding: - - gzip, deflate - User-Agent: - - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.1p112 - Authorization: - - Bearer theToken - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-store - Content-Type: - - application/json - Date: - - Wed, 21 Dec 2016 13:46:20 GMT - Content-Length: - - '917' - body: - encoding: UTF-8 - string: '{"kind":"ComponentStatusList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/componentstatuses"},"items":[{"metadata":{"name":"controller-manager","selfLink":"/api/v1/componentstatuses/controller-manager","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"False","message":"Get - http://127.0.0.1:10252/healthz: dial tcp 127.0.0.1:10252: getsockopt: connection - refused"}]},{"metadata":{"name":"scheduler","selfLink":"/api/v1/componentstatuses/scheduler","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"False","message":"Get - http://127.0.0.1:10251/healthz: dial tcp 127.0.0.1:10251: getsockopt: connection - refused"}]},{"metadata":{"name":"etcd-0","selfLink":"/api/v1/componentstatuses/etcd-0","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"False","message":"Get - https://host.example.com:4001/health: remote error: bad certificate"}]}]} - ' http_version: recorded_at: Wed, 21 Dec 2016 13:46:20 GMT diff --git a/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher_after_openshift_deletions.yml b/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher_after_openshift_deletions.yml index 60da8442..0eff69bb 100644 --- a/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher_after_openshift_deletions.yml +++ b/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher_after_openshift_deletions.yml @@ -407,47 +407,6 @@ http_interactions: encoding: UTF-8 string: '{"kind":"PersistentVolumeClaimList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/persistentvolumeclaims","resourceVersion":"98417"},"items":[{"metadata":{"name":"my-persistentvolumeclaim-2","namespace":"my-project-2","selfLink":"/api/v1/namespaces/my-project-2/persistentvolumeclaims/my-persistentvolumeclaim-2","uid":"c0a05745-6aeb-11e7-b2e6-001a4a1626e8","resourceVersion":"98128","creationTimestamp":"2017-07-17T12:30:43Z"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"8Gi"}}},"status":{"phase":"Pending"}}]} -' - http_version: - recorded_at: Mon, 17 Jul 2017 12:32:52 GMT -- request: - method: get - uri: https://host.example.com:8443/api/v1/componentstatuses - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - "*/*" - Accept-Encoding: - - gzip, deflate - User-Agent: - - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222 - Authorization: - - Bearer theToken - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-store - Content-Type: - - application/json - Date: - - Mon, 17 Jul 2017 12:33:30 GMT - Content-Length: - - '912' - body: - encoding: UTF-8 - string: '{"kind":"ComponentStatusList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/componentstatuses"},"items":[{"metadata":{"name":"scheduler","selfLink":"/api/v1/componentstatusesscheduler","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"False","message":"Get - http://127.0.0.1:10251/healthz: dial tcp 127.0.0.1:10251: getsockopt: connection - refused"}]},{"metadata":{"name":"controller-manager","selfLink":"/api/v1/componentstatusescontroller-manager","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"False","message":"Get - http://127.0.0.1:10252/healthz: dial tcp 127.0.0.1:10252: getsockopt: connection - refused"}]},{"metadata":{"name":"etcd-0","selfLink":"/api/v1/componentstatusesetcd-0","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"False","message":"Get - https://vm-48-232.eng.lab.tlv.redhat.com:4001/health: remote error: tls: bad - certificate"}]}]} - ' http_version: recorded_at: Mon, 17 Jul 2017 12:32:52 GMT diff --git a/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher_before_openshift_deletions.yml b/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher_before_openshift_deletions.yml index 014b4df2..2ffd630d 100644 --- a/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher_before_openshift_deletions.yml +++ b/spec/vcr_cassettes/manageiq/providers/openshift/container_manager/refresher_before_openshift_deletions.yml @@ -429,47 +429,6 @@ http_interactions: encoding: UTF-8 string: '{"kind":"PersistentVolumeClaimList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/persistentvolumeclaims","resourceVersion":"98234"},"items":[{"metadata":{"name":"my-persistentvolumeclaim-0","namespace":"my-project-0","selfLink":"/api/v1/namespaces/my-project-0/persistentvolumeclaims/my-persistentvolumeclaim-0","uid":"bf84f35f-6aeb-11e7-b2e6-001a4a1626e8","resourceVersion":"97985","creationTimestamp":"2017-07-17T12:30:42Z"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"8Gi"}}},"status":{"phase":"Pending"}},{"metadata":{"name":"my-persistentvolumeclaim-1","namespace":"my-project-1","selfLink":"/api/v1/namespaces/my-project-1/persistentvolumeclaims/my-persistentvolumeclaim-1","uid":"c00ee5b2-6aeb-11e7-b2e6-001a4a1626e8","resourceVersion":"98055","creationTimestamp":"2017-07-17T12:30:43Z"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"8Gi"}}},"status":{"phase":"Pending"}},{"metadata":{"name":"my-persistentvolumeclaim-2","namespace":"my-project-2","selfLink":"/api/v1/namespaces/my-project-2/persistentvolumeclaims/my-persistentvolumeclaim-2","uid":"c0a05745-6aeb-11e7-b2e6-001a4a1626e8","resourceVersion":"98128","creationTimestamp":"2017-07-17T12:30:43Z"},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"8Gi"}}},"status":{"phase":"Pending"}}]} -' - http_version: - recorded_at: Mon, 17 Jul 2017 12:30:53 GMT -- request: - method: get - uri: https://host.example.com:8443/api/v1/componentstatuses - body: - encoding: US-ASCII - string: '' - headers: - Accept: - - "*/*" - Accept-Encoding: - - gzip, deflate - User-Agent: - - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222 - Authorization: - - Bearer theToken - response: - status: - code: 200 - message: OK - headers: - Cache-Control: - - no-store - Content-Type: - - application/json - Date: - - Mon, 17 Jul 2017 12:31:31 GMT - Content-Length: - - '912' - body: - encoding: UTF-8 - string: '{"kind":"ComponentStatusList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/componentstatuses"},"items":[{"metadata":{"name":"controller-manager","selfLink":"/api/v1/componentstatusescontroller-manager","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"False","message":"Get - http://127.0.0.1:10252/healthz: dial tcp 127.0.0.1:10252: getsockopt: connection - refused"}]},{"metadata":{"name":"scheduler","selfLink":"/api/v1/componentstatusesscheduler","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"False","message":"Get - http://127.0.0.1:10251/healthz: dial tcp 127.0.0.1:10251: getsockopt: connection - refused"}]},{"metadata":{"name":"etcd-0","selfLink":"/api/v1/componentstatusesetcd-0","creationTimestamp":null},"conditions":[{"type":"Healthy","status":"False","message":"Get - https://vm-48-232.eng.lab.tlv.redhat.com:4001/health: remote error: tls: bad - certificate"}]}]} - ' http_version: recorded_at: Mon, 17 Jul 2017 12:30:53 GMT