Skip to content

Commit

Permalink
test: check xfs config file in container
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmetzner committed Oct 22, 2024
1 parent bbecbe1 commit 3a5232e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
with:
go-version: "1.23"

- uses: docker/setup-buildx-action@v3

- name: Run tests
run: go test -v -tags integration -race -coverprofile=coverage.txt ./...

Expand All @@ -29,6 +31,12 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

# Check if xfs config file exists in docker image
- name: Check XFS Config File
run: |
docker build -t xfs-test:latest -f dev/Dockerfile .
docker run --rm -i xfs-test:latest test -f /usr/share/xfsprogs/mkfs/lts_4.19.conf
kubernetes:
name: kubernetes ${{ matrix.k3s }}
runs-on: ubuntu-latest
Expand Down
8 changes: 0 additions & 8 deletions test/integration/volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ import (
"github.com/hetznercloud/csi-driver/internal/volumes"
)

func TestXFSDefaultConfigFile(t *testing.T) {
// Testing if the default xfs config exists
// If this is not the case, then an older kernel version may no longer be supported
if _, err := os.Stat(volumes.XFSDefaultConfigPath); err != nil {
t.Fatal(err)
}
}

func TestVolumePublishUnpublish(t *testing.T) {
if !runTestInDockerImage(t, true) {
return
Expand Down

0 comments on commit 3a5232e

Please sign in to comment.