Skip to content

Commit f00273f

Browse files
committed
chore: test again Argo CD 3.1
Signed-off-by: Nathanael Liechti <[email protected]>
1 parent 5bbc13a commit f00273f

File tree

8 files changed

+19
-10
lines changed

8 files changed

+19
-10
lines changed

.devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
// https://github.com/devcontainers/features/tree/main/src/kubectl-helm-minikube
2020
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {
21-
"version": "1.31.7"
21+
"version": "1.31.9"
2222
},
2323
// https://github.com/rio/features/tree/main/src/kustomize
2424
"ghcr.io/rio/features/kustomize:1": {},

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
strategy:
6464
fail-fast: false
6565
matrix:
66-
argocd_version: ["v2.13.5", "v2.14.5", "v3.0.0"]
66+
argocd_version: ["v2.14.5", "v3.0.0", "v3.1.0"]
6767
terraform_version: ["1.4.*"]
6868
steps:
6969
- name: Check out code

.run/Template Go Test.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<env name="ARGOCD_AUTH_PASSWORD" value="acceptancetesting" />
1212
<env name="ARGOCD_CONTEXT" value="kind-argocd" />
1313
<env name="USE_TESTCONTAINERS" value="true" />
14-
<env name="K3S_VERSION" value="v1.31.6-k3s1" />
14+
<env name="K3S_VERSION" value="v1.31.9-k3s1" />
1515
<env name="TF_ACC" value="1" />
1616
</envs>
1717
<framework value="gotest" />

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ The following table shows the versions of Argo CD that are tested with each vers
3737

3838
| Provider version | Argo CD versions |
3939
|---|---|
40+
| 7.11 | v2.14, v3.0, v3.1 |
4041
| 7.7 | v2.13, v2.14, v3.0 |
4142
| 7.5 | v2.12, v2.13, v2.14 |
4243
| 7.4 | v2.11, v2.12, v2.13 |

internal/provider/resource_repository_certificate_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func TestAccArgoCDRepositoryCertificatesSSH_Invalid(t *testing.T) {
158158
certSubType,
159159
"",
160160
),
161-
ExpectError: regexp.MustCompile("Invalid hostname in request"),
161+
ExpectError: regexp.MustCompile("invalid hostname in request"),
162162
},
163163
{
164164
Config: testAccArgoCDRepositoryCertificatesSSH(
@@ -247,7 +247,7 @@ func TestAccArgoCDRepositoryCertificatesSSH_CannotUpdateExisting(t *testing.T) {
247247
// github's
248248
"AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==",
249249
),
250-
ExpectError: regexp.MustCompile("already exist and upsert was not specified"),
250+
ExpectError: regexp.MustCompile("already exists, and upsert was not specified"),
251251
},
252252
},
253253
})
@@ -265,7 +265,7 @@ func TestAccArgoCDRepositoryCertificatesSSH_CannotUpdateExisting_MultipleAtOnce(
265265
// github's
266266
"AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==",
267267
),
268-
ExpectError: regexp.MustCompile("already exist and upsert was not specified"),
268+
ExpectError: regexp.MustCompile("already exists, and upsert was not specified"),
269269
},
270270
},
271271
})

internal/testhelpers/suite.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ func TestMain(m *testing.M) {
2121
envDefaultValue("ARGOCD_SERVER", "127.0.0.1:8080")
2222
envDefaultValue("ARGOCD_INSECURE", "true")
2323
envDefaultValue("USE_TESTCONTAINERS", "true")
24-
envDefaultValue("K3S_VERSION", "v1.31.6-k3s1")
25-
envDefaultValue("ARGOCD_VERSION", "v3.0.0")
24+
envDefaultValue("K3S_VERSION", "v1.31.9-k3s1")
25+
envDefaultValue("ARGOCD_VERSION", "v3.1.0")
2626

2727
if os.Getenv("USE_TESTCONTAINERS") == "true" {
2828
os.Exit(runTestSuite(m))

kind-config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ kind: Cluster
44
name: argocd
55
nodes:
66
- role: control-plane
7-
# It seems that the latest .7 patch release is not available, use latest available one instead
8-
image: kindest/node:v1.31.6
7+
# It seems that the latest .11 patch release is not available, use latest available one instead
8+
image: kindest/node:v1.31.9
99
extraPortMappings:
1010
- containerPort: 30123
1111
hostPort: 8080
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
namespace: argocd
4+
resources:
5+
- https://raw.githubusercontent.com/argoproj/argo-cd/v3.1.0/manifests/install.yaml
6+
- ../../install
7+
components:
8+
- ../../patches

0 commit comments

Comments
 (0)