Skip to content

Commit

Permalink
Use latest tag to unit and integration test (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
akankshakumari393 committed Jun 22, 2021
1 parent 9b42dd8 commit abf5956
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/app/cassandra.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewCassandraInstance(name string) App {
Values: map[string]string{
"image.registry": "ghcr.io",
"image.repository": "kanisterio/cassandra",
"image.tag": "0.61.0",
"image.tag": "latest",
"image.pullPolicy": "Always",
"cluster.replicaCount": "1",
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func NewMongoDB(name string) App {
"architecture": "replicaset",
"image.registry": "ghcr.io",
"image.repository": "kanisterio/mongodb",
"image.tag": "0.61.0",
"image.tag": "latest",
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewPostgresDB(name string, subPath string) App {
Values: map[string]string{
"image.registry": "ghcr.io",
"image.repository": "kanisterio/postgresql",
"image.tag": "0.61.0",
"image.tag": "latest",
"postgresqlPassword": "test@54321",
"postgresqlExtendedConf.archiveCommand": "envdir /bitnami/postgresql/data/env wal-e wal-push %p",
"postgresqlExtendedConf.archiveMode": "true",
Expand Down
6 changes: 3 additions & 3 deletions pkg/kube/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type PodSuite struct {
const (
testSAName = "test-sa"
controllerSA = "controller-sa"
kanisterToolsImage = "ghcr.io/kanisterio/kanister-tools:0.61.0"
kanisterToolsImage = "ghcr.io/kanisterio/kanister-tools:latest"
)

var _ = Suite(&PodSuite{})
Expand Down Expand Up @@ -268,7 +268,7 @@ func (s *PodSuite) TestPodWithVolumes(c *C) {
pod, err := CreatePod(ctx, cli, &PodOptions{
Namespace: s.namespace,
GenerateName: "test-",
Image: "ghcr.io/kanisterio/kanister-tools:0.61.0",
Image: "ghcr.io/kanisterio/kanister-tools:latest",
Command: []string{"sh", "-c", "tail -f /dev/null"},
Volumes: vols,
})
Expand All @@ -285,7 +285,7 @@ func (s *PodSuite) TestGetPodLogs(c *C) {
pod, err := CreatePod(context.Background(), s.cli, &PodOptions{
Namespace: s.namespace,
GenerateName: "test-",
Image: "ghcr.io/kanisterio/kanister-tools:0.61.0",
Image: "ghcr.io/kanisterio/kanister-tools:latest",
Command: []string{"sh", "-c", "echo hello"},
})
c.Assert(err, IsNil)
Expand Down
2 changes: 1 addition & 1 deletion pkg/testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func newTestPodTemplateSpec() v1.PodTemplateSpec {
Containers: []v1.Container{
v1.Container{
Name: "test-container",
Image: "ghcr.io/kanisterio/kanister-tools:0.61.0",
Image: "ghcr.io/kanisterio/kanister-tools:latest",
Command: []string{"tail"},
Args: []string{"-f", "/dev/null"},
},
Expand Down

0 comments on commit abf5956

Please sign in to comment.