- validation
committers:
- <<: *akraino_validation_ptl
- - name: 'Cristina Pauna'
- email: 'cristina.pauna@enea.com'
- company: 'enea'
- id: 'cristinapauna'
- timezone: 'Europe/Bucharest'
- - name: 'Juha Kosonen'
- email: 'juha.kosonen@nokia.com'
- company: 'nokia'
- id: 'jukosone'
- timezone: 'Europe/Helsinki'
- name: 'Andrew Wilkinson'
email: 'arkwilkinson@gmail.com'
company: 'gmail'
if _PULL:
pull_docker(layer, tag)
volume_list = get_volumes('common') + get_volumes(layer)
- cmd = ("docker run --rm" + volume_list + _SUBNET +
+ cmd = ("docker run --rm --net=host" + volume_list + _SUBNET +
" akraino/validation:{0}-{3}"
" /bin/sh -c"
" 'cd /opt/akraino/validation "
--- /dev/null
+blueprint:
+ name: icn
+ layers:
+ - os
+ - k8s
+
+ os: &os
+ -
+ name: lynis
+ what: lynis
+ optional: "False"
+ -
+ name: vuls
+ what: vuls
+ optional: "False"
+
+ k8s: &k8s
+ -
+ name: conformance
+ what: conformance
+ optional: "False"
+ -
+ name: kube-hunter
+ what: kube-hunter
+ optional: "False"
-
name: hp_baremetal
what: hp_baremetal
+ optional: "True"
+
os: &os_rec
-
name: ltp
what: ltp
+ optional: "True"
-
name: cyclictest
what: cyclictest
-
name: lynis
what: lynis
- optional: "True"
+ optional: "False"
+ -
+ name: vuls
+ what: vuls
+ optional: "False"
docker: &docker_base
-
name: docker_bench
what: docker_bench
+ optional: "True"
+
k8s: &k8s
-
name: conformance
what: conformance
+ optional: "False"
-
name: etcd_ha
what: etcd_ha
-
name: kube-hunter
what: kube-hunter
- optional: "True"
+ optional: "False"
variables_dict['log_path'] = str(results_path)
variables_updated_file = mypath.parents[1].joinpath("tests/variables_updated.yaml")
variables_updated_file.write_text(str(variables_dict))
+ variables_loglevel = variables_dict['loglevel']
# run the test
- args = ["robot", "-V", str(variables_updated_file), "-d", str(results_path),
- "-n", "non-critical", "-b", "debug.log", str(test_path)]
+ args = ["robot", "-V", str(variables_updated_file),
+ "-d", str(results_path),
+ "-n", "non-critical",
+ "-b", "debug.log",
+ "-L", str(variables_loglevel),
+ str(test_path)]
print('Executing testcase {}'.format(name))
print('show_stopper {}'.format(show_stopper))
### Input variables for Conformance test
internal_registry: '' # Docker internal registry
dns_domain: cluster.local # cluster's DNS domain
+
+### Debug support
+# Log level is passed to Robot which accepts the values
+# NONE, WARN, INFO, DEBUG, and TRACE.
+# Default is INFO
+loglevel: INFO