Skip to content

Commit 1d17c7e

Browse files
committed
tests: fix failing tests
1 parent 2345c44 commit 1d17c7e

File tree

9 files changed

+80
-77
lines changed

9 files changed

+80
-77
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

.github/workflows/codeql.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: codeql
2+
3+
concurrency:
4+
# Run only for most recent commit in PRs but for all tags and commits on main
5+
# Ref: https://docs.github.com/en/actions/using-jobs/using-concurrency
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
7+
cancel-in-progress: true
8+
9+
on:
10+
push:
11+
branches:
12+
- 'main'
13+
pull_request:
14+
# The branches below must be a subset of the branches above
15+
branches:
16+
- 'main'
17+
schedule:
18+
- cron: '18 13 * * 6'
19+
20+
permissions:
21+
contents: read
22+
23+
jobs:
24+
analyze:
25+
timeout-minutes: 10
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'go' ]
36+
steps:
37+
- name: Harden Runner
38+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
39+
with:
40+
egress-policy: audit
41+
- name: Checkout repository
42+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
43+
- name: Install Go
44+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
45+
with:
46+
go-version-file: go.mod
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
49+
with:
50+
languages: ${{ matrix.language }}
51+
- name: Autobuild
52+
uses: github/codeql-action/autobuild@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
53+
- name: Perform CodeQL Analysis
54+
uses: github/codeql-action/analyze@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5

.github/workflows/lint.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: lint
22

3+
concurrency:
4+
# Run only for most recent commit in PRs but for all tags and commits on main
5+
# Ref: https://docs.github.com/en/actions/using-jobs/using-concurrency
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
7+
cancel-in-progress: true
8+
39
on:
410
pull_request:
511
branches:
@@ -11,6 +17,9 @@ on:
1117
- '*'
1218
workflow_dispatch: {}
1319

20+
permissions:
21+
contents: read
22+
1423
jobs:
1524
golangci-lint:
1625
timeout-minutes: 10

.github/workflows/release-testing.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
description: 'a release tag that will be created upon success'
88
required: true
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114

1215
# --------------------------------------------------------------------------
@@ -126,6 +129,8 @@ jobs:
126129
- unit-tests
127130
- integration-tests
128131
- e2e-tests
132+
permissions:
133+
contents: write
129134
steps:
130135

131136
- name: checkout repository

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- "v*"
77
workflow_dispatch: {}
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013

1114
artifacts:

.github/workflows/tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- 'main'
1616
workflow_dispatch: {}
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
ensure-actions-sha-pin:
2023
runs-on: ubuntu-latest

test/e2e/gke_cluster_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030

3131
const (
3232
gkeVersionMajor = 1
33-
gkeVersionMinor = 29
33+
gkeVersionMinor = 32
3434
)
3535

3636
var (

test/integration/kong_argo_addon_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
)
1616

1717
func TestKongArgoAddon(t *testing.T) {
18+
t.Skip("This test requires fixing: https://github.com/Kong/kubernetes-testing-framework/issues/1375")
19+
1820
namespace := "ktf-test-kong-addon"
1921
release := "integration"
2022
t.Log("configuring argo addon")

test/integration/registry_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1313

1414
"github.com/kong/go-kong/kong"
15+
1516
"github.com/kong/kubernetes-testing-framework/pkg/clusters/addons/certmanager"
1617
"github.com/kong/kubernetes-testing-framework/pkg/clusters/addons/metallb"
1718
"github.com/kong/kubernetes-testing-framework/pkg/clusters/addons/registry"
@@ -22,6 +23,8 @@ import (
2223
const httpbinImage = "docker.io/kennethreitz/httpbin"
2324

2425
func TestEnvironmentWithRegistryAddon(t *testing.T) {
26+
t.Skip("This test requires fixing: https://github.com/Kong/kubernetes-testing-framework/issues/1374")
27+
2528
t.Parallel()
2629

2730
t.Log("configuring the testing environment")

0 commit comments

Comments
 (0)