Commit Graph

85 Commits

Author SHA1 Message Date
Andreas Jaeger e61cc055ab Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I10917e42829b459c41ca46514faa72fc46abf7be
2019-12-18 09:52:23 +01:00
Vitaly Kramskikh f49add8cba Move UI-related testing logic to a separate file
Implements: blueprint separate-fuel-ui-repo

Change-Id: I509b336785f39066f5673f17af3c97b61e7f3be2
2016-02-25 10:53:19 +00:00
Julia Aranovich 1e0f917d49 Functional tests for plugin UI
Change-Id: I1392d126352485f5e8f9867f0f1aa442d9e11b00
2016-01-12 13:46:53 +03:00
Vitaly Kramskikh 7e3efeb6ee Use sinon for mocking server response in UI func tests for logs
Closes-Bug: #1519752

Change-Id: I62859dca7fa5c138b012d4c5fd4e184c941fb992
2016-01-02 17:25:04 +03:00
Vitaly Kramskikh ab221c059c Store nailgun log in artifacts dir in case of test failure
Currently logs are just sent to stdout, which make debugging
much more difficult

Change-Id: I40a7e5231f93325c23732f55f848ca4cd23fc908
2015-12-30 14:06:55 +03:00
Vitaly Kramskikh de45f07949 Create new nailgun log file for each functional UI test
Change-Id: I4727de74574713f6c7212551cd29167e86d18199
2015-12-22 16:29:32 +03:00
Vitaly Kramskikh b9d8e10a2e Show nailgun log on UI tests fail
This will allow us to debug cryptic errors with tasks hanging

Change-Id: I5da4e1652b7d034055d49442203077058355369a
2015-12-22 12:18:49 +03:00
Alexander Kislitsky 30f0f8007b Tox python env changed to py27 in run_tests.sh
After moving to the CentOS 7 we have no python26 env.

Change-Id: Ia9ad4438ebfd2f6c6cdc1aaebae4f52f96a333c7
Closes-Bug: #1523397
2015-12-09 17:36:20 +03:00
Jenkins a6cb29eb45 Merge "Remove fuel_package_updates module" 2015-12-08 16:27:02 +00:00
Vitaly Kramskikh f4ee02ad50 Enable uglification by default
Also add new options to disable uglification and source maps
generation

Change-Id: I4c458abbf8bff9b9783c0cf0b46b45a96803101f
Partial-Bug: #1517028
2015-12-07 16:07:06 +00:00
Vladimir Kozhukalov fbd8538e3d Remove fuel_package_updates module
This functionality is going to be covered by packetary
https://github.com/openstack/fuel-mirror/tree/master/packetary
which implements low level logic for manipulating of
rpm/deb packages and repositories. Packetary can be used
both for creating partial and full mirrors of upstream and MOS
repos.

Change-Id: I8f4ccc71a27a486e6b0042eed6ce2ca8098deb48
DocImpact
Closes-Bug: #1517552
2015-12-07 17:34:33 +03:00
Vitaly Kramskikh 503ea42021 Add npm scripts to comply with Javascript CTI
More info: https://github.com/openstack/governance/blob/master/reference/cti/javascript-cti.rst

Change-Id: I0050d71328c2265a0256c93a2faf47ec5f9b42b0
2015-11-21 21:34:51 +07:00
Vladimir Kozhukalov 10b14a719d Deprecate fuel_upgrade_system/fuel_upgrade directory
Change-Id: I822c25d5b98d0b09d5a4baee3a3cf48c620b9033
Related-Bug: #1475219
2015-10-30 12:45:06 +03:00
Vladimir Kozhukalov ff842dd813 Deprecate network_checker directory
Change-Id: I549f6c177a4e1fd459666410954accea9c30ae3c
Related-Bug: #1506896
2015-10-30 11:58:07 +03:00
Vladimir Kozhukalov 65b07097b2 Deprecate shotgun directory
Change-Id: Ib1260df78a45e9cc8bf6bdfd9627508ce50ae812
Related-Bug: #1506894
2015-10-27 13:09:34 +03:00
Vladimir Kozhukalov 3119b6f5bc Deprecate fuelmenu directory
Change-Id: Ia6affb462ada7b09e531e9cd096a2e109ac51a9a
Related-Bug: #1506885
2015-10-23 18:35:30 +03:00
Jenkins 3349e21db0 Merge "Right exit code when running only selected tests" 2015-09-28 10:42:32 +00:00
Jenkins 4bf4cc8c59 Merge "Remove bower" 2015-09-22 12:56:27 +00:00
Vitaly Kramskikh e75713b7e1 Remove bower
All JS dependencies management moved to NPM

