summaryrefslogtreecommitdiff
path: root/tools/misc-sanity-checks.sh
Commit message (Collapse)AuthorAgeFilesLines
* Convert policy.json into policy-in-codeAkihiro Motoki2018-12-131-13/+0
| | | | | | | | | | | | | | | | | | | | | | This commit introduces a framework for policy-in-code support in the neutron stadium and converts the existing policy.json in the neutron repository into the policy-in-code style. NOTES: 1) This commit tries not to change the existing policy behavior provided by the neutron repository even if there are some stale policies or policies to be defined in a neutron-related project. They should be clean up later in Stein release. 2) 'default' policy should be dropped from the default policies as all default policies should be defined in the code (as many projects which already completed policy-in-code do). However, dropping 'default' policy potentially affects policy behavior in neutron-related projects, so it needs to be visit carefully. Considering this, this commit decides to keep the 'default' policy. Partially Implements: blueprint neutron-policy-in-code Change-Id: I6a61079da4d4f5080ee32d640144e6bdb14735fa
* Remove the bundled intree neutron tempest pluginChandan Kumar2017-11-221-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The plugin has been split into its own repository[1] in accordance with Queens Goal "Split Tempest Plugins into Separate Repos/Projects[2]". This patch removes the local copy as well as the setuptools entry point. We can also now remove the autodoc_tree_excludes pbr option since there's no more plugin to exclude and it defaults to [setup.py]. The patch leaves still in-tree base classes and constants in order to avoid breakage of projects depending on such code. In the future, we will deprecate those and gradually move affected subprojects to the new repo. List of affected repositories: - neutron-vpnaas - openstack-ansible-os_neutron - tripleo-quickstart-extras - networking-midonet - networking-l2gw - neutron-dynamic-routing - networking-vsphere - networking-plumgrid - networking-zvm [1] http://git.openstack.org/cgit/openstack/neutron-tempest-plugin [2] https://governance.openstack.org/tc/goals/queens/split-tempest-plugins.html Depends-On: I371aa4d5f043f695df04b98b0f485c8f0548f2b3 Change-Id: Ia21aad29d0bbf779583964db6f1665c9b3b83161
* Add bashate supportVictor Morales2017-02-251-2/+2
| | | | | | | | Bashate is a style checker program for bash scripts. This addition improves the quality of the current bash scripts and ensures that any future change will follow the same standards. Change-Id: Ia346f77632d4ac7beb288fa3aacea221d7969c87
* Add sanity check for idempotent id's in tempest testsMiguel Angel Ajo2016-06-081-0/+12
| | | | | | | | | | | | | | | | | Idempotent id's for tempest tests must be unique, as it's used to trace tests even in the event of refactors [1]. This patch adds a new check using check-uuid tool from tempest to validate id uniqueness. This adds a new test-only dependency to pull in tempest from PyPI to make pep8 tox target work. Also, the duplicate idempotent id's in our tests have been fixed. [1] http://docs.openstack.org/developer/tempest/HACKING.html#test-identification-with-idempotent-id Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com> Change-Id: Ie92e4576d9ce6c26f19bdd668426c71a62409e7a
* Add necessary executable permissionQiaowei Ren2016-02-151-0/+0
| | | | | | | Some files should be marked as executable, and this patch just 'chmod +x' to them. Change-Id: If2b7a9c703ae2fcfdcffedac0528437281bb23e5
* Remove check for bash usageMaru Newby2015-04-071-17/+0
| | | | | | | | | | | | | | | | | Arbitrarily restricting ourselves from using bash because developers on platforms like netbsd don't want to install bash from ports doesn't make sense. Any non-trivial shell script is likely to use features like arrays or string manipulation that are poorly supported (if at all) by sh, and the continued bumping of the number of expected bash scripts is an indication that the check is not serving its purpose anyway. Along with removing the check, all shebang references to /bin/bash have been replaced with /usr/bin/env bash in an attempt to be more compatible across different hosts. Change-Id: Ief72dc380cc88af38959c330897e2c127e33c332 Closes-Bug: #1440824
* Reorganize unit test treeMaru Newby2015-04-061-1/+1
| | | | | | | | | | | | | This change ensures that the structure of the unit test tree matches that of the code tree to make it obvious where to find tests for a given module. A check is added to the pep8 job to protect against regressions. The plugin test paths are relocated to neutron/tests/unit/plugins but are otherwise ignored for now. Change-Id: If307593259139171be21a71c58e3a34bf148cc7f Partial-Bug: #1440834
* tests: don't rely on configuration files outside tests directoryIhar Hrachyshka2015-03-301-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | etc/... may be non existent in some build environments. It's also pip does not install those files under site-packages neutron module, so paths relative to python files don't work. So instead of using relative paths to etc/... contents, maintain our own version of configuration files. It means we need to maintain tests only policy.json file too, in addition to neutron.conf.test and api-paste.ini.test. Ideally, we would make etc/policy.json copied under site-packages in addition to /etc/neutron/. In that way, we would not maintain a copy of policy.json file in two places. Though it seems that setuputils does not have a good way to install files under site-packages that would consider all the differences between python environments (specifically, different prefixes used in different systems). Note: it's not *absolutely* needed to update the test policy.json file on each next policy update, though it will be needed in cases when we want to test policy changes in unit tests. So adding a check to make sure files are identical. This partially reverts commit 1404f33b50452d4c0e0ef8c748011ce80303c2fd. Conflicts: neutron/policy.py Related-Bug: #1433146 Change-Id: If1f5ebd981cf06558d5102524211799676068889
* Add script to copy neutron api tests from tempestMaru Newby2015-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This change adds a script to automate the copying of api tests from tempest in the style of oslo_incubator. The target path will be neutron/tests/tempest and no manual modifications should be made to this path until such time as neutron api test development is frozen in tempest and development can proceed in the neutron tree. Until that occurs, a policy of manual once-daily synchronization is suggested. The target path includes the name 'tempest' as a clear indication that this is not part of neutron, and that once development is allowed to proceed, its contents should be rewritten and removed until there is nothing left. So long as the tests exist in both the tempest and neutron trees, testing effort will be duplicated. The larger goal is to have the tests in question removed from tempest as per the qa guidelines [1], so this should be temporary. 1: https://wiki.openstack.org/wiki/QA/Tempest-test-removal Change-Id: I3cd55983e610a1d61aae565f88fe5017edba1090
* Merge "Automate host configuration for functional testing"Jenkins2015-02-161-1/+1
|\
| * Automate host configuration for functional testingMaru Newby2015-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a new script, configure_for_func_testing.sh, that automates configuration of a host to support functional testing. The script's functionality is consumed by a refactored version of gate_hook.sh, and both minimizes runtime and removes the previous dependency on the devstack-gate repo. Additionally, the dsvm-functional tox env is no longer dependent on devstack to deploy neutron's rootwrap configuration system-wide. Rootwrap configuration is now deployed to the target tox venv on each tox invocation. Change-Id: Iaf43be458bdf3c4535f95ee5a3a3b47a744020a0
* | Fix typo in bash toolJoe Gordon2015-02-131-1/+1
|/ | | | | | | | Testing out I638ac2d35c33eef02e2c6872ea3bd4a3d644da58 So grenade,tempest,and rally should not run on this patch. Change-Id: I3bdd9be8a6b2a23cdea527686e7ccc61d041f773
* Add abandon script from novaKyle Mestery2015-01-271-1/+1
| | | | | | | | | This adds the abandon_old_reviews.sh from the nova repository into Neutron. This is handy for cleaning up the neutron review queues by abandoning stale reviews stuck in the queue with a helpful message. Change-Id: I8920123217cb134c792dee35a5b06abde31be1d4
* misc-sanity-checks.sh: Some cleanupsYAMAMOTO Takashi2015-01-141-8/+10
| | | | | | | | | | | | | | | | Some cleanups for commit 4fdda65a5b9f379af997e1e971865ccfa7a93156. - Don't assume the path of mktemp command. It's /usr/bin/mktemp for some platforms. eg. NetBSD. Also, always provide a template as it's necessary for some platforms, eg. OS X. This snippet was taken from the example in NetBSD's mktemp(1). - Move a comment to the appropriate place. - Improve a regex to ignore more comments. - As the pattern for find -path is not a regex, no escape is necessary for period. Closes-Bug: #1405584 Change-Id: Ia8358f0f7ebe9bc445ce5aa3c4f340546f37db05
* Clean-up sanity checks done via shell scriptsarmando-migliaccio2014-12-231-0/+71
Move the various checks done via shell into a single file; this is cleaner and we'll have a lot more space to explain what is going on. Related-bug: #1404605 Change-Id: Ibb451c6a25217f37b73983c30891f55b35f143cd