commit | 583234ddbcb4ef5f6aca0a589b0e43a84f0129fd | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Thu Apr 20 14:33:04 2017 -0700 |
committer | Matteo Scandolo <teo@onlab.us> | Fri May 12 15:55:47 2017 -0700 |
tree | 3e2a24b1df833da4c60ad3a10abda5486e381e48 | |
parent | a338531beb36751719f90d15a44b4ac4be8b0f33 [diff] |
[CORD-1133] E2E GUI Tests Change-Id: I521d0cc068a3e328f3d4f421ba4b342bea167e19 (cherry picked from commit d3b57a10471fcaf579707d636c0dbeb9328bae33)
Experimental Feature
This UI is currently hidden behind a flag and at the current state it is guaranteed as working only from the frontend
config.
opencord
using repo
repo init -u https://gerrit.opencord.org/manifest repo sync
cd orchestration/xos git review -d 1852
A vagrant VM is provided to make your life easier, so:
cd orchestration/service-profile/frontend vagrant up frontend vagrant ssh frontend # password is vagrant cd service-profile/frontend make local_containers make make experimental-ui
The new UI is now accessible at http://<your-ip>
on port 80
If you want to create some slices to have some data:
make slices
This application can be executed on your system as long as you have NodeJs
version 4 or higher.
To start de development environment use: npm start
There are two configuration file available in the application, and they depend on the environment. You can find the various possibilities in conf/app
, and they regard application constants, such as apiEndpoint
, or branding elements, such as projectName
.
To load a different configration file you can use two environment variables:
NODE_ENV
: to configure the app constants (eg: dev
, production
)BRAND
: to configure style constants (eg: cord
, opencloud
)To commands come with the project:
npm run test:auto
to watch source files and run test anytime they change, useful for developmentnpm test
to run test once, this is the command triggered by Jenkinsredis-cli -h xos.dev # In progress PUBLISH Slice "{\"pk\": 19, \"object\": {\"id\": 19,\"name\": \"mysite_test_redis\", \"backend_status\": \"0 - In Progress\"}, \"changed_fields\": [\"updated\", \"backend_status\"]}" # Succes PUBLISH Slice "{\"pk\": 19, \"object\": {\"id\": 19,\"name\": \"mysite_test_redis\", \"backend_status\": \"1 - Success\"}, \"changed_fields\": [\"updated\", \"backend_status\"]}" # Error PUBLISH Slice "{\"pk\": 19, \"object\": {\"id\": 19,\"name\": \"mysite_test_redis\", \"backend_status\": \"2 - Error\"}, \"changed_fields\": [\"updated\", \"backend_status\"]}"