summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools
Commit message (Collapse)AuthorAgeFilesLines
...
* add python-pecan 0.5.0 bb fileVu Tran2014-06-232-17/+25
| | | | | | | | | | | | | | | | | | | | | | | | One of the ceilometer builtin test ceilometer.tests.api.v2.test_list_events_scenarios.TestListEvents.test_all_trailing_slash failed as it tries to test with trailing slash. The root cause is in pecan package, and the following two upstream commits fix the issue: Upstream 0e18b1f7d490695f4988d92c83bf239cf2937bf6 from https://github.com/stackforge/pecan.git branch master Upstream 573846e01209327030db146909de03e97cd8a858 from https://github.com/stackforge/pecan.git branch master Instead of back porting these commits, it's better to uprev python-pecan to 0.5.0 version which also contains these commits. Also remove meta-openstack/recipes-devtools/python/python-pecan_0.4.2.bb Signed-off-by: Vu Tran <vu.tran@windriver.com>
* add python-logutils 0.3.3 bb fileVu Tran2014-06-231-0/+23
| | | | | | | New version of python-pecan (e.g pecan 0.5.0) requires python logutils. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* ceilometer builtin skip failed unsupported db testsVu Tran2014-06-233-86/+52
| | | | | | | | | | | | | | | | ceilometer tests against various databases: mongodb, db2, sqlalchemy, hbase. For mongodb and db2, tests use environment variables: CEILOMETER_TEST_MONGODB_URL and CEILOMETER_TEST_DB2_URL for supplying URL database connection into tests. As we do not support mangodb or db2, by not setting or setting bogus URLs to these two environment variables will cause tests to fail. These tests should be skipped as prerequisite is not satisfied. Therefore we modify ceilometer testcases for mongodb and db2 to be skipped instead of failed if CEILOMETER_TEST_MONGODB_URL and CEILOMETER_TEST_DB2_URL are not set. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* ceilometer builtin tests Use known protocol schemeVu Tran2014-06-232-0/+86
| | | | | | | | | | | | | Commit e5b7606eaa94033256eb1aca5f6a6eed4f9e54a0 from https://github.com/openstack/ceilometer.git master With the recent introduction of the identity_uri in keystoneclient, there is a small backward incompatible change which means that weird protocols like the ones we use during tests aren't support properly anymore. The patch replaces "foottp" and "barttp" by "file" hopefully keeping testing coverage the same. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* ceilometer builtin tests config locationVu Tran2014-06-232-0/+131
| | | | | | | | | | Many ceilometer built-in testcases failed because they can not find ceilometer configuration file, as these tests use relative paths to find these configuration files. So forcing these failure testcases to look for these configuration file using absolute path. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* cinder builtin tests config locationVu Tran2014-06-232-0/+29
| | | | | | | | | | | Many cinder built-in testcases failed because they can not find cinder configuration file, as these testcases assume that they are run at python site-packages dir. So forcing these failure testcases to look for these configuration file using absolute path. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* glance builtin tests config location and missing packagesVu Tran2014-06-232-0/+96
| | | | | | | | | | | | | | | | Many glance built-in testcases failed because they can not find glance configuration files, as these testcases assume that they are run at python site-packages dir. So forcing these failure testcases to look for these confiugration file using absolute path. Also some tests fail because of missing two packages: python-psutil and qpid-python. So add these packages into glance-tests RDEPENDS Signed-off-by: Vu Tran <vu.tran@windriver.com>
* httpretty: create recipe for packageKeith Holman2014-06-232-1/+31
| | | | | | | | | Keystoneclient tests require the package httpretty be available on the system in order to run. This fix includes a recipe file for obtaining and building httpretty. The fix also adds httpretty as a dependency of keystoneclient. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* keystoneclient: add example test certificatesKeith Holman2014-06-232-1/+40
| | | | | | | | | The tests included with keystoneclient require the use of example certificates. This fix copies the example certificates that are found in the source to the target system. It also patches the test files to find the certificates in the correct location. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* nova: package plugin directory and fix its pathKeith Holman2014-06-232-0/+34
| | | | | | | | | | The tests included with nova require some files that are within the "plugin" directory. This fix includes the "plugin" directory on the target system as part of the recipe. This fix also includes a patch that updates the tests to find the "plugin" directory where it is installed on the target system. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* nova: package doc directory and fix its pathKeith Holman2014-06-232-0/+49
| | | | | | | | | | The tests included with nova require some setup and configuration files that are within the "doc" directory. This fix includes the doc directory on the target system as part of the recipe. This fix also includes a patch that updates the tests to find the "doc" directory where it is installed on the target system. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* nova: use absolute path to api-paste.ini fileKeith Holman2014-06-232-0/+34
| | | | | | | | | | The api-paste.ini file shipped with nova is installed into the /etc/nova directory on a target system. The tests included with nova expect the file to be relative to the location of the tests within the source tree. This fix sets the absolute path to the api-paste.ini file as it exists on the system. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* coverage: add recipe for coverage tool and dependencyKeith Holman2014-06-232-0/+30
| | | | | | | | | Nova requires the python-coverage to be available in order for the unit tests supplied to pass. This fix adds a recipe in order to build the coverage tool. It also adds the dependency to the new package to the recipe to build nova. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* Add metadata service support to controller nodeAndy Ning2014-06-185-2/+60
| | | | | | | | | | | | | | | | | | The metadata service is working as the following: - metadata is being served by nova-api on controller at port 8775. - VM instance requests metadata by 169.254.169.254 (eg, curl http://169.254.169.254/latest/meta-data) - metadata request comes to neutron-ns-metadata-proxy on controller in dhcp network name space. - neutron-ns-metadata-proxy forwards the request to neutron-metadata-agent through a unix domain socket (/var/lib/neutron/metadata_proxy). - neutron-metadata-agent sends the request to nova-api on port 8775 to be serviced. To support metadata service, neutron-ns-metadata-proxy is baked into the controller image. Also neutron-metadata-agent startup script (/etc/init.d/neutron-metadata-agent) and config file (/etc/neutron/metadata_agent.ini) are added to start up metadata agent at system initialization. dhcp_agent.ini and nova.conf are updated as well. A README.metadata is added in the Documentation/ directory. Signed-off-by: Andy Ning <andy.ning@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* barbican: handle white space in date stringsKeith Holman2014-06-162-0/+32
| | | | | | | | | | Barbican tests fail because white space is not being properly parsed by the iso8601 python package. This fix updates the barbican code using a patch file to strip white space from the date before passing it to the is8601 package for parsing. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* barbican: add full path to test configuration filesKeith Holman2014-06-162-0/+37
| | | | | | | | | | | Barbican expects configuration files for its tests to be in the same location as they appear in the source tree. However, during deployment configuration files are put into the /etc/barbican directory. This fix patches the tests to find the configuration files in the directory they are placed by the barbican recipe. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* novaclient: fix path to test certificateKeith Holman2014-06-162-0/+39
| | | | | | | | | | | | Novaclient contains a test that fails because it can't find the path to the test certficate. This is because the test is based off of running the test from the base of the source tree. This fix changes the path to look for the certificate from a relative path to the absolute path allowing the test to be ran from any directory. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* keystone: remove git commands from testsKeith Holman2014-06-092-0/+43
| | | | | | | | | | | | | When running the keystone tests, the tests ensures that keystone is being tested against the latest version of keystone-client available by downloading keystone-client from source using git. However, on the target system keystone-client is installed as a separate package and it is undesirable to download a newer version to test against. This fix comments out the portion of the testing code that attempts to retrieve keystone-client from source code using git. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* keystone: create test temporary directoryKeith Holman2014-06-091-0/+2
| | | | | | | | | | | Some Keystone tests create temporary files, usually databases for testing. These files are stored in the "tmp" directory under the "tests" directory in Keystone. The fix creates this directory so these tests don't fail on failing to create temporary files because the path doesn't exist. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* keystone: fix location of files for testsKeith Holman2014-06-092-0/+37
| | | | | | | | | | | Keystone tests define the location of certificate files as the location of the files in the source tree. However, when installed on the system files are put in different locations. This change patches the configuration file for some tests to contain the full path to the tests directories. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* keystone: install example test certificatesKeith Holman2014-06-091-0/+3
| | | | | | | | | | | | Some tests provided by Keystone tests signing with an example certificate and signing key. If these certificates are not found these particular tests will hang. Thus, in order for these tests to pass we must install the example certificates to the system. This fix updates the install script for Keystone to include installing the example certificates. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* keystone: fix paths for testingKeith Holman2014-06-093-25/+46
| | | | | | | | | | | | | | Keystone tests are designed to run on the source tree. However, Keystone is installed on a system with files in various directories. This fix patches the testing source files to be able to find the files on the distribution. This fix incorporates the changes of a previous patch file into a new patch file that is generated, since the previous patch are related and close to eachother in the source and it is easier to maintain less patch files. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* openstack-nose: plugin for openstack style outputKeith Holman2014-06-092-0/+33
| | | | | | | | | | Openstack components provide a run_tests.sh script for running unit tests. Some of these tests expect the openstack-nose plugin to be installed. This fix provides a recipe for the building that plugin in order to allow the various run_tests.sh scripts to run. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* keystone: fix tabs in recipe according to style guideKeith Holman2014-06-091-15/+15
| | | | | | | | | | | | | | The bitbake recipe file for building Keystone is inconsistent with the use of tabs versus spaces. According to guidelines for the Yocto project (style guide), the tabs should be replaced with spaces in the case of indenting for lists. The style guide can be found at: https://wiki.yoctoproject.org/wiki/Recipe_&_Patch_Style_Guide This fix changes the Keystone recipe file to use spaces instead of tabs in list of files and package dependencies. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* colorama: python package for terminal coloursKeith Holman2014-06-091-0/+26
| | | | | | | | | Colorama is a python interface for sending ASCII terminal codes to facilitate setting cursor locations and outputting color to terminal windows. This change provides a recipe for obtaining the colorama package. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* termcolor: added recipe and dependencyKeith Holman2014-06-091-0/+26
| | | | | | | | Some packages require the termcolor package, which is used to generate colour output on terminal screens. This change provides a recipe for installing the termcolor package. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* horizon: add full path to test directoriesKeith Holman2014-06-043-66/+41
| | | | | | | | | | | | | | The tests included Horizon expect all files to be in a single location in order to be run directly from the source tree. The recipe for installing Horizon on the system installs Horizon as a python site-package and puts files in different locations depending on the file type. In order to have the tests support this type of install we need to explicitly indicate the full path of the test files to exclude in order to have the tests run successfully. This fix adds the absolute path to the test locations allows the Horizon tests to pass as expected. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* nose-exclude: add plugin for nose to exclude directoriesKeith Holman2014-06-042-0/+32
| | | | | | | | | | | Nose is a package to support unit testing of python source code. Node-exclude is a plugin extending Nose to specify directories to exclude from testing via the command line. Some packages require this plugin to be installed in order to run all the tests successfully. This fix creates recipe to install the node-exclude plugin on the target system. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* django-nose: add recipe and dependencies for testingKeith Holman2014-06-042-0/+33
| | | | | | | | | | Horizon provides unit tests for testing its deployment in target environment. These tests make use of django-nose testing framework. This provides a recipe for building django-nose and adds a dependency from Horizon on this recipe. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* horizon: patch test script to run without coverageKeith Holman2014-06-042-0/+66
| | | | | | | | | | | Currently, the run_tests.sh script provided by the horizon package requires the command "coverage" to be available even if the "-c" option (test with code coverage) is not specified on the command line. This fix patches the test script to remove the calls to the "coverage" tool and calls the test script directly if the "-c" option is not provided. Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
* cephclient: add main library/client ReST APIsBruce Ashfield2014-06-041-0/+30
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cephclient: add supporting library python-lxmlBruce Ashfield2014-06-041-0/+29
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cephclient: add supporting library python-html5libBruce Ashfield2014-06-041-0/+27
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cephclient: add supporting library python-cssselectBruce Ashfield2014-06-041-0/+27
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* barbicanclient: update github repositoryBruce Ashfield2014-06-021-1/+1
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* barbican: update repository to githubBruce Ashfield2014-06-021-1/+1
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* ceilometer: need to start ceilometer agent notificationVu Tran2014-05-301-2/+12
| | | | | | | | | There are some missing ceilometer meters (e.g. vcpu) which have origin from notification. This is due to ceilometer-agent-notification service is not started on controller node. Signed-off-by: Vu Tran <vu.tran@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* keystone add user for tempestVu Tran2014-05-261-0/+16
| | | | | | | | | | | | To support tempest, modify keystone identity.sh script to: * add user with username=alt_demo, tenant=alt_demo, and password=password into keystone. * add user "admin" into tenant "demo". Signed-off-by: Vu Tran <vu.tran@windriver.com>
* Ruby/chef solo: fixesAmy Fong2014-05-248-7/+8
| | | | | | | | | | | Make ruby binaries more accessible by creating symlinks from ${libdir}/ruby/gems/${ruby version}/bin/ to /usr/bin RDEPENDS needs to be package specific coderay needs to depends on yard Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/yard_git.bbAmy Fong2014-05-241-0/+28
| | | | | | | | | | | YARD is a documentation generation tool for the Ruby programming language. It enables the user to generate consistent, usable documentation that can be exported to a number of formats very easily, and also supports extending for custom Ruby constructs such as custom class level definitions. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/yajl-ruby_git.bbAmy Fong2014-05-241-0/+25
| | | | | | | | This gem is a C binding to the excellent YAJL JSON parsing and generation library. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/systemu_git.bbAmy Fong2014-05-241-0/+25
| | | | | | | | Universal capture of stdout and stderr and handling of child process pid for windows, *nix, etc. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/slop_git.bbAmy Fong2014-05-241-0/+24
| | | | | | | A simple option parser with an simple syntax and API. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/rest-client_git.bbAmy Fong2014-05-241-0/+30
| | | | | | | | | A simple HTTP and REST client for Ruby, inspired by the Sinatra's microframework style of specifying actions: get, put, post, delete. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/rack_git.bbAmy Fong2014-05-241-0/+28
| | | | | | | | | | | Provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses in the simplest way possible, it unifies and distills the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/pry_git.bbAmy Fong2014-05-242-0/+102
| | | | | | | | | Pry is a powerful alternative to the standard IRB shell for Ruby. It is written from scratch to provide a number of advanced features. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/ohai_git.bbAmy Fong2014-05-241-0/+39
| | | | | | | | | | | Ohai detects data about your operating system. It can be used standalone, but it's primary purpose is to provide node data to Chef. Ohai will print out a JSON data blob for all the known data about your system. When used with Chef, that data is reported back via node attributes. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/net-ssh_git.bbAmy Fong2014-05-242-0/+59
| | | | | | | | | Net::SSH is a pure-Ruby implementation of the SSH2 client protocol. It allows you to write programs that invoke and interact with processes on remote servers, via SSH2. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/net-ssh-multi_git.bbAmy Fong2014-05-242-0/+66
| | | | | | | | | | | A library for controlling multiple Net::SSH connections via a single interface. It exposes an API similar to that of Net::SSH::Connection::Session and Net::SSH::Connection::Channel, making it simpler to adapt programs designed for single connections to be used with multiple connections. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Ruby/chef solo: Add recipes-devtools/ruby/net-ssh-gateway_git.bbAmy Fong2014-05-242-0/+65
| | | | | | | | | | | A library for programmatically tunnelling connections to servers via a single "gateway" host. It is useful for establishing Net::SSH connections to servers behind firewalls, but can also be used to forward ports and establish connections of other types, like HTTP, to servers with restricted access. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Amy Fong <amy.fong@windriver.com>