Browse Source

update Docker file for mcp virtual lab

Change-Id: Ie65bc5432f29afdca9908c18671f77e380fbb56e
Yevgeniy 2 years ago
parent
commit
37e62a4ca7
3 changed files with 11 additions and 4 deletions
  1. 9
    4
      plugin_test/vapor/Dockerfile
  2. 1
    0
      plugin_test/vapor/cloud.key
  3. 1
    0
      plugin_test/vapor/requirements.txt

+ 9
- 4
plugin_test/vapor/Dockerfile View File

@@ -20,10 +20,15 @@ ENV OSLO_PACKAGE_VERSION=1.8
20 20
 RUN pip install -e . -r requirements.txt
21 21
 
22 22
 ENV OS_USERNAME=admin
23
-ENV OS_PASSWORD=admin
23
+ENV OS_PASSWORD=workshop
24
+ENV OS_TENANR_NAME=admin
25
+ENV OS_AUTH_URL=http://172.16.10.254:35357/v3
24 26
 ENV VIRTUAL_DISPLAY=1
25
-ENV OS_FAULTS_CLOUD_DRIVER=fuel
27
+ENV OS_FAULTS_CLOUD_DRIVER=tcpcloud
26 28
 ENV OS_FAULTS_CLOUD_DRIVER_KEYFILE=/opt/app/cloud.key
29
+ENV OS_FAULTS_CLOUD_DRIVER_ADDRESS=192.168.10.100
30
+ENV OS_FAULTS_CLOUD_DRIVER_USERNAME=root
31
+ENV CONTRAIL_ROLES_DISTRIBUTION_YAML=roles_mk22_qa_lab01.yaml
27 32
 
28
-ENTRYPOINT ["py.test", "-v", "--junit-xml=test_reports/report.xml"]
29
-CMD ["vapor"]
33
+ENTRYPOINT ["py.test", "-v", "--junit-xml=test_reports/report.xml",
34
+            "--html=test_reports/report.html"]

+ 1
- 0
plugin_test/vapor/cloud.key View File

@@ -0,0 +1 @@
1
+#Placeholder for your private key

+ 1
- 0
plugin_test/vapor/requirements.txt View File

@@ -7,3 +7,4 @@ contextlib2==0.5.4; python_version < '3.2'
7 7
 kazoo==2.2.1
8 8
 logbook
9 9
 xmltodict
10
+pytest-html

Loading…
Cancel
Save