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+ #
118import nuvolaris.config as cfg
2- import nuvolaris.runtimes_preloader as preloader
319import nuvolaris.util as util
420import nuvolaris.runtimes_util as rutil
521import nuvolaris.testutil as tu
@@ -20,10 +36,6 @@ cleanup()
2036
2137# Test with Apache runtimes
2238assert(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
2739
2840runtimes_as_json = util.get_runtimes_json_from_config_map()
2941data=rutil.parse_runtimes(json.loads(runtimes_as_json))
@@ -40,5 +52,5 @@ count_non_apache = len(data['containers']) - count_apache
4052assert(count_apache > 0), "Expected at least one Apache runtime in the preloader data"
4153assert(count_non_apache == 0), "Expected no non-Apache runtimes in the preloader data"
4254
43- assert(preloader.delete())
55+
4456cleanup()
0 commit comments