mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
remove oauth use
This commit is contained in:
7
.github/actions/run_awx_devel/action.yml
vendored
7
.github/actions/run_awx_devel/action.yml
vendored
@@ -13,9 +13,6 @@ outputs:
|
|||||||
ip:
|
ip:
|
||||||
description: The IP of the tools_awx_1 container
|
description: The IP of the tools_awx_1 container
|
||||||
value: ${{ steps.data.outputs.ip }}
|
value: ${{ steps.data.outputs.ip }}
|
||||||
admin-token:
|
|
||||||
description: OAuth token for admin user
|
|
||||||
value: ${{ steps.data.outputs.admin_token }}
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
@@ -62,6 +59,4 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
AWX_IP=$(docker inspect -f '{{.NetworkSettings.Networks.awx.IPAddress}}' tools_awx_1)
|
AWX_IP=$(docker inspect -f '{{.NetworkSettings.Networks.awx.IPAddress}}' tools_awx_1)
|
||||||
ADMIN_TOKEN=$(docker exec -i tools_awx_1 awx-manage create_oauth2_token --user admin)
|
echo "ip=$AWX_IP" >> $GITHUB_OUTPUT
|
||||||
echo "ip=$AWX_IP" >> $GITHUB_OUTPUT
|
|
||||||
echo "admin_token=$ADMIN_TOKEN" >> $GITHUB_OUTPUT
|
|
||||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -291,7 +291,8 @@ jobs:
|
|||||||
echo "::remove-matcher owner=python::" # Disable annoying annotations from setup-python
|
echo "::remove-matcher owner=python::" # Disable annoying annotations from setup-python
|
||||||
echo '[general]' > ~/.tower_cli.cfg
|
echo '[general]' > ~/.tower_cli.cfg
|
||||||
echo 'host = https://${{ steps.awx.outputs.ip }}:8043' >> ~/.tower_cli.cfg
|
echo 'host = https://${{ steps.awx.outputs.ip }}:8043' >> ~/.tower_cli.cfg
|
||||||
echo 'oauth_token = ${{ steps.awx.outputs.admin-token }}' >> ~/.tower_cli.cfg
|
echo 'username = admin' >> ~/.tower_cli.cfg
|
||||||
|
echo 'password = password' >> ~/.tower_cli.cfg
|
||||||
echo 'verify_ssl = false' >> ~/.tower_cli.cfg
|
echo 'verify_ssl = false' >> ~/.tower_cli.cfg
|
||||||
TARGETS="$(ls awx_collection/tests/integration/targets | grep '${{ matrix.target-regex.regex }}' | tr '\n' ' ')"
|
TARGETS="$(ls awx_collection/tests/integration/targets | grep '${{ matrix.target-regex.regex }}' | tr '\n' ' ')"
|
||||||
make COLLECTION_VERSION=100.100.100-git COLLECTION_TEST_TARGET="--requirements $TARGETS" test_collection_integration
|
make COLLECTION_VERSION=100.100.100-git COLLECTION_TEST_TARGET="--requirements $TARGETS" test_collection_integration
|
||||||
|
|||||||
Reference in New Issue
Block a user