Change-Id: I444b9d06477737cc1e8c19fea202cfb1d693b658
2015-09-22 11:34:27 +00:00
Roman Podoliaka d57dd02c88 tests: allow to specify venvs via $TOXENV
Previously, run_tests.sh was hardcoded to run fuel-web tests on py26.
Allow to pass the correct env list via $TOXENV environment variable.
Default to "py26" for backwards compatibility.

Needed to run py27 jobs on CI.

Change-Id: I3cfe5622bd0338f9a9a41ec6b6f6ac2d3c522009
2015-09-22 08:38:39 +00:00
Sebastian Kalinowski 7e8b35076f Right exit code when running only selected tests
Many "echos" were hiding exit code returned by tox

Change-Id: I0e7ed985f61d19cd528544116f5d6bf8048b3c77
Closes-Bug: #1439057
2015-09-22 07:36:50 +00:00
Vitaly Kramskikh bfb58650e2 [Intern] New --no-nailgun-start option for run_tests.sh
This option allows to skip starting of nailgun which could speed
up debugging UI functional tests

Change-Id: I935e5b871e16c5de0306e38a6789b8d99347b9d2
2015-09-21 12:42:49 +00:00
Nick Bogdanov 4087edc05a [Intern] Casper tests replaced with Intern
Intern-based test suites are quite complete and stable and
should be used instead of outdated CasperJS-based suites.

Related to blueprint ui-functional-tests-with-intern
Partial-Bug: #1495536

Change-Id: I7272eb81fa54d914915ef45a0be777afa4b9d793
2015-09-15 23:21:30 +03:00
Vitaly Kramskikh ee1cee60cb [Intern] Custom registerSuite which allows to add helpers
Using this function it is possible to add helper methods
from helpers.js to this.remote

Change-Id: I6e4e92073e751691fce296822f0f7cfedd5f1fbe
2015-09-03 15:25:53 -05:00
Vitaly Kramskikh 01dcc5f25b Add --no-ui-compression key for run_tests.sh
Can be used to skip UI compression to speed up tests development

Also fixed a bug with swallowing `gulp build` error

Change-Id: I914771bda53017e052a8432ac0180d9c91fb145b
2015-08-19 13:27:58 +03:00
Evgeniy L c260a23091 Migrations for extensions should not depend on Core's db schema
There should be a way to use and test extensions when
there is no core database schema.

* perform data migration from the core only when there
  is buffer table
* add basic tests which are run separately from core's
  tests

Change-Id: Ide0d2e619913675ff4fff3febc9707bec3bfb112
Closes-bug: #1477020
2015-07-23 16:50:49 +03:00
Vladimir Kozhukalov 53801c201b Removed tasklib directory
Looks like we don't need it any more.
Besides there is a separate repository
https://github.com/stackforge/fuel-tasklib

Change-Id: I25b7f6d4ab9d6e3ff1d77d262913f4697557528e
2015-07-17 18:17:47 +03:00
Vladimir Kozhukalov ea8a7f94dd Removed fuel_agent and fuel_agent_ci
We've removed fuel_agent into a separate repository,
so we don't need this directory here any more.

Closes-Bug: #1471849
Change-Id: I165259020721a4f6a87dce3a419bfdf64a5d0fcb
2015-07-16 12:42:43 +03:00
Nick Bogdanov 3577169e20 Intern-based functional tests
This commit makes it possible to execute UI
functional tests either based on Casper or on Intern/Selenium

Change-Id: I21d342093f142a1bbe7b8ae4f2c96fad1c125a0b
2015-07-13 12:36:00 +00:00
Vitaly Kramskikh 54edb12673 Intern-based unit tests
This commit adds unit-tests runner for UI and 1 test suite for
the expression parser. It also makes --webui flag for run_tests.sh
run all the UI tests: lint checks, unit tests, functional tests.

Change-Id: I6176dc01cdd6d2bcf7a99185e92cc498c7b2b899
2015-06-08 13:27:31 +00:00
Przemyslaw Kaminski 6093c35e34 Remove deprecated fuel_development
It was replaced by fuel-dev-tools

