commit dc8edb6e66d8a76e70fb92732924575258ba910c
Author: Aleksandr Didenko <email address hidden>
Date: Thu Dec 11 12:26:44 2014 +0200
Modular noop tests
We can run noop tests via 'rake spec'. This will allow us to:
- Make sure that catalog compiles and there are no dependency
cycles in the graph.
- Use RSpec tests to check that needed puppet resources present
in the catalog for specific astute.yaml configuration.
In order to test just execute these commands:
export WORKSPACE=/tmp/fuel_noop_tests
mkdir -p $WORKSPACE
./utils/jenkins/fuel_noop_tests.sh
It iterates over astsute.yaml files and runs rspec tests for puppet
tasks configured in the astute.yaml for the node.
In order to run specific test and/or specific astute.yaml, you can
set appropriate env variables. For example:
export NOOP_TEST="keystone/*"
export NOOP_YAMLS="tests/noop/astute.yaml/novanet_flat.primary-controller.yaml"
./utils/jenkins/fuel_noop_tests.sh
If you also want to store puppet logs in case of errors, please set
PUPPET_LOGS_DIR env variable:
export PUPPET_LOGS_DIR=/tmp/puppet_error_logs
If you want to store all the delcarated File and Package resources,
please set NOOP_SAVE_RESOURCES_DIR env variable:
export NOOP_SAVE_RESOURCES_DIR=/tmp/puppet_resources
Reviewed: https:/ /review. openstack. org/153198 /git.openstack. org/cgit/ stackforge/ fuel-library/ commit/ ?id=dc8edb6e66d 8a76e70fb927329 24575258ba910c
Committed: https:/
Submitter: Jenkins
Branch: master
commit dc8edb6e66d8a76 e70fb9273292457 5258ba910c
Author: Aleksandr Didenko <email address hidden>
Date: Thu Dec 11 12:26:44 2014 +0200
Modular noop tests
We can run noop tests via 'rake spec'. This will allow us to:
- Make sure that catalog compiles and there are no dependency
cycles in the graph.
- Use RSpec tests to check that needed puppet resources present
in the catalog for specific astute.yaml configuration.
In order to test just execute these commands: /tmp/fuel_ noop_tests /utils/ jenkins/ fuel_noop_ tests.sh
export WORKSPACE=
mkdir -p $WORKSPACE
.
It iterates over astsute.yaml files and runs rspec tests for puppet
tasks configured in the astute.yaml for the node.
In order to run specific test and/or specific astute.yaml, you can "keystone/ *" "tests/ noop/astute. yaml/novanet_ flat.primary- controller. yaml" /utils/ jenkins/ fuel_noop_ tests.sh
set appropriate env variables. For example:
export NOOP_TEST=
export NOOP_YAMLS=
.
If you also want to store puppet logs in case of errors, please set LOGS_DIR= /tmp/puppet_ error_logs
PUPPET_LOGS_DIR env variable:
export PUPPET_
If you want to store all the delcarated File and Package resources, RESOURCES_ DIR env variable: RESOURCES_ DIR=/tmp/ puppet_ resources
please set NOOP_SAVE_
export NOOP_SAVE_
Related-bug: #1402738
Implement blueprint deployment-dryrun
Fuel CI temporarily disabled since this change does not affect
MOS deplyoment process, only CI itself.
Fuel-CI: disable
Change-Id: I38b23832d1e870 1440aacb300256f 513c466c762