summaryrefslogtreecommitdiffstats
path: root/docs/release/configguide/feature.configuration.rst
blob: 3e66020dd8a16118d4f1fd9ad65b92e0a0ef4647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0

Promise installation
====================

Install nodejs, npm and promise

.. code-block:: bash

    curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
    sudo apt-get install -y nodejs
    sudo npm -g install npm@latest
    git clone https://gerrit.opnfv.org/gerrit/promise
    cd promise/source
    npm install
    npm ls

Please note that the last command 'npm ls' will list all needed dependencies
for promise (including yangforge and mocha)

.. figure:: images/screenshot_promise_install.png
   :name: figure1
      :width: 90%


Validation
==========
Please perform the following preparation steps:

1. Set OpenStack environment parameters properly (e.g. source openrc admin demo
   in DevStack)
2. Create OpenStack project (e.g. promise) and user (e.g. myuser) in e.g. the
   default domain
3. Create a flavor in Nova with 1 vCPU and 512 MB RAM
4. Create a private network, subnet and router in Neutron
5. Create an image in Glance

Once done, the promise test script can be invoked as follows:

.. code-block:: bash

   export OS_PROJECT_NAME=promise
   export OS_TENANT_NAME=promise
   export OS_PROJECT_DOMAIN_NAME=Default
   export OS_USERNAME=myuser
   export OS_USER_DOMAIN_NAME=Default
   export OS_PASSWORD=<user password from Step 2>
   export OS_TEST_FLAVOR=<flavor ID from Step 3>
   export OS_TEST_NETWORK=<network ID from Step 4>
   export OS_TEST_IMAGE=<image ID from Step 5>
   npm run -s test -- --reporter json > promise-results.json

The results of the tests will be stored in the promise-results.json file.

The results can also be seen in the console ("npm run -s test")

.. figure:: images/screenshot_promise.png
   :name: figure2
   :width: 90%

All 33 tests passing?!
Congratulations, Promise has been successfully installed and configured.