Skip to content

Commit

Permalink
remove redundant test
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Oct 18, 2024
1 parent 52643f7 commit 72f07c9
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions src/pkg/cluster/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,42 +229,6 @@ func TestInitZarfState(t *testing.T) {
}
}

func TestSaveZarfState(t *testing.T) {
tests := []struct {
name string
state types.ZarfState
}{
{
name: "first test",
state: types.ZarfState{
GitServer: types.GitServerInfo{
Address: "https://git-server.com",
PushUsername: "a-push-user",
},
},
},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
ctx := context.Background()
cs := fake.NewClientset()
c := &Cluster{
Clientset: cs,
}
ns := &corev1.Namespace{
ObjectMeta: metav1.ObjectMeta{
Name: ZarfNamespaceName,
},
}
_, err := cs.CoreV1().Namespaces().Create(ctx, ns, metav1.CreateOptions{})
require.NoError(t, err)
err = c.SaveZarfState(ctx, &tt.state)
require.NoError(t, err)
})
}
}

// TODO: Change password gen method to make testing possible.
func TestMergeZarfStateRegistry(t *testing.T) {
t.Parallel()
Expand Down

0 comments on commit 72f07c9

Please sign in to comment.