Change-Id: I9dc53d0d14fdef70412ee43535ca8c681a6cc93c
2015-05-07 14:05:25 +02:00
Roman Prykhodchenko 9d7e7247e4 Refactored run_server script
Used the updated version of run_server script
from python-fuelclient.

Closes-bug: #1446211
Change-Id: I2c8538fa6e3854f2c33434a1b08d366121cc55b1
2015-04-30 11:56:20 +02:00
Matthew Mosesohn df1cfd821a Add fuel_package_updates package
New utility packages from a specified repo and
optionally configures it for a specified
Fuel environment.

Added fuel_package_updates to flake8 tests

blueprint package-fuel-components

Change-Id: I2d6d1f0d3823fe53b995d710ebce190ac1dab0b5
2015-04-13 10:29:00 +02:00
Jenkins eeaf378c7d Merge "Remove fuel_update_downloader from the repository" 2015-04-02 16:36:19 +00:00
Vitaly Kramskikh 5b62abc258 Replace Grunt with Gulp
Also bump some libraries to the latest versions

Implements blueprint move-to-gulp
Related to blueprint ui-plugins

Change-Id: Iffcd5c2371a01969746ce4d18a88181246d674fd
2015-03-23 13:47:55 +03:00
Vitaly Kramskikh 51974b50c3 Bump CasperJS to 1.1-beta3 and simplify installation process
Now casperjs is managed by npm. Nothing seems to be broken.

Change-Id: I16684cd44376dfdaf4c683cdf2c93e1ff4903c3c
2015-03-20 19:33:36 +00:00
Evgeniy L b33726998e Remove fuel_update_downloader from the repository
The development started a year ago, since then
there are no updates of plans. The code is not
finished and outdated, hence it's just removing
of unused code.

Change-Id: I385d12f6161a03b43ab820821141f07e6b1365b9
Related-bug: #1434106
2015-03-19 17:16:06 +03:00
Roman Prykhodchenko df66a77faa Delete fuelclient from fuel-web repo
After python-fuelclient was moved to its own
repository the fuelclient folder can be deleted
from fuel-web.

New python-fuelclient's repository can be found here:
https://github.com/stackforge/python-fuelclient

Blueprint: re-thinking-fuel-client
Change-Id: Ic579bfdaacbafefc4050a6ec489888ced33d1b37
2015-01-24 08:38:25 +01:00
Julia Varigina 30e4d4e655 Added an option to run Nailgun performance test
A new option -x added

run_tests.sh [-x | --performance]
             - run nailgun performance tests

If -x option is not specified, run_test.sh will not run
performance tests. For this reason no matching -X option was added.

Option -n | -N works exactly as before: run | do not run
Nailgun non-performance tests.

Examples of usage:
run_tests.sh -n -x - run both regular and performance nailgun tests.
run_tests.sh -x    - run nailgun performance tests only, do not run
                     regular nailgun tests
run_tests.sh -n    - run regular nailgun tests only
run_tests.sh -N    - run all tests except for nailgun regular and
                     performance tests

DocImpact
Change-Id: Id155e722da88549499641f5b924f35bfab3ab137
Closes-Bug: #1394196
2015-01-22 08:56:06 -08:00
Julia Varigina c3df5c2b52 Print descriptive error message if test file does not exist
Added verification that test file or directory exists for the command:
run_tests.sh -t <test file>

If a test file (or directory) does not exist, run_tests.sh prints error message:
ERROR: File or directory <test file> not found
and exits with status 1

Change-Id: Ia0b11efe434daf7f040943ea8622bad496074563
Closes-Bug: #1397916
2014-12-12 04:27:15 -08:00
Jenkins d1959af377 Merge "run_tests.sh option fixes" 2014-12-11 10:37:46 +00:00
Roman Prykhodchenko 87db70a4b9 Allow specifying maximum wait-time for Nailgun
Some tests require Nailgun to be running. For that a server is
started and is waited for 5 seconds. For some systems Nailgun
requires more time to get up and running.

This patch allows users to specify maximum time of waiting Nailgun
to start by setting NAILGUN_START_WAIT_TIME environment variable which
defaults to 5 seconds. Introduced hooks stop tests if Nailgun failed to
start before maximum wait-time passes.

