Skip to content

Commit 3c88028

Browse files
committed
test: remove git initializer TargetMode and CloneTaget
Signed-off-by: JenTing Hsiao <[email protected]>
1 parent af45552 commit 3c88028

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

test/tests/components/ws-manager/content_test.go

-4
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ func TestBackup(t *testing.T) {
6363
Spec: &csapi.WorkspaceInitializer_Git{
6464
Git: &csapi.GitInitializer{
6565
RemoteUri: test.ContextURL,
66-
TargetMode: csapi.CloneTargetMode_REMOTE_BRANCH,
67-
CloneTaget: "main",
6866
CheckoutLocation: test.CheckoutLocation,
6967
Config: &csapi.GitConfig{},
7068
},
@@ -214,8 +212,6 @@ func TestExistingWorkspaceEnablePVC(t *testing.T) {
214212
Spec: &csapi.WorkspaceInitializer_Git{
215213
Git: &csapi.GitInitializer{
216214
RemoteUri: test.ContextURL,
217-
TargetMode: csapi.CloneTargetMode_REMOTE_BRANCH,
218-
CloneTaget: "main",
219215
CheckoutLocation: test.CheckoutLocation,
220216
Config: &csapi.GitConfig{},
221217
},

test/tests/components/ws-manager/prebuild_test.go

-6
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ func TestPrebuildWorkspaceTaskSuccess(t *testing.T) {
8383
Spec: &csapi.WorkspaceInitializer_Git{
8484
Git: &csapi.GitInitializer{
8585
RemoteUri: test.ContextURL,
86-
TargetMode: csapi.CloneTargetMode_REMOTE_BRANCH,
87-
CloneTaget: "main",
8886
CheckoutLocation: test.CheckoutLocation,
8987
Config: &csapi.GitConfig{},
9088
},
@@ -244,8 +242,6 @@ func TestOpenWorkspaceFromPrebuild(t *testing.T) {
244242
Spec: &csapi.WorkspaceInitializer_Git{
245243
Git: &csapi.GitInitializer{
246244
RemoteUri: test.ContextURL,
247-
TargetMode: csapi.CloneTargetMode_REMOTE_BRANCH,
248-
CloneTaget: "main",
249245
CheckoutLocation: test.CheckoutLocation,
250246
Config: &csapi.GitConfig{},
251247
},
@@ -277,8 +273,6 @@ func TestOpenWorkspaceFromPrebuild(t *testing.T) {
277273
Git: []*csapi.GitInitializer{
278274
{
279275
RemoteUri: test.ContextURL,
280-
TargetMode: csapi.CloneTargetMode_REMOTE_BRANCH,
281-
CloneTaget: "main",
282276
CheckoutLocation: test.CheckoutLocation,
283277
Config: &csapi.GitConfig{},
284278
},

0 commit comments

Comments
 (0)