Skip to content

Commit c61fd6e

Browse files
authored
Merge pull request #192 from knikolla/fix/devstack_2025
Fix CI
2 parents 4e8e6c7 + 103277a commit c61fd6e

6 files changed

+11
-142
lines changed

.github/workflows/test-py38-functional-devstack.yaml

-26
This file was deleted.

.github/workflows/test-py39-functional.yaml .github/workflows/test-py39-functional-microstack.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test-py39-functional
1+
name: test-py39-functional-microstack
22

33
on:
44
push:
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212

1313
steps:
1414
- uses: actions/checkout@v4
@@ -41,7 +41,11 @@ jobs:
4141
microstack.openstack application credential create "$CREDENTIAL_NAME" -f value -c secret)
4242
export OPENSTACK_DEVSTACK_APPLICATION_CREDENTIAL_ID=$(
4343
microstack.openstack application credential show "$CREDENTIAL_NAME" -f value -c id)
44+
export OPENSTACK_ESI_APPLICATION_CREDENTIAL_SECRET=$OPENSTACK_DEVSTACK_APPLICATION_CREDENTIAL_SECRET
45+
export OPENSTACK_ESI_APPLICATION_CREDENTIAL_ID=$OPENSTACK_DEVSTACK_APPLICATION_CREDENTIAL_ID
46+
4447
export OPENSTACK_PUBLIC_NETWORK_ID=$(microstack.openstack network show external -f value -c id)
4548
export OS_AUTH_URL="https://localhost:5000"
4649
4750
coldfront test coldfront_plugin_cloud.tests.functional.openstack
51+
coldfront test coldfront_plugin_cloud.tests.functional.esi

ci/devstack-mapping.json

-16
This file was deleted.

ci/devstack-test-oidc.py

-26
This file was deleted.

ci/devstack.sh

-62
This file was deleted.

ci/run_functional_tests_openstack.sh

+5-10
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,27 @@
55
# Tests expect the resource to be name Devstack
66
set -xe
77
REPO_PATH=$PWD
8-
source $REPO_PATH/ci/devstack-config-ip.sh
9-
source /opt/stack/devstack/openrc admin admin
8+
source $REPO_PATH/ci/devstack-config-ip.sh
109

1110
credential_name=$(openssl rand -base64 12)
1211

1312
export OPENSTACK_DEVSTACK_APPLICATION_CREDENTIAL_SECRET=$(
14-
openstack application credential create "$credential_name" -f value -c secret)
13+
microstack.openstack application credential create "$credential_name" -f value -c secret)
1514
export OPENSTACK_DEVSTACK_APPLICATION_CREDENTIAL_ID=$(
16-
openstack application credential show "$credential_name" -f value -c id)
15+
microstack.openstack application credential show "$credential_name" -f value -c id)
1716

1817
export OPENSTACK_ESI_APPLICATION_CREDENTIAL_SECRET=$OPENSTACK_DEVSTACK_APPLICATION_CREDENTIAL_SECRET
1918
export OPENSTACK_ESI_APPLICATION_CREDENTIAL_ID=$OPENSTACK_DEVSTACK_APPLICATION_CREDENTIAL_ID
2019

21-
export OPENSTACK_PUBLIC_NETWORK_ID=$(openstack network show public -f value -c id)
20+
export OPENSTACK_PUBLIC_NETWORK_ID=$(microstack.openstack network show external -f value -c id)
2221

2322
if [[ ! "${CI}" == "true" ]]; then
2423
source /tmp/coldfront_venv/bin/activate
2524
fi
2625

2726
export DJANGO_SETTINGS_MODULE="local_settings"
2827
export FUNCTIONAL_TESTS="True"
29-
export OS_AUTH_URL="http://$HOST_IP/identity"
30-
export KEYCLOAK_URL="http://$HOST_IP:8080"
31-
export KEYCLOAK_USER="admin"
32-
export KEYCLOAK_PASS="nomoresecret"
33-
export KEYCLOAK_REALM="master"
28+
export OS_AUTH_URL="http://localhost:5000"
3429

3530
coverage run --source="." -m django test coldfront_plugin_cloud.tests.functional.openstack
3631
coverage run --source="." -m django test coldfront_plugin_cloud.tests.functional.esi

0 commit comments

Comments
 (0)