K8s health utilities for cic containers
This commit is contained in:
0
apps/util/liveness/tests/imports/__init__.py
Normal file
0
apps/util/liveness/tests/imports/__init__.py
Normal file
8
apps/util/liveness/tests/imports/import_args.py
Normal file
8
apps/util/liveness/tests/imports/import_args.py
Normal file
@@ -0,0 +1,8 @@
|
||||
a = ['foo']
|
||||
kw = {
|
||||
'bar': 42,
|
||||
}
|
||||
|
||||
def health(*args, **kwargs):
|
||||
args[0] == a[0]
|
||||
kwargs['bar'] = kw['bar']
|
||||
2
apps/util/liveness/tests/imports/import_false.py
Normal file
2
apps/util/liveness/tests/imports/import_false.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def health(*args, **kwargs):
|
||||
return False
|
||||
2
apps/util/liveness/tests/imports/import_true.py
Normal file
2
apps/util/liveness/tests/imports/import_true.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def health(*args, **kwargs):
|
||||
return True
|
||||
Reference in New Issue
Block a user