Skip to content

Commit 858d65c

Browse files
authored
Merge pull request #31 from opennetworkinglab/maintenance
archive for future
2 parents 93ad167 + 0cfc6b4 commit 858d65c

File tree

1 file changed

+32
-25
lines changed

1 file changed

+32
-25
lines changed

testing/aether-roc-tests.rst

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
11
API Tests
22
===========
33

4-
The REST API and GUI of Aether is tested with the Robot Framework.
5-
The tests are located inside the ``aether-system-tests`` repository
6-
and they are run nightly using a Jenkins job.
4+
The REST API and GUI of Aether are tested with the Robot Framework.
5+
The tests are located in the ``aether-system-tests`` repository on
6+
Gerrit, but they are **not** currently activated on Jenkins. This
7+
section is archived with the goal of reactivating them.
78

89
Development Prerequisites
910
-------------------------
10-
To access the ROC from a local system, it is necessary to deploy the components of µONOS.
11-
This can be done with the use of Helm (see instructions on
12-
`this page <https://docs.onosproject.org/onos-docs/docs/content/developers/deploy_with_helm/>`_).
1311

14-
Additionally, it is necessary to add the SD-RAN chart repo with the following command:
12+
To access the ROC from a local system, it is necessary to deploy the
13+
components of µONOS. This can be done with the use of Helm (see
14+
instructions on `this page
15+
<https://docs.onosproject.org/onos-docs/docs/content/developers/deploy_with_helm/>`_).
1516

16-
.. code-block:: shell
17+
Additionally, it is necessary to add the SD-RAN chart repo with the
18+
following command:
1719

18-
helm repo add sdran --username USER --password PASSWORD https://charts.aetherproject.org
20+
.. code-block:: shell
1921
20-
where USER and PASSWORD can be obtained from the Aether Login Information file,
21-
which is accessible to the ``onfstaff`` group.
22+
helm repo add sdran https://charts.aetherproject.org
2223
23-
Finally, the ROC GUI tests are running on the Firefox browser, so it is
24-
necessary to have the Firefox browser and the Firefox web driver
24+
Finally, the ROC GUI tests are running on the Firefox browser, so it
25+
is necessary to have the Firefox browser and the Firefox web driver
2526
(``geckodriver``) installed on the system in order to run these tests.
2627

2728
Running the ROC API Tests
2829
-------------------------
30+
2931
Follow the steps below to access the ROC API:
3032

31-
1. Deploy the ``aether-roc-umbrella`` chart from the Aether repo with the following command:
33+
1. Deploy the ``aether-roc-umbrella`` chart from the Aether repo with
34+
the following command:
3235

3336
.. code-block:: shell
3437
@@ -40,7 +43,8 @@ Follow the steps below to access the ROC API:
4043
4144
kubectl -n micro-onos get pods
4245
43-
3. Once all pods are in a Running state, port-forward aether-roc-api to port 8181 with the following command:
46+
3. Once all pods are in a Running state, port-forward aether-roc-api
47+
to port 8181 with the following command:
4448

4549
.. code-block:: shell
4650
@@ -52,8 +56,8 @@ Follow the steps below to access the ROC API:
5256
5357
kubectl -n micro-onos port-forward service/onos-config 5150 &
5458
55-
Now that we have access to the ROC API, we can proceed with running the ROC API tests from the ``aether-system-tests``
56-
repository:
59+
Now that we have access to the ROC API, we can proceed with running
60+
the ROC API tests from the ``aether-system-tests`` repository:
5761

5862
1. Checkout the aether-system-tests repo:
5963

@@ -74,11 +78,12 @@ repository:
7478
make ast-venv
7579
source ast-venv/bin/activate
7680
77-
4. Go to the ``roc`` folder and generate the ROC API test framework and test files:
81+
4. Go to the ``roc`` folder and generate the ROC API test framework
82+
and test files:
7883

7984
.. code-block:: shell
8085
81-
cd roc
86+
cd aether-2.1/roc
8287
python libraries/api/codegen/class_generator.py \
8388
--models=variables/2_0_0_model_list.json \
8489
--template=libraries/api/codegen/templates/class_template.py.tmpl \
@@ -113,7 +118,7 @@ This will generate test reports and logs in the ``results`` directory.
113118
Running the ROC GUI Tests
114119
-------------------------
115120

116-
We test the ROC GUI by installing the ROC with keycloak-dev.onlab.us.
121+
Test the ROC GUI by installing the ROC with Keycloak enabled.
117122
Currently, only v4 GUI automation tests are supported:
118123

119124
1. Deploy the ``aether-roc-umbrella`` chart from the Aether repo with the
@@ -147,20 +152,22 @@ Alternatively, v2 GUI can be deployed with the following command:
147152
148153
kubectl -n micro-onos get pods
149154
150-
3. Once all pods are in a Running state, port-forward to port 8183 to access the ROC GUI:
155+
3. Once all pods are in a Running state, port-forward to port 8183 to
156+
access the ROC GUI:
151157

152158
.. code-block:: shell
153159
154160
kubectl -n micro-onos port-forward service/aether-roc-gui-v4 8183:80 &
155161
156-
4. Port-forward to port 8181 to access the ROC API (which is necessary for some test cases):
162+
4. Port-forward to port 8181 to access the ROC API (which is necessary
163+
for some test cases):
157164

158165
.. code-block:: shell
159166
160167
kubectl -n micro-onos port-forward service/aether-roc-api 8181 &
161168
162-
Now that we have access to the ROC API and GUI, we can proceed with running the ROC GUI tests from the
163-
``aether-system-tests`` repository:
169+
Now that we have access to the ROC API and GUI, we can proceed with
170+
running the ROC GUI tests from the ``aether-system-tests`` repository:
164171

165172
1. Checkout the aether-system-tests repo:
166173

@@ -185,7 +192,7 @@ Now that we have access to the ROC API and GUI, we can proceed with running the
185192

186193
.. code-block:: shell
187194
188-
cd roc
195+
cd aether-2.1/roc
189196
python tests/gui/codegen/tests_generator.py \
190197
--models=variables/4_0_0_model_list.json \
191198
--template=tests/gui/codegen/templates/tests_template.robot.tmpl \

0 commit comments

Comments
 (0)