service-bridge: skip osc/kubectl things for arm64
There's no clients for arm64 at this time, skip. Change-Id: I0783a9d2b06c76072dd2e9234a8a794ca0594204
This commit is contained in:
parent
a46422838d
commit
1dd2026087
@ -4,10 +4,21 @@
|
||||
- cloud-launcher-cron
|
||||
- edit-secrets-script
|
||||
- install-docker
|
||||
- install-osc-container
|
||||
- install-kubectl
|
||||
- configure-kubectl
|
||||
tasks:
|
||||
# Skip as no arm64 support available; only used for gate testing,
|
||||
# where we can't mix arm64 and x86 nodes, so need a minimally
|
||||
# working bridge to drive the tests for mirrors/nodepool
|
||||
# etc. things.
|
||||
- name: Install openshift/kubectl
|
||||
when: ansible_architecture != 'aarch64'
|
||||
block:
|
||||
- include_role:
|
||||
name: install-osc-container
|
||||
- include_role:
|
||||
name: install-kubectl
|
||||
- include_role:
|
||||
name: configure-kubectl
|
||||
|
||||
- include_role:
|
||||
name: configure-openstacksdk
|
||||
vars:
|
||||
|
@ -11,7 +11,8 @@
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import platform
|
||||
import pytest
|
||||
|
||||
testinfra_hosts = ['bridge.openstack.org']
|
||||
|
||||
@ -63,6 +64,8 @@ def test_ara(host):
|
||||
|
||||
|
||||
def test_kube_config(host):
|
||||
if platform.machine() != 'x86_64':
|
||||
pytest.skip()
|
||||
kubeconfig = host.file('/root/.kube/config')
|
||||
assert kubeconfig.exists
|
||||
|
||||
@ -70,6 +73,8 @@ def test_kube_config(host):
|
||||
|
||||
|
||||
def test_kubectl(host):
|
||||
if platform.machine() != 'x86_64':
|
||||
pytest.skip()
|
||||
kube = host.run('kubectl help')
|
||||
assert kube.rc == 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user