DocImpact
Closes-bug: 1393566
Change-Id: I39d4b312510c34c190ad680c48f1e5792858b140
2014-12-03 22:06:53 +01:00
Dima Shulyak 09089099c3 Add option to flush database before/after tests
We need to flush database after running tests.
Before py.test with parallel tests was introduced
dropdb was performed by ./run_tests.sh, but currently
we need to run dropdb for each slave

- Added py.test --cleandb
- Connection should be closed and returned to pool,
  and pool should be recreated, because we are reusing
  same engine after db cleanup is done
- We should not reuse metadata used for models declaration,
  it gets populated by stale db information

DocImpact
Closes-Bug: 1396500
Change-Id: Idc2d4d6395b8b5f30dc7f5e72a80b830808d2b75
2014-11-26 11:33:58 +02:00
Przemyslaw Kaminski b6331ee97f run_tests.sh option fixes
* Options sorted alphabetically to find them more easily.
* Duplicated -l option changed to -k for tasklib tests.

Change-Id: I75056a593ee46f302c9916cc1201131965c1f657
2014-11-24 16:53:44 +01:00
Dima Shulyak 6b01a6c7d2 Parallel test execution with py.test
Patch adds ability to execute test run distributed over
several processes, each one with isolated database.

Assumptions:
- nailgun user, requires createdb permission, if not please precreate
  databases in format described below
- postgres database will be used for initial connection
- for environment where createdb can not be granted, like ci
  operator need to create several databases, nailgun[0-7],
  count of databases should be equal to TEST_WORKERS variable
- If no TEST_WORKERS provided - default database name will be used,
  it is almost every time nailgun, but you can overwrite it with
  TEST_NAILGUN_DB env variable

To execute tests on your local environment:
  py.test -n 4 nailgun/tests/

DocImpact
Partial-Bug: 1388751
Change-Id: I6037108f1888b61f971a10db5209b20712467173
2014-11-11 13:39:54 +00:00
Dima Shulyak 316b8854af Add cli commands to interact with plugins
- List all plugins installed
fuel plugins
fuel plugins --list

- Install plugin
fuel plugins --install /tmp/sample.pb
1. Extracts metadata from plugin tar
2. If plugin successfully registered in nailgun
3. Untar all the files in /var/www/nailgun/plugins

- If you want to update plugin when it is already installed
  add --force flag
fuel plugins --install /tmp/sample --force
The procedure is the same as for simple install, but
if plugin already registered - it will try to update
(send PUT request)

- Refactored tests to allow writing unit tests, with mock
  and all that goodness

related to blueprint cinder-neutron-plugins-in-fuel

Change-Id: I642a300abcb9c50ef5039a343064f2ac78e39cd8
2014-10-28 12:28:59 +02:00
Jenkins d9facd6a32 Merge "Tasklib implementation in python" 2014-10-15 12:44:35 +00:00
Dima Shulyak 4dd82c6be3 Tasklib implementation in python
Medium between configuration providers and fuel orchestration
solution.

check README.md and functional tests for better understanding
how it works

HOW TO RUN:
python setup.py develop

taskcmd -c tasklib/tests/functional/conf.yaml run puppet/sleep

taskcmd -c tasklib/tests/functional/conf.yaml run exec/fail

taskcmd -c tasklib/tests/functional/conf.yaml daemon exec/long
taskcmd -c tasklib/tests/functional/conf.yaml status exec/long

Related to blueprint granular-deployment-based-on-tasks

Change-Id: Ifed1a9b90042bbbc93215a30dfb34e29dbe8fba2
2014-10-15 09:51:15 +03:00
Alexandra Morozova 5284ca6f97 [React] [tests] Using JSHint instead of JSLint
- for using jsx in React js
- grunt-jsxhint task added

Related to blueprint backbone-to-react

Change-Id: Icab0dce882699a518bb4959847f0294c90558658
2014-09-10 22:43:05 +07:00
Alexander Kislitsky 2b5e5704bf Development environment on masternode
Help scripts for deploy develpment environment on masternode:
 - command line arguments handled
 - deploy/revert for nailgun project
 - requirements.txt installation into virtual env handled
 - common functons for execute commands in containers

Change-Id: I3c60708e01867cd8455f79b3c02cfd505118cad5
Closes-Bug: #1279303
2014-08-04 15:05:02 +04:00