Skip to content

Commit

Permalink
Update registry name in unit tests (#834)
Browse files Browse the repository at this point in the history
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

PrasadG193 authored Dec 11, 2020
1 parent d6d6e06 commit a4fdb40
Showing 8 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions pkg/function/data_test.go
Original file line number Diff line number Diff line change
@@ -134,7 +134,7 @@ func newRestoreDataBlueprint(pvc, identifierArg, identifierVal string) *crv1alph
Func: RestoreDataFuncName,
Args: map[string]interface{}{
RestoreDataNamespaceArg: "{{ .StatefulSet.Namespace }}",
RestoreDataImageArg: "kanisterio/kanister-tools:0.44.0",
RestoreDataImageArg: "ghcr.io/kanisterio/kanister-tools:0.44.0",
RestoreDataBackupArtifactPrefixArg: "{{ .Profile.Location.Bucket }}/{{ .Profile.Location.Prefix }}",
RestoreDataRestorePathArg: "/mnt/data",
RestoreDataEncryptionKeyArg: "{{ .Secrets.backupKey.Data.password | toString }}",
@@ -266,7 +266,7 @@ func newRestoreDataAllBlueprint() *crv1alpha1.Blueprint {
Func: RestoreDataAllFuncName,
Args: map[string]interface{}{
RestoreDataAllNamespaceArg: "{{ .StatefulSet.Namespace }}",
RestoreDataAllImageArg: "kanisterio/kanister-tools:0.44.0",
RestoreDataAllImageArg: "ghcr.io/kanisterio/kanister-tools:0.44.0",
RestoreDataAllBackupArtifactPrefixArg: "{{ .Profile.Location.Bucket }}/{{ .Profile.Location.Prefix }}",
RestoreDataAllBackupInfo: fmt.Sprintf("{{ .Options.%s }}", BackupDataAllOutput),
RestoreDataAllRestorePathArg: "/mnt/data",
@@ -477,7 +477,7 @@ func newCopyDataTestBlueprint() crv1alpha1.Blueprint {
Func: RestoreDataFuncName,
Args: map[string]interface{}{
RestoreDataNamespaceArg: "{{ .PVC.Namespace }}",
RestoreDataImageArg: "kanisterio/kanister-tools:0.44.0",
RestoreDataImageArg: "ghcr.io/kanisterio/kanister-tools:0.44.0",
RestoreDataBackupArtifactPrefixArg: fmt.Sprintf("{{ .Options.%s }}", CopyVolumeDataOutputBackupArtifactLocation),
RestoreDataBackupTagArg: fmt.Sprintf("{{ .Options.%s }}", CopyVolumeDataOutputBackupTag),
RestoreDataVolsArg: map[string]string{
2 changes: 1 addition & 1 deletion pkg/function/export_rds_snapshot_location.go
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ const (
BackupAction RDSAction = "backup"
RestoreAction RDSAction = "restore"

postgresToolsImage = "kanisterio/postgres-kanister-tools:0.44.0"
postgresToolsImage = "ghcr.io/kanisterio/postgres-kanister-tools:0.44.0"
)

type exportRDSSnapshotToLocationFunc struct{}
2 changes: 1 addition & 1 deletion pkg/function/kube_task_test.go
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ func outputPhase(namespace string) crv1alpha1.BlueprintPhase {
Func: KubeTaskFuncName,
Args: map[string]interface{}{
KubeTaskNamespaceArg: namespace,
KubeTaskImageArg: "kanisterio/kanister-tools:0.20.0",
KubeTaskImageArg: "ghcr.io/kanisterio/kanister-tools:0.20.0",
KubeTaskCommandArg: []string{
"sh",
"-c",
2 changes: 1 addition & 1 deletion pkg/function/utils.go
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ import (
const (
// FunctionOutputVersion returns version
FunctionOutputVersion = "version"
kanisterToolsImage = "kanisterio/kanister-tools:0.44.0"
kanisterToolsImage = "ghcr.io/kanisterio/kanister-tools:0.44.0"
kanisterToolsImageEnvName = "KANISTER_TOOLS"
)

2 changes: 1 addition & 1 deletion pkg/kube/exec_test.go
Original file line number Diff line number Diff line change
@@ -120,7 +120,7 @@ func (s *ExecSuite) TestKopiaCommand(c *C) {
Containers: []v1.Container{
v1.Container{
Name: "kanister-sidecar",
Image: "kanisterio/kanister-tools:0.37.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.37.0",
},
},
},
22 changes: 11 additions & 11 deletions pkg/kube/pod_test.go
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ type PodSuite struct {
const (
testSAName = "test-sa"
controllerSA = "controller-sa"
kanisterToolsImage = "kanisterio/kanister-tools:0.44.0"
kanisterToolsImage = "ghcr.io/kanisterio/kanister-tools:0.44.0"
)

var _ = Suite(&PodSuite{})
@@ -214,7 +214,7 @@ func (s *PodSuite) TestPodWithVolumes(c *C) {
pod, err := CreatePod(ctx, cli, &PodOptions{
Namespace: s.namespace,
GenerateName: "test-",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"sh", "-c", "tail -f /dev/null"},
Volumes: vols,
})
@@ -231,7 +231,7 @@ func (s *PodSuite) TestGetPodLogs(c *C) {
pod, err := CreatePod(context.Background(), s.cli, &PodOptions{
Namespace: s.namespace,
GenerateName: "test-",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"sh", "-c", "echo hello"},
})
c.Assert(err, IsNil)
@@ -247,7 +247,7 @@ func (s *PodSuite) TestPatchDefaultPodSpecs(c *C) {
Containers: []v1.Container{
{
Name: "container",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"sh", "-c", "echo in default specs"},
ImagePullPolicy: v1.PullPolicy(v1.PullIfNotPresent),
VolumeMounts: []v1.VolumeMount{
@@ -293,7 +293,7 @@ func (s *PodSuite) TestPatchDefaultPodSpecs(c *C) {
Containers: []v1.Container{
{
Name: "container",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"sh", "-c", "echo in default specs"},
ImagePullPolicy: v1.PullPolicy(v1.PullIfNotPresent),
VolumeMounts: []v1.VolumeMount{
@@ -333,7 +333,7 @@ func (s *PodSuite) TestPatchDefaultPodSpecs(c *C) {
Containers: []v1.Container{
{
Name: "container",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"sh", "-c", "echo in default specs"},
ImagePullPolicy: v1.PullPolicy(v1.PullIfNotPresent),
VolumeMounts: []v1.VolumeMount{
@@ -387,7 +387,7 @@ func (s *PodSuite) TestPatchDefaultPodSpecs(c *C) {
Containers: []v1.Container{
{
Name: "container",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"sh", "-c", "echo in default specs"},
ImagePullPolicy: v1.PullPolicy(v1.PullIfNotPresent),
VolumeMounts: []v1.VolumeMount{
@@ -448,7 +448,7 @@ func (s *PodSuite) TestPatchDefaultPodSpecs(c *C) {
Containers: []v1.Container{
{
Name: "container",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"sh", "-c", "echo in default specs"},
ImagePullPolicy: v1.PullPolicy(v1.PullIfNotPresent),
VolumeMounts: []v1.VolumeMount{
@@ -511,7 +511,7 @@ func (s *PodSuite) TestPatchDefaultPodSpecs(c *C) {
Containers: []v1.Container{
{
Name: "container",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"echo", "override command"},
ImagePullPolicy: v1.PullPolicy(v1.PullIfNotPresent),
VolumeMounts: []v1.VolumeMount{
@@ -551,7 +551,7 @@ func (s *PodSuite) TestPatchDefaultPodSpecs(c *C) {
Containers: []v1.Container{
{
Name: "container",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"echo", "override command"},
ImagePullPolicy: v1.PullPolicy(v1.PullIfNotPresent),
VolumeMounts: []v1.VolumeMount{
@@ -594,7 +594,7 @@ func (s *PodSuite) TestPatchDefaultPodSpecs(c *C) {
Containers: []v1.Container{
{
Name: "container",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"sh", "-c", "echo in default specs"},
ImagePullPolicy: v1.PullPolicy(v1.PullIfNotPresent),
VolumeMounts: []v1.VolumeMount{
2 changes: 1 addition & 1 deletion pkg/testing/e2e_test.go
Original file line number Diff line number Diff line change
@@ -226,7 +226,7 @@ func (s *E2ESuite) TestKubeTask(c *C) {
Func: function.KubeTaskFuncName,
Name: "test-kube-task",
Args: map[string]interface{}{
"image": "kanisterio/kanister-tools:0.44.0",
"image": "ghcr.io/kanisterio/kanister-tools:0.44.0",
"namespace": "{{ .Deployment.Namespace }}",
"command": []string{"echo", "default specs"},
"podOverride": map[string]interface{}{
2 changes: 1 addition & 1 deletion pkg/testutil/testutil.go
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ func newTestPodTemplateSpec() v1.PodTemplateSpec {
Containers: []v1.Container{
v1.Container{
Name: "test-container",
Image: "kanisterio/kanister-tools:0.44.0",
Image: "ghcr.io/kanisterio/kanister-tools:0.44.0",
Command: []string{"tail"},
Args: []string{"-f", "/dev/null"},
},

0 comments on commit a4fdb40

Please sign in to comment.