1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+ #
1
18
import nuvolaris.config as cfg
2
- import nuvolaris.runtimes_preloader as preloader
3
19
import nuvolaris.util as util
4
20
import nuvolaris.runtimes_util as rutil
5
21
import nuvolaris.testutil as tu
@@ -20,10 +36,6 @@ cleanup()
20
36
21
37
# Test with Apache runtimes
22
38
assert(cfg.configure(tu.load_sample_config()))
23
- assert(preloader.create())
24
-
25
- # Wait for the job to complete
26
- while not kube.wait("job.batch/preload-runtimes", "condition=complete"): pass
27
39
28
40
runtimes_as_json = util.get_runtimes_json_from_config_map()
29
41
data=rutil.parse_runtimes(json.loads(runtimes_as_json))
@@ -40,5 +52,5 @@ count_non_apache = len(data['containers']) - count_apache
40
52
assert(count_apache > 0), "Expected at least one Apache runtime in the preloader data"
41
53
assert(count_non_apache == 0), "Expected no non-Apache runtimes in the preloader data"
42
54
43
- assert(preloader.delete())
55
+
44
56
cleanup()
0 commit comments