test: remove unused tests
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 23999b7..dd9548a 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -3,34 +3,6 @@
pull_request:
jobs:
- Golang:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v3
-
- - name: Set up Go
- uses: actions/setup-go@v3
- with:
- go-version-file: go.mod
- cache: true
-
- - name: Set up gotestfmt
- uses: haveyoudebuggedit/gotestfmt-action@v2
-
- - name: Run tests
- run: |
- set -euo pipefail
- go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
-
- - name: Upload test log
- uses: actions/upload-artifact@v3
- if: always()
- with:
- name: test-log
- path: /tmp/gotest.log
- if-no-files-found: error
-
Pre-commit:
runs-on: ubuntu-latest
steps:
diff --git a/ci/image_tags_test.go b/ci/image_tags_test.go
deleted file mode 100644
index 7478560..0000000
--- a/ci/image_tags_test.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package linters
-
-import (
- "os"
- "strings"
- "testing"
-
- "github.com/stretchr/testify/assert"
- "gopkg.in/yaml.v3"
-)
-
-func TestPrometheusEthtoolExporterTag(t *testing.T) {
- imageFile, err := os.ReadFile("../images/prometheus-ethtool-exporter/ref")
- assert.NoError(t, err)
-
- imageTag := strings.TrimSpace(string(imageFile))
-
- data, err := os.ReadFile("../roles/prometheus_ethtool_exporter/defaults/main.yml")
- assert.NoError(t, err)
-
- defaults := make(map[interface{}]interface{})
- err = yaml.Unmarshal(data, &defaults)
- assert.NoError(t, err)
-
- ansibleTag, ok := defaults["prometheus_ethtool_exporter_image_tag"]
- if assert.True(t, ok) {
- assert.Equal(t, imageTag, ansibleTag)
- }
-}