Commit Graph

51 Commits

Author SHA1 Message Date
Andreas Jaeger 0cc8ef23ef 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: I4826eed959974ba95b6f25d9ca8c6dd98f4c8a1c
2019-12-18 09:51:03 +01:00
Dennis Mathew Philip 2ebcc34a40 Fixes a code typo in gulpfile
gulpfile had a typo where selenium driver option was misspelled
as `dirvers` instead of `drivers`

Change-Id: Ice1a7e6ad4634f134002150139d00f04f4f317e8
2017-03-15 10:54:31 -07:00
ekhomyakova e4e95c4595 Adapt plugin-tests to run on real nailgun
Change-Id: I2e97be848f0acbeac919564d60a649d486dde0a4
2017-01-12 15:18:32 +04:00
Julia Aranovich 969a74a0e7 Fix JUnit reporter for Intern
Its setup should not depend on FAIL_FAST env variable,
which is responsible for stopping of tests only.

Also, xml file should be saved in the same location as other artifacts
like screenshots.

Change-Id: I18c6ec64906aa5b8dea39a0a837389875ddd6b3e
2016-11-10 08:49:03 +00:00
Grigory Mikhailov b59f14e7e0 Nightly ui functional tests update.
1. Generating xml file output for parcing results into Test rail.
2. Add "FAIL_FAST" variable to aviod test run stopping at the middle of execution.

Change-Id: Ia566f86262abc2bbf2e449c52d2a3e8b76329610
2016-11-09 13:25:50 +03:00
Julia Aranovich dc54e2ec96 Fix consistent-return warnings
Closes-Bug: #1626059

Change-Id: I442f70e7550be4fdd8549095b01f2762fd8bb841
2016-09-21 15:15:10 +03:00
Vitaly Kramskikh 1184ed7896 Fix UI functional tests in Firefox 47+
Firefox since version 47 requires use of Marionette driver
to work with Selenium. Updated selenium-standalone downloads
and utilizes this driver by default.

Change-Id: I9659cee48491f4de9484c23fb9a4f59f69797d29
2016-08-10 13:22:17 +03:00
Kate Pimenova aed713873c Gulp tasks replaced with npm scripts
* Replaced linspaces with lintspaces-cli 0.3.0
* Removed gulp-lintspaces and gulp-eslint

Change-Id: I6e1388f06766f916dd5b03d9a33712cf6999f5c5
2016-06-15 18:13:44 +03:00
Nikolay Bogdanov 46ad75a6cb Add gulp help task that prints available parameters
Change-Id: I1ee2a60bd6e02f77b00597f4b85bc1937d31621d
2016-06-07 15:27:25 +00:00
Nikolay Bogdanov 2ea95b7e22 Add ostf fake server responses to dev server
OSTF server responses emulation added to dev server. It is disabled
by default and --fake-ostf key should be passed to gulp in order to
enable it. Default testset will be for finished state, use --running
additional key to show one for in progress.

Change-Id: I15ff0959c4093b55a217bef3d4cad9f3a429d580
2016-06-02 09:35:05 +03:00
Julia Aranovich ebb7c12015 Replace usages of _.pluck by _.map
In order to make possible an upgrade of Lodash package
to the latest 4.x version, usages of _.pluck should be replaced by _.map.
_.pluck is deprecated in the 4.x Lodash.

Change-Id: I080ff817049d69f4cd4365c42f5a171da74125aa
2016-05-04 18:16:46 +03:00
Vitaly Kramskikh 6c116ee494 Transpile UI func tests once
It makes no sense to transpile tests for every test suite,
so this commit makes transpilation run only once, after UI
build. Also, --no-ui-compression falg renamed to
--no-ui-build - build process now is obligatory and it's not
just a compressions, but a bunch of more complex processes.

Change-Id: If184038c832585396c630d3359c6f4309f3d8eba
2016-04-18 15:18:05 +03:00
Vitaly Kramskikh 0c4900946f Use ES6 modules for Intern tests
Intern uses AMD notation for its tests, so there is need
to specify Babel Simple AMD plugin for proper transformation.
It cannot properly generate AMD modules with exports,
so Intern config now has to be constructed manually.

Change-Id: I55d881acc8cb8a72ca401f5fdf6a47455e41b12e
2016-04-15 20:03:21 +03:00
Vitaly Kramskikh 34f6d9b52d Transpile Intern tests before executing them
Before using Babel 6 there was no way to use ES6 for Intern-based
functional tests, as Intern requires AMD modules. Since Babel 6 allows
to choose module format by adding proper module transformation plugin,
we can start using ES6 for the tests. This commit just adds
transpiling, without actually converting the code to use ES6 syntax.

Change-Id: Iddf0622f5759faead45cb530e05954a29ffebb01
2016-04-14 13:55:15 +00:00
Vitaly Kramskikh b06ce77f7f Update JS dependencies
* Babel to latest 6.x
* React to latest 15.x
* LoDash to latest 3.x version
* selenium-standalone to 5.1.0
* gulp to 3.9.1
* js-cookie to 2.1.0
* karma-webdriver-launcher to 1.0.4
* added whatwg-fetch polyfill
* switched to backbone.routerfilter from NPM

