@@ -52,17 +52,17 @@ type synchronizedBeforeTestSuiteConfig struct {
52
52
53
53
// Node1BeforeSuite is the common setup down on the first ginkgo node before the test suite runs.
54
54
func Node1BeforeSuite (e2eCtx * E2EContext ) []byte {
55
- Byf ("Running Node1BeforeSuite" )
56
- defer Byf ("Finished Node1BeforeSuite" )
55
+ Logf ("Running Node1BeforeSuite" )
56
+ defer Logf ("Finished Node1BeforeSuite" )
57
57
58
58
flag .Parse ()
59
59
Expect (e2eCtx .Settings .ConfigPath ).To (BeAnExistingFile (), "Invalid test suite argument. configPath should be an existing file." )
60
60
Expect (os .MkdirAll (e2eCtx .Settings .ArtifactFolder , 0o750 )).To (Succeed (), "Invalid test suite argument. Can't create artifacts-folder %q" , e2eCtx .Settings .ArtifactFolder )
61
- Byf ("Loading the e2e test configuration from %q" , e2eCtx .Settings .ConfigPath )
61
+ Logf ("Loading the e2e test configuration from %q" , e2eCtx .Settings .ConfigPath )
62
62
e2eCtx .E2EConfig = LoadE2EConfig (e2eCtx .Settings .ConfigPath )
63
63
64
64
Expect (e2eCtx .E2EConfig .GetVariable (OpenStackCloudYAMLFile )).To (BeAnExistingFile (), "Invalid test suite argument. Value of environment variable OPENSTACK_CLOUD_YAML_FILE should be an existing file: %s" , e2eCtx .E2EConfig .GetVariable (OpenStackCloudYAMLFile ))
65
- Byf ("Loading the clouds.yaml from %q" , e2eCtx .E2EConfig .GetVariable (OpenStackCloudYAMLFile ))
65
+ Logf ("Loading the clouds.yaml from %q" , e2eCtx .E2EConfig .GetVariable (OpenStackCloudYAMLFile ))
66
66
67
67
// TODO(sbuerin): we always need ci artifacts, because we don't have images for every Kubernetes version
68
68
err := filepath .WalkDir (path .Join (e2eCtx .Settings .DataFolder , "infrastructure-openstack" ), func (f string , d fs.DirEntry , _ error ) error {
@@ -114,13 +114,13 @@ func Node1BeforeSuite(e2eCtx *E2EContext) []byte {
114
114
115
115
ensureSSHKeyPair (e2eCtx )
116
116
117
- Byf ("Creating a clusterctl local repository into %q" , e2eCtx .Settings .ArtifactFolder )
117
+ Logf ("Creating a clusterctl local repository into %q" , e2eCtx .Settings .ArtifactFolder )
118
118
e2eCtx .Environment .ClusterctlConfigPath = createClusterctlLocalRepository (e2eCtx .E2EConfig , filepath .Join (e2eCtx .Settings .ArtifactFolder , "repository" ))
119
119
120
- Byf ("Setting up the bootstrap cluster" )
120
+ Logf ("Setting up the bootstrap cluster" )
121
121
e2eCtx .Environment .BootstrapClusterProvider , e2eCtx .Environment .BootstrapClusterProxy = setupBootstrapCluster (e2eCtx .E2EConfig , e2eCtx .Environment .Scheme , e2eCtx .Settings .UseExistingCluster )
122
122
123
- Byf ("Initializing the bootstrap cluster" )
123
+ Logf ("Initializing the bootstrap cluster" )
124
124
initBootstrapCluster (e2eCtx )
125
125
126
126
conf := synchronizedBeforeTestSuiteConfig {
@@ -142,8 +142,8 @@ func Node1BeforeSuite(e2eCtx *E2EContext) []byte {
142
142
143
143
// AllNodesBeforeSuite is the common setup down on each ginkgo parallel node before the test suite runs.
144
144
func AllNodesBeforeSuite (e2eCtx * E2EContext , data []byte ) {
145
- Byf ("Running AllNodesBeforeSuite" )
146
- defer Byf ("Finished AllNodesBeforeSuite" )
145
+ Logf ("Running AllNodesBeforeSuite" )
146
+ defer Logf ("Finished AllNodesBeforeSuite" )
147
147
148
148
conf := & synchronizedBeforeTestSuiteConfig {}
149
149
err := yaml .UnmarshalStrict (data , conf )
@@ -222,20 +222,20 @@ func AllNodesBeforeSuite(e2eCtx *E2EContext, data []byte) {
222
222
223
223
// AllNodesAfterSuite is cleanup that runs on all ginkgo parallel nodes after the test suite finishes.
224
224
func AllNodesAfterSuite (e2eCtx * E2EContext ) {
225
- Byf ("Running AllNodesAfterSuite" )
226
- defer Byf ("Finished AllNodesAfterSuite" )
225
+ Logf ("Running AllNodesAfterSuite" )
226
+ defer Logf ("Finished AllNodesAfterSuite" )
227
227
228
- Byf ("Stopping ResourceTicker" )
228
+ Logf ("Stopping ResourceTicker" )
229
229
if e2eCtx .Environment .ResourceTickerDone != nil {
230
230
e2eCtx .Environment .ResourceTickerDone <- true
231
231
}
232
- Byf ("Stopped ResourceTicker" )
232
+ Logf ("Stopped ResourceTicker" )
233
233
234
- Byf ("Stopping MachineTicker" )
234
+ Logf ("Stopping MachineTicker" )
235
235
if e2eCtx .Environment .MachineTickerDone != nil {
236
236
e2eCtx .Environment .MachineTickerDone <- true
237
237
}
238
- Byf ("Stopped MachineTicker" )
238
+ Logf ("Stopped MachineTicker" )
239
239
240
240
ctx , cancel := context .WithTimeout (context .TODO (), 5 * time .Minute )
241
241
defer cancel ()
@@ -252,10 +252,10 @@ func AllNodesAfterSuite(e2eCtx *E2EContext) {
252
252
253
253
// Node1AfterSuite is cleanup that runs on the first ginkgo node after the test suite finishes.
254
254
func Node1AfterSuite (e2eCtx * E2EContext ) {
255
- Byf ("Running Node1AfterSuite" )
256
- defer Byf ("Finished Node1AfterSuite" )
255
+ Logf ("Running Node1AfterSuite" )
256
+ defer Logf ("Finished Node1AfterSuite" )
257
257
258
- Byf ("Tearing down the management cluster" )
258
+ Logf ("Tearing down the management cluster" )
259
259
if ! e2eCtx .Settings .SkipCleanup {
260
260
tearDown (e2eCtx .Environment .BootstrapClusterProvider , e2eCtx .Environment .BootstrapClusterProxy )
261
261
}
0 commit comments