Skip to content

Commit

Permalink
tmt: run new go tests to check container subscription access in tmt
Browse files Browse the repository at this point in the history
This commit wires up the needed credentials and scaffolding to
run the integration tests about subscribed content in containers
via tmt. For this it passes in the `RHSM_{ORG,ACTIVATION_KEY}`
secrets and runs the go tests as root.
  • Loading branch information
mvo5 committed Oct 10, 2024
1 parent ca0a1e9 commit a058d4d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testingfarm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
git_ref: ${{ github.event.pull_request.head.ref }}
pull_request_status_name: "Testing farm"
tf_scope: private
secrets: "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }};AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}"
secrets: "AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }};AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }};RHSM_ORG=${{ secrets.RHSM_ORG }};RHSM_ACTIVATION_KEY=${{ secrets.RHSM_ACTIVATION_KEY }} "
1 change: 0 additions & 1 deletion plans/all.fmf → plans/integration.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ prepare:
- python3-paramiko
- python3-pip
- skopeo
- subscription-manager
- qemu-kvm
- qemu-system-aarch64
- qemu-user-static
Expand Down
19 changes: 19 additions & 0 deletions plans/unit-go.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
summary: Run all tests inside a VM environment
provision:
how: virtual
image: fedora:40
prepare:
how: install
package:
- btrfs-progs-devel
- device-mapper-devel
- gpgme-devel
- golang
- osbuild-depsolve-dnf
- podman
- subscription-manager
execute:
how: tmt
script: |
echo "Run tests as root"
cd bib && go test -v ./...

0 comments on commit a058d4d

Please sign in to comment.