Change-Id: I9517f89c24a053ecf137f27ed297aaa578efb012
2016-04-14 14:01:31 +03:00
Vitaly Kramskikh 6675e10b9e Update allowed licenses list
Change-Id: Ib1da32c9dd2ca782d7bbf497720d768798bb9494
2016-03-17 19:06:16 +03:00
Vitaly Kramskikh 0417c4ffc1 Use Selenium 2.52.0 for UI functional tests
Selenium 2.45 doesn't support Firefox 43+

Closes-Bug: #1543035

Change-Id: Ic9e6fcc4093d2959e6f74f9315fd38d4af133f55
2016-02-24 15:08:10 +07:00
Julia Aranovich a6edf11ac1 Force eqeqeq eslint rule for Fuel UI code
Implements: blueprint converge-to-eslint-config-openstack

Change-Id: I65a93964192170e3c83c8415ff137dec4ba6d816
2016-01-27 15:47:44 +03:00
Alexandra Morozova fbdc1ccf1f Forcing eslint max-len rule
Implements: blueprint converge-to-eslint-config-openstack

Change-Id: I35e6abb96c4912608222cd85617764172858d191
2016-01-25 20:06:45 +03:00
Vitaly Kramskikh f97a7e3883 Enable 'no-sync' eslint rule
Change-Id: I39baf9b4c06da7f565273d034384b77c1196627b
Implements: blueprint converge-to-eslint-config-openstack
2016-01-21 22:55:25 +03:00
Vitaly Kramskikh faa6d71c09 Enable linting for node.js files and split .eslintrc
This commit enables linting for node.js files (gulpfile and
helpers, webpack and karma configs) and also splits .eslintrc
into 2 files. This is needed because our node.js files don't
support ES6 syntax, so nailgun/.eslintrc now contains common
linting rules and nailgun/static/.eslintrc contains JSX
and ES6-specific rules.

Implements: blueprint converge-to-eslint-config-openstack

Change-Id: I1956f2022475b39724dfb49f98bdc8e6e5d898e9
2016-01-17 18:01:55 +03:00
Vitaly Kramskikh c45545695b Use 2 spaces instead of 4 for indentation of JS code
Implements: blueprint converge-to-eslint-config-openstack

Change-Id: I91c258706dea064d25e78efd39a9df2d4d4de3ed
2016-01-15 20:40:27 +03:00
Vitaly Kramskikh 7419625bbe Completely separate UI func and unit tests
We're no longer using Intern for unit-testing, so we need to move
all intern-related files to a separate directory
(tests/functional). It's needed to setup eslint properly - unit
and functional tests are run in a different environments (node
and browsers) and require different configuration.

Change-Id: I9b938faed5a2b280645a022e47cc12958fd1ddfd
2016-01-10 17:49:26 +03:00
Vitaly Kramskikh 0f013ad3aa 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 d6a327c60c UI functional test runner improvements
- Made selenium version controllable via env variable
- Made browser controllable via env variable
- Updated default Chrome driver version
- Increased some timeouts
- Made some check more bulletproof

Change-Id: I11cd0c8b32d0b22d6cd08b476b33e248217e8b7c
2015-12-16 17:36:09 +03:00
Vitaly Kramskikh a4fd93bc75 Make sourcemaps work with uglification
Change-Id: Ie0a7f79a90c43291dcd84d7d202e3099b0411962
Related-Bug: #1517028
2015-12-07 23:27:54 +03:00
Vitaly Kramskikh d9334bbded 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
Vitaly Kramskikh 4c8e87d2ad Add 'gulp license' task for checking dependencies licences
Change-Id: Icd3f4f49068c114b502081274832c43a89ebb316
2015-11-23 12:21:33 +00:00
Vitaly Kramskikh 5de7dfca10 Improve webpack integration
- added gulp build --watch
- updated documentation
- bundle is now loaded after DOMContentLoaded event

Related to blueprint webpack

Change-Id: I04c341987002687efd6713c5296b23e491aacd6f
2015-11-09 12:23:42 +00:00
Vitaly Kramskikh a7e7f05e12 Remove JSCS
ESLint evolved and become mature enough to completely replace
JSCS. This commit translates JSCS rules into ESLint ones and
fixes the code accordingly.

Also, ESLint config converted to YAML for readability

Change-Id: I2bea5b48284c68ecacd3ec3ac67c5852345f29e3
2015-11-09 17:59:30 +07:00
Vitaly Kramskikh a32537e1fa Rename .jsx files to .js
Since we use Babel to transform JSX and Webpack for bundling,
ti doesn't make sense anymore to keep a separate .jsx extension
for files.

Change-Id: If70b512d7a27684d2b9b84b24f19658294cc1505
2015-11-08 19:09:41 +07:00
Vitaly Kramskikh ac33818194 Replace require.js loader/r.js builder with webpack
Webpack is much more powerful than r.js and opens path
to further improvements in testing, build speed,
developer convenience, ES2015, etc.

