Skip to content

Commit ce7e4ff

Browse files
authored
Merge pull request #63 from d4rkstar/main
chore: missing license
2 parents 0f29d5a + c6049fb commit ce7e4ff

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

tests/kind/runtimes_preloader_test.ipy

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
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+
#
118
import nuvolaris.config as cfg
2-
import nuvolaris.runtimes_preloader as preloader
319
import nuvolaris.util as util
420
import nuvolaris.runtimes_util as rutil
521
import nuvolaris.testutil as tu
@@ -20,10 +36,6 @@ cleanup()
2036

2137
# Test with Apache runtimes
2238
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
2739

2840
runtimes_as_json = util.get_runtimes_json_from_config_map()
2941
data=rutil.parse_runtimes(json.loads(runtimes_as_json))
@@ -40,5 +52,5 @@ count_non_apache = len(data['containers']) - count_apache
4052
assert(count_apache > 0), "Expected at least one Apache runtime in the preloader data"
4153
assert(count_non_apache == 0), "Expected no non-Apache runtimes in the preloader data"
4254

43-
assert(preloader.delete())
55+
4456
cleanup()

0 commit comments

Comments
 (0)