@@ -2890,32 +2890,6 @@ func TestValidateBuildImageRefs(t *testing.T) {
2890
2890
},
2891
2891
expectedError : "not a valid Docker pull specification: invalid reference format" ,
2892
2892
},
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
- },
2919
2893
{
2920
2894
name : "docker build with ImageStreamTag in from" ,
2921
2895
build : buildapi.Build {
@@ -3022,32 +2996,6 @@ func TestValidateBuildImageRefs(t *testing.T) {
3022
2996
},
3023
2997
expectedError : "Required value" ,
3024
2998
},
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
- },
3051
2999
{
3052
3000
name : "custom build with ImageStreamTag in from" ,
3053
3001
build : buildapi.Build {
0 commit comments