Implements blueprint webpack

Change-Id: I18a3b74db243f29e5dacb004569d66463f4ab16d
2015-11-02 16:59:42 +07:00
Vitaly Kramskikh ff70616c82 Remove casperjs and phantomjs from dependencies
Casperjs is not used anymore; phantomjs won't be used by
default and 100% optional, but supported: it is still possible
to run

  gulp unit-tests --browser phantomjs

but globally installed phantomjs will be used

Related to blueprint webpack

Change-Id: I9761cd7dcc4c5ff07f737cabbe4c46f6741ae408
2015-10-04 20:49:33 +07:00
Vitaly Kramskikh 2e82b1933f Remove bower
All JS dependencies management moved to NPM

Change-Id: I444b9d06477737cc1e8c19fea202cfb1d693b658
2015-09-22 11:34:27 +00:00
Vitaly Kramskikh 8472ede548 Don't add sinon to static/vendor
Doing this slows down build process. Sinon should go to
static/tests. Also don't include tests in build process.

Closes-Bug: #1486096

Change-Id: I696fa4e219bcb23e3fddf59d3e1ac4f10e7c925f
2015-08-18 18:24:42 +03:00
Vitaly Kramskikh 4c07aa9e6a Move to ESLint from JSHint
Rules with "1" value generate warnings and are going to be fixed
in the next commit by fixing the code.

Rules with "0" value represent validation rules which I'd really
like to have, but they require large amount of fixes.

Closes-Bug: #1469127

Change-Id: Ie8c10c5d16627c008c9ce5760396226381116a43
2015-08-05 22:35:25 +03:00
Vitaly Kramskikh 4d7f925cc5 Draw loading UI before loading JS files
Change-Id: I8fc06c605d7e565d56a30828b8ed706118cad27e
Closes-Bug: #1477655
2015-07-23 23:42:51 +03:00
Vitaly Kramskikh 68055e3123 Treat JSHint warnings as errors
Change-Id: I0d66861786b2369899647e39154cb3215c8c5a2d
2015-07-17 21:46:24 +03:00
Nick Bogdanov 9a23663c74 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 3910016172 Update lodash-node to 3.9.3
To match bower-managed lodash version

Change-Id: If1a5ed9752d0ccc014b76c499fd546f0081eaaaf
2015-06-17 17:09:15 +03:00
Vitaly Kramskikh 23969b8bb1 JSCS Autofixing
Run via `gulp jscs:fix`

Also change disallowMultipleSpaces to allow multiple spaces
before one-line comments

Change-Id: Ic99566d9fcd9b321407cfbacc41eaaa2c8dcefbc
2015-06-08 17:50:40 +03:00
Vitaly Kramskikh 81d56c1e07 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
Vitaly Kramskikh c0d4207402 Rearrange static dir layout
- moved everything from js dir to the top
- renamed static/libs to static/vendor
- renamed static/css to static/styles; styles.less to main.less
- removed obsolete entries from config.js

Change-Id: Ic20c0604f844d80092f65a7be7be4710e1a50928
2015-06-03 13:58:43 +02:00
Vitaly Kramskikh 28b32874ab Twitter Bootstrap 3 Markup
Change-Id: Ib7d4f90355af5d53618ae56f7fdce858d44bfcef
2015-06-03 13:58:43 +02:00
Vitaly Kramskikh 60b4687f6e Generate source maps for JS bundle
This will simplify debugging of compressed UI version

Change-Id: Id408a24efbe7e436c281cf87bed446cee7567d78
2015-04-17 01:50:07 +03:00
Vitaly Kramskikh 7d4bfe917f Fix linting for style files
Change-Id: Ifa79f6ae9b3bdea464c189b68c55560d9f1fa49a
2015-04-06 16:57:43 +03:00
Vitaly Kramskikh bdad993607 Rename cache bust argument to __CACHE_BUST__
Since migration to Gulp, commit SHA is not used to bust cache.
Instead we use current date. So we need to rename argument name
accordingly to avoid confusion.

Change-Id: I33b31d69231fefff9f455d2dbbeca0230ca8dccc
2015-04-03 17:01:00 +03:00
Vitaly Kramskikh bebb1d72ef Separate bower fetch and copy-main tasks
So copy-main task can be called separately (for packaging)

Change-Id: Icf45922d3f0dd14e9e65bd35212dbdea06f2c20a
2015-03-30 10:47:51 +00:00
Vitaly Kramskikh 1e268419cf Set disallowMultipleSpaces to true in JSCS config
Change-Id: Icb1e3f421f209b2d60ccb420e1a4afc0c3d01be9
2015-03-29 18:38:36 +03:00
Vitaly Kramskikh e7534c57dc Fix lost icon for VMWare tab
Fixed by putting all the plugin files into build. Probably later
we need to develop coventions for plugin layout to avoid putting
unneeded files to the build result.

Change-Id: I006aefed5406871cb93070e11d24553839f1c525
Closes-Bug: #1436828
2015-03-27 15:29:57 +03:00