Skip to content

Rename config variable "insecure_skip_verify" to "skip_verify". (#128) #298

Rename config variable "insecure_skip_verify" to "skip_verify". (#128)

Rename config variable "insecure_skip_verify" to "skip_verify". (#128) #298

Workflow file for this run

name: Integration Tests
on:
push:
branches: [master]
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v3.5.2
- name: Install charmcraft
run: sudo snap install charmcraft --classic
- name: Build charm
run: |
charmcraft pack -v --destructive-mode
mv microk8s*.charm microk8s.charm
- name: Upload charm
uses: actions/upload-artifact@v3.1.2
with:
name: microk8s.charm
path: ./microk8s.charm
test-cluster:
name: Cluster - ${{ matrix.control_plane}}cp${{ matrix.workers}}w - ${{ matrix.series }} - juju ${{ matrix.juju }}
runs-on: ubuntu-latest
needs: build
strategy:
# fail-fast: true
matrix:
control_plane: [1, 3]
workers: [1]
series: [focal, jammy]
juju: [3.1]
steps:
- name: Checking out repo
uses: actions/checkout@v3.5.2
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Configure pytest-operator
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
lxd-channel: 5.0/stable
juju-channel: ${{ matrix.juju }}/stable
- name: Add user to lxd group
run: sudo usermod -a -G lxd $USER
- name: Fetch charm
uses: actions/download-artifact@v3.0.2
with:
name: microk8s.charm
path: build
- name: Install tox
run: |
pip3 install tox
- name: Run integration tests
run: |
juju add-model testing
export MK8S_SERIES='${{ matrix.series }}'
export MK8S_CLUSTER_SIZES='[[${{ matrix.control_plane }}, ${{ matrix.workers }}]]'
export MK8S_CHARM=./build/microk8s.charm
export MK8S_CHARM_CHANNEL=''
sg lxd -c 'tox -e integration-${{ matrix.juju }} -- --model testing -k test_microk8s_cluster'
- name: Retrieve artifacts
if: always()
run: |
mkdir artifacts
juju debug-log -m testing --replay > artifacts/juju.log
juju status -m testing --format yaml > artifacts/juju.yaml
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3.1.2
with:
name: Cluster - ${{ matrix.control_plane}}cp${{ matrix.workers}}w - ${{ matrix.series }} - juju ${{ matrix.juju }}
path: artifacts/
test-traefik:
name: Traefik - juju ${{ matrix.juju }}
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: true
matrix:
juju: [3.1]
steps:
- name: Checking out repo
uses: actions/checkout@v3.5.2
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Configure pytest-operator
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
lxd-channel: 5.0/stable
juju-channel: ${{ matrix.juju }}/stable
- name: Add user to lxd group
run: sudo usermod -a -G lxd $USER
- name: Fetch charm
uses: actions/download-artifact@v3.0.2
with:
name: microk8s.charm
path: build
- name: Install tox
run: |
pip3 install tox
- name: Run integration tests
run: |
juju add-model testing
export MK8S_SERIES='${{ matrix.series }}'
export MK8S_CHARM=./build/microk8s.charm
export MK8S_CHARM_CHANNEL=''
sg lxd -c 'tox -e integration-${{ matrix.juju }} -- --model testing -k test_metallb_traefik'
- name: Retrieve artifacts
if: always()
run: |
mkdir artifacts
juju debug-log -m testing --replay > artifacts/juju.log
juju status -m testing --format yaml > artifacts/juju.yaml
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3.1.2
with:
name: Traefik - juju ${{ matrix.juju }}
path: artifacts/
test-cos:
name: Observability - juju ${{ matrix.juju }}
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: true
matrix:
juju: [3.1]
steps:
- name: Checking out repo
uses: actions/checkout@v3.5.2
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Configure pytest-operator
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
lxd-channel: 5.0/stable
juju-channel: ${{ matrix.juju }}/stable
- name: Add user to lxd group
run: sudo usermod -a -G lxd $USER
- name: Fetch charm
uses: actions/download-artifact@v3.0.2
with:
name: microk8s.charm
path: build
- name: Install tox
run: |
pip3 install tox
- name: Run integration tests
run: |
juju add-model testing
export MK8S_SERIES='${{ matrix.series }}'
export MK8S_CHARM=./build/microk8s.charm
export MK8S_CHARM_CHANNEL=''
sg lxd -c 'tox -e integration-${{ matrix.juju }} -- --model testing -k test_cos'
- name: Retrieve artifacts
if: always()
run: |
mkdir artifacts
juju debug-log -m testing --replay > artifacts/juju.log
juju status -m testing --format yaml > artifacts/juju.yaml
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3.1.2
with:
name: Observability - juju ${{ matrix.juju }}
path: artifacts/
test-coredns:
name: CoreDNS - juju ${{ matrix.juju }}
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: true
matrix:
juju: [3.1]
steps:
- name: Checking out repo
uses: actions/checkout@v3.5.2
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Configure pytest-operator
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
lxd-channel: 5.0/stable
juju-channel: ${{ matrix.juju }}/stable
- name: Add user to lxd group
run: sudo usermod -a -G lxd $USER
- name: Fetch charm
uses: actions/download-artifact@v3.0.2
with:
name: microk8s.charm
path: build
- name: Install tox
run: |
pip3 install tox
- name: Run integration tests
run: |
juju add-model testing
export MK8S_SERIES='${{ matrix.series }}'
export MK8S_CHARM=./build/microk8s.charm
export MK8S_CHARM_CHANNEL=''
sg lxd -c 'tox -e integration-${{ matrix.juju }} -- --model testing -k test_coredns'
- name: Retrieve artifacts
if: always()
run: |
mkdir artifacts
juju debug-log -m testing --replay > artifacts/juju.log
juju status -m testing --format yaml > artifacts/juju.yaml
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3.1.2
with:
name: CoreDNS - juju ${{ matrix.juju }}
path: artifacts/
test-ceph:
name: Ceph - juju ${{ matrix.juju }}
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: true
matrix:
juju: [3.1]
steps:
- name: Checking out repo
uses: actions/checkout@v3.5.2
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Configure pytest-operator
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
lxd-channel: 5.0/stable
juju-channel: ${{ matrix.juju }}/stable
- name: Add user to lxd group
run: sudo usermod -a -G lxd $USER
- name: Fetch charm
uses: actions/download-artifact@v3.0.2
with:
name: microk8s.charm
path: build
- name: Install tox
run: |
pip3 install tox
- name: Run integration tests
run: |
juju add-model testing
export MK8S_SERIES='${{ matrix.series }}'
export MK8S_CHARM=./build/microk8s.charm
export MK8S_CHARM_CHANNEL=''
sg lxd -c 'tox -e integration-${{ matrix.juju }} -- --model testing -k test_ceph_csi'
- name: Retrieve artifacts
if: always()
run: |
mkdir artifacts
juju debug-log -m testing --replay > artifacts/juju.log
juju status -m testing --format yaml > artifacts/juju.yaml
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v3.1.2
with:
name: Ceph - juju ${{ matrix.juju }}
path: artifacts/