Skip to content

Commit 942afd0

Browse files
committed
remove extended build tests
1 parent f67aa87 commit 942afd0

File tree

8 files changed

+0
-556
lines changed

8 files changed

+0
-556
lines changed

pkg/build/apis/build/validation/validation_test.go

-52
Original file line numberDiff line numberDiff line change
@@ -2890,32 +2890,6 @@ func TestValidateBuildImageRefs(t *testing.T) {
28902890
},
28912891
expectedError: "not a valid Docker pull specification: invalid reference format",
28922892
},
2893-
{
2894-
name: "valid s2i build w/ runtimeImage",
2895-
build: buildapi.Build{
2896-
ObjectMeta: metav1.ObjectMeta{Name: "build", Namespace: "default"},
2897-
Spec: buildapi.BuildSpec{
2898-
CommonSpec: buildapi.CommonSpec{
2899-
Source: buildapi.BuildSource{
2900-
Binary: &buildapi.BinaryBuildSource{},
2901-
},
2902-
Strategy: buildapi.BuildStrategy{
2903-
SourceStrategy: &buildapi.SourceBuildStrategy{
2904-
From: kapi.ObjectReference{
2905-
Kind: "DockerImage",
2906-
Name: "myimage:tag",
2907-
},
2908-
RuntimeImage: &kapi.ObjectReference{
2909-
Kind: "DockerImage",
2910-
Name: "runtimestream:tag",
2911-
},
2912-
},
2913-
},
2914-
},
2915-
},
2916-
},
2917-
expectedError: "",
2918-
},
29192893
{
29202894
name: "docker build with ImageStreamTag in from",
29212895
build: buildapi.Build{
@@ -3022,32 +2996,6 @@ func TestValidateBuildImageRefs(t *testing.T) {
30222996
},
30232997
expectedError: "Required value",
30242998
},
3025-
{
3026-
name: "s2i build with ImageStreamTag runtimeImage",
3027-
build: buildapi.Build{
3028-
ObjectMeta: metav1.ObjectMeta{Name: "build", Namespace: "default"},
3029-
Spec: buildapi.BuildSpec{
3030-
CommonSpec: buildapi.CommonSpec{
3031-
Source: buildapi.BuildSource{
3032-
Binary: &buildapi.BinaryBuildSource{},
3033-
},
3034-
Strategy: buildapi.BuildStrategy{
3035-
SourceStrategy: &buildapi.SourceBuildStrategy{
3036-
From: kapi.ObjectReference{
3037-
Kind: "DockerImage",
3038-
Name: "myimage:tag",
3039-
},
3040-
RuntimeImage: &kapi.ObjectReference{
3041-
Kind: "ImageStreamTag",
3042-
Name: "",
3043-
},
3044-
},
3045-
},
3046-
},
3047-
},
3048-
},
3049-
expectedError: "Required value",
3050-
},
30512999
{
30523000
name: "custom build with ImageStreamTag in from",
30533001
build: buildapi.Build{

test/extended/builds/s2i_extended_build.go

-156
This file was deleted.

0 commit comments

Comments
 (0)