Skip to content

Commit

Permalink
Fixes for pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
edro15 committed Feb 8, 2024
1 parent a3b987d commit 099719a
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
app_id: ${{ steps.appinfo.outputs.app_id }}
steps:
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Fetch and set app info
id: appinfo
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- 8089:8089
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
Expand All @@ -93,21 +93,28 @@ jobs:
docker cp web.conf ${{ job.services.splunk.id }}:/opt/splunk/etc/system/local/web.conf
echo "Validating 'web.conf' file creation"
docker exec -i ${{ job.services.splunk.id }} ls -a /opt/splunk/etc/system/local/
- name: Testing container naming
run: |
docker ps
docker inspect --format '{{ .NetworkSettings.IPAddress }}' splunk
export SPLUNK_IP=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' splunk)
echo $SPLUNK_IP
- name: Restart instance
run: |
curl -k -u admin:password https://splunk:8089/services/server/control/restart -X POST
curl -k -u admin:password https://$SPLUNK_IP:8089/services/server/control/restart -X POST
sleep 30
- name: Configure MLTK permissions
run: |
curl --retry-delay 5 --retry 5 -f -k -u admin:password https://splunk:8089/services/apps/local/Splunk_ML_Toolkit/acl -d sharing=global -d owner=nobody -X POST
curl --retry-delay 5 --retry 5 -f -k -u admin:password https://$SPLUNK_IP:8089/services/apps/local/Splunk_ML_Toolkit/acl -d sharing=global -d owner=nobody -X POST
echo "Check MLTK permissions"
curl -k -u admin:password https://splunk:8089/services/apps/local/Splunk_ML_Toolkit/acl?output_mode=json | jq -r '.entry | .[].acl.sharing'
curl -k -u admin:password https://$SPLUNK_IP:8089/services/apps/local/Splunk_ML_Toolkit/acl?output_mode=json | jq -r '.entry | .[].acl.sharing'
- name: Print App Configuration
run: |
curl -k -u admin:password https://splunk:8089/services/apps/local/${{ needs.slim-validate.outputs.app_id }}
curl -k -u admin:password https://$SPLUNK_IP:8089/services/apps/local/${{ needs.slim-validate.outputs.app_id }}
- name: Run Tests
run: |
Expand Down

0 comments on commit 099719a

Please sign in to comment.