@@ -16,31 +16,37 @@ execute: |
1616 juju trust db --scope=cluster
1717 juju relate api db
1818
19- # juju deploy nginx-ingress-integrator --channel=latest/stable --revision=59 ingress
20- # juju trust ingress --scope=cluster
21- # juju relate api ingress
22-
2319 juju deploy "${SPREAD_PATH}"/frontend/charm/*.charm frontend \
2420 --config hostname=test-observer-frontend.test \
2521 --config test-observer-api-scheme='http://' \
2622 --resource frontend-image="${frontend_oci_image}"
2723 juju relate api frontend
2824
29- juju wait-for application api --timeout=30m
25+ juju wait-for application api --timeout=5m
3026 juju show-status-log api/0
3127
32- juju wait-for application frontend --timeout=30m
28+ juju wait-for application frontend --timeout=5m
3329 juju show-status-log frontend/0
3430
35- juju run api/leader add-user launchpad-email=omar.selo@ canonical.com --wait 3m
31+ juju run api/leader add-user launchpad-email=solutions-qa@lists. canonical.com
3632
37- PGPASSWORD=$(juju run db/leader get-password --wait 3m | grep password | awk '{print $2;}')
33+ PGPASSWORD=$(juju run db/leader get-password | grep password | awk '{print $2;}')
3834 PGHOST=$(juju show-unit db/0 | grep address | tail -n 1 | awk '{print $2;}')
3935 PGUSER=operator
4036 PGDATABASE=test_observer_db
41- juju ssh --container postgresql db/leader "PGPASSWORD=$PGPASSWORD PGHOST=$PGHOST PGUSER=$PGUSER PGDATABASE=$PGDATABASE psql -c \"select launchpad_handle from app_user where email='omar.selo@canonical.com'\"" | grep omar-selo
37+ juju ssh --container postgresql db/leader \
38+ "PGPASSWORD=$PGPASSWORD PGHOST=$PGHOST PGUSER=$PGUSER PGDATABASE=$PGDATABASE psql -c \"select launchpad_handle from app_user where email='solutions-qa@lists.canonical.com'\"" \
39+ | grep oil-ci-bot
40+
41+ microk8s config > kube-config
42+ pipx run --spec git+https://github.com/canonical/juju-k8s-crashdump.git juju-k8s-crashdump ./kube-config concierge-microk8s -o integration-juju-k8s-crashdump.tar.gz
43+
44+ artifacts :
45+ - integration-juju-k8s-crashdump.tar.gz
4246
4347restore : |
44- # The testing model is created by concierge
45- juju destroy-model --destroy-storage --force --no-prompt --no-wait testing
46- juju add-model testing
48+ if [[ -z "${CI:-}" ]]; then
49+ # The testing model is created by concierge
50+ juju destroy-model --destroy-storage --force --no-prompt --no-wait testing
51+ juju add-model testing
52+ fi
0 commit comments