summaryrefslogtreecommitdiffstats
path: root/all-nodes-validation.yaml
blob: 52cd6ac0e5d69d225b4c4235ad462cb090fa3a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
heat_template_version: pike

description: >
  Software Config to drive validations that occur on all nodes.
  Note, you need the heat-config-script element built into your
  images, due to the script group below.

parameters:
  PingTestIps:
    default: ''
    description: A string containing a space separated list of IP addresses used to ping test each available network interface.
    type: string
  ValidateFqdn:
    default: false
    description: Optional validation to ensure FQDN as set by Nova matches the name set in /etc/hosts.
    type: boolean
  ValidateNtp:
    default: true
    description: Validation to ensure at least one time source is accessible.
    type: boolean

resources:
  AllNodesValidationsImpl:
    type: OS::Heat::SoftwareConfig
    properties:
      group: script
      inputs:
        - name: ping_test_ips
          default: {get_param: PingTestIps}
        - name: validate_fqdn
          default: {get_param: ValidateFqdn}
        - name: validate_ntp
          default: {get_param: ValidateNtp}
      config: {get_file: ./validation-scripts/all-nodes.sh}

outputs:
  OS::stack_id:
    description: The ID of the AllNodesValidationsImpl resource.
    value: {get_resource: AllNodesValidationsImpl}
class="s"> functest.tests.unit.vnf.router functest.tests.unit.utils.test_decorators functest.utils.config functest.utils.decorators functest.utils.constants functest.utils.env functest.utils.functest_utils commands = bash -c "\ pylint -f parseable --disable=locally-disabled functest | \ tee pylint.out | sed -ne '/Raw metrics/,//p'" pylint --reports=n --errors-only functest pylint --disable=locally-disabled --ignore-imports=y --reports=n {[testenv:pylint]modules} [testenv:yamllint] basepython = python2.7 files = docker functest/api functest/ci functest/opnfv_tests/vnf commands = yamllint -s {[testenv:yamllint]files} [testenv:py35] dirs = functest/tests/unit/ci functest/tests/unit/cli functest/tests/unit/core functest/tests/unit/energy functest/tests/unit/odl functest/tests/unit/utils commands = nosetests {[testenv:py35]dirs} [testenv:cover] basepython = python2.7 dirs = functest/tests/unit/ci functest/tests/unit/core functest/tests/unit/energy functest/tests/unit/odl functest/tests/unit/utils/test_decorators.py commands = nosetests --with-coverage --cover-tests \ --cover-package functest.ci.check_deployment \ --cover-package functest.ci.tier_builder \ --cover-package functest.ci.tier_handler \ --cover-package functest.core \ --cover-package functest.energy \ --cover-package functest.opnfv_tests.sdn.odl \ --cover-package functest.tests.unit \ --cover-package functest.utils.decorators \ --cover-min-percentage 100 {[testenv:cover]dirs} [testenv:perm] basepython = python2.7 whitelist_externals = bash path=. -not -path './.tox/*' -not -path './.git/*' -not -path './docs/com/pres/reveal.js/*' commands = bash -c "\ find {[testenv:perm]path} \( -type f -not -perm 644 -o -type d -not -perm 755 \) \ -exec ls -l \{\} + | grep '.' && exit 1 || exit 0" bash -c "\ find {[testenv:perm]path} -exec file \{\} + | grep CRLF && exit 1 || exit 0"