Create internal for testing IPv6 network between lib and agent #22855
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing the test | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: 00 02 * * 2-6 | |
pull_request: | |
branches: | |
- "**" | |
types: | |
- opened | |
- synchronize | |
- labeled | |
- unlabeled | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run lints | |
uses: ./.github/actions/lint_code | |
test_the_test: | |
name: Test the test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install runner | |
uses: ./.github/actions/install_runner | |
# force /bin/bash in order to test against bash 3.2 on macOS | |
- name: Test the test (direct) | |
run: /bin/bash run.sh TEST_THE_TEST | |
- name: Test group parsing | |
run: | | |
/bin/bash run.sh ++dry APPSEC_SCENARIOS | |
/bin/bash run.sh ++dry TRACER_RELEASE_SCENARIOS | |
tmp-test: | |
runs-on: ubuntu-latest | |
steps: | |
# - name: Enable IPv6 for Docker | |
# run: | | |
# sudo mkdir -p /etc/docker | |
# echo '{ | |
# "experimental": true, | |
# "ipv6": true, | |
# "fixed-cidr-v6": "2001:db8:1::/64" | |
# }' | sudo tee /etc/docker/daemon.json | |
# sudo systemctl restart docker | |
# # sleep 5 | |
# # sudo systemctl status docker | |
- name: Create Docker Network with IPv6 | |
run: | | |
docker network create \ | |
--driver bridge \ | |
--ipv6 \ | |
--subnet=2001:db8:2::/64 \ | |
my_ipv6_network | |
- name: Verify Network | |
run: | | |
docker network inspect my_ipv6_network |