Skip to content

Commit

Permalink
Merge branch 'main' into update-pepr-webhook-example
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 authored Nov 15, 2023
2 parents ada1e83 + 89d6f90 commit 41d2006
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/test/external/ext_in_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (suite *ExtInClusterTestSuite) SetupSuite() {
suite.Assertions = require.New(suite.T())

// Install a gitea chart to the k8s cluster to act as the 'remote' git server
giteaChartURL := "https://dl.gitea.io/charts/gitea-5.0.8.tgz"
giteaChartURL := "https://dl.gitea.io/charts/gitea-8.3.0.tgz"
helmInstallArgs := []string{"install", "gitea", giteaChartURL, "-f", "gitea-values.yaml", "-n=git-server", "--create-namespace"}
err := exec.CmdWithPrint("helm", helmInstallArgs...)
suite.NoError(err, "unable to install gitea chart")
Expand Down
7 changes: 4 additions & 3 deletions src/test/external/ext_out_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const (
giteaIP = "172.31.0.99"
giteaHost = "gitea.localhost"
registryHost = "registry.localhost"
clusterName = "zarf-external-test"
)

var outClusterCredentialArgs = []string{
Expand All @@ -42,7 +43,7 @@ func (suite *ExtOutClusterTestSuite) SetupSuite() {
suite.Assertions = require.New(suite.T())

// Teardown any leftovers from previous tests
_ = exec.CmdWithPrint("k3d", "cluster", "delete")
_ = exec.CmdWithPrint("k3d", "cluster", "delete", clusterName)
_ = exec.CmdWithPrint("k3d", "registry", "delete", registryHost)
_ = exec.CmdWithPrint("docker", "network", "remove", network)

Expand All @@ -55,7 +56,7 @@ func (suite *ExtOutClusterTestSuite) SetupSuite() {
suite.NoError(err, "unable to create the k3d registry")

// Create a k3d cluster with the proper networking and aliases
err = exec.CmdWithPrint("k3d", "cluster", "create", "--registry-use", "k3d-"+registryHost+":5000", "--host-alias", giteaIP+":"+giteaHost, "--network", network)
err = exec.CmdWithPrint("k3d", "cluster", "create", clusterName, "--registry-use", "k3d-"+registryHost+":5000", "--host-alias", giteaIP+":"+giteaHost, "--network", network)
suite.NoError(err, "unable to create the k3d cluster")

// Install a gitea server via docker compose to act as the 'remote' git server
Expand All @@ -75,7 +76,7 @@ func (suite *ExtOutClusterTestSuite) SetupSuite() {

func (suite *ExtOutClusterTestSuite) TearDownSuite() {
// Tear down all of that stuff we made for local runs
err := exec.CmdWithPrint("k3d", "cluster", "delete")
err := exec.CmdWithPrint("k3d", "cluster", "delete", clusterName)
suite.NoError(err, "unable to teardown cluster")

err = exec.CmdWithPrint("docker", "compose", "down")
Expand Down

0 comments on commit 41d2006

Please sign in to comment.