@@ -21,21 +21,18 @@ var _ = g.Describe("[Feature:Builds][Slow] update failure status", func() {
21
21
22
22
var (
23
23
// convert the s2i failure cases to our own StatusReason
24
- reasonAssembleFailed = buildapi .StatusReason (s2istatus .ReasonAssembleFailed )
25
- messageAssembleFailed = string (s2istatus .ReasonMessageAssembleFailed )
26
- reasonFetchRuntimeArtifacts = buildapi .StatusReason (s2istatus .ReasonRuntimeArtifactsFetchFailed )
27
- messageFetchRuntimeArtifacts = string (s2istatus .ReasonMessageRuntimeArtifactsFetchFailed )
28
- postCommitHookFixture = exutil .FixturePath ("testdata" , "statusfail-postcommithook.yaml" )
29
- fetchDockerSrc = exutil .FixturePath ("testdata" , "statusfail-fetchsourcedocker.yaml" )
30
- fetchS2ISrc = exutil .FixturePath ("testdata" , "statusfail-fetchsources2i.yaml" )
31
- badContextDirS2ISrc = exutil .FixturePath ("testdata" , "statusfail-badcontextdirs2i.yaml" )
32
- builderImageFixture = exutil .FixturePath ("testdata" , "statusfail-fetchbuilderimage.yaml" )
33
- pushToRegistryFixture = exutil .FixturePath ("testdata" , "statusfail-pushtoregistry.yaml" )
34
- fetchRuntimeArtifactsFixture = exutil .FixturePath ("testdata" , "statusfail-runtimeartifacts.yaml" )
35
- failedAssembleFixture = exutil .FixturePath ("testdata" , "statusfail-failedassemble.yaml" )
36
- failedGenericReason = exutil .FixturePath ("testdata" , "statusfail-genericreason.yaml" )
37
- binaryBuildDir = exutil .FixturePath ("testdata" , "statusfail-assemble" )
38
- oc = exutil .NewCLI ("update-buildstatus" , exutil .KubeConfigPath ())
24
+ reasonAssembleFailed = buildapi .StatusReason (s2istatus .ReasonAssembleFailed )
25
+ messageAssembleFailed = string (s2istatus .ReasonMessageAssembleFailed )
26
+ postCommitHookFixture = exutil .FixturePath ("testdata" , "statusfail-postcommithook.yaml" )
27
+ fetchDockerSrc = exutil .FixturePath ("testdata" , "statusfail-fetchsourcedocker.yaml" )
28
+ fetchS2ISrc = exutil .FixturePath ("testdata" , "statusfail-fetchsources2i.yaml" )
29
+ badContextDirS2ISrc = exutil .FixturePath ("testdata" , "statusfail-badcontextdirs2i.yaml" )
30
+ builderImageFixture = exutil .FixturePath ("testdata" , "statusfail-fetchbuilderimage.yaml" )
31
+ pushToRegistryFixture = exutil .FixturePath ("testdata" , "statusfail-pushtoregistry.yaml" )
32
+ failedAssembleFixture = exutil .FixturePath ("testdata" , "statusfail-failedassemble.yaml" )
33
+ failedGenericReason = exutil .FixturePath ("testdata" , "statusfail-genericreason.yaml" )
34
+ binaryBuildDir = exutil .FixturePath ("testdata" , "statusfail-assemble" )
35
+ oc = exutil .NewCLI ("update-buildstatus" , exutil .KubeConfigPath ())
39
36
)
40
37
41
38
g .Context ("" , func () {
@@ -202,25 +199,6 @@ var _ = g.Describe("[Feature:Builds][Slow] update failure status", func() {
202
199
})
203
200
})
204
201
205
- g .Describe ("Build status failed assemble runtime artifacts" , func () {
206
- g .It ("should contain the failure reason related to failing to fetch runtime image artifacts" , func () {
207
- err := oc .Run ("create" ).Args ("-f" , fetchRuntimeArtifactsFixture ).Execute ()
208
- o .Expect (err ).NotTo (o .HaveOccurred ())
209
-
210
- br , err := exutil .StartBuildAndWait (oc , "statusfail-runtimeartifacts" , "--build-loglevel=5" )
211
- o .Expect (err ).NotTo (o .HaveOccurred ())
212
- br .AssertFailure ()
213
- br .DumpLogs ()
214
-
215
- build , err := oc .BuildClient ().Build ().Builds (oc .Namespace ()).Get (br .Build .Name , metav1.GetOptions {})
216
- o .Expect (err ).NotTo (o .HaveOccurred ())
217
- o .Expect (build .Status .Reason ).To (o .Equal (reasonFetchRuntimeArtifacts ))
218
- o .Expect (build .Status .Message ).To (o .Equal (messageFetchRuntimeArtifacts ))
219
-
220
- exutil .CheckForBuildEvent (oc .KubeClient ().Core (), br .Build , buildapi .BuildFailedEventReason , buildapi .BuildFailedEventMessage )
221
- })
222
- })
223
-
224
202
g .Describe ("Build status failed https proxy invalid url" , func () {
225
203
g .It ("should contain the generic failure reason and message" , func () {
226
204
err := oc .Run ("create" ).Args ("-f" , failedGenericReason ).Execute ()
0 commit comments