Bugfix: heat conext of test case yamls jinja2 bypass sriov type 21/58521/4
authorrexlee8776 <limingjiang@huawei.com>
Thu, 14 Jun 2018 03:35:46 +0000 (03:35 +0000)
committerrexlee8776 <limingjiang@huawei.com>
Fri, 15 Jun 2018 08:39:23 +0000 (08:39 +0000)
the "if provider" condition bypass when provider = "sriov",
related to https://gerrit.opnfv.org/gerrit/#/c/32789/

  networks:
    test:
      cidr: '10.0.1.0/24'
      {% if provider == "vlan" %}
      provider: {{provider}}
      physical_network: {{physical_network}}
        {% if segmentation_id %}
      segmentation_id: {{segmentation_id}}
        {% endif %}
      {% endif %}

JIRA: YARDSTICK-1242

Change-Id: I6a611e839654f401648d9bd6188589816f7b4946
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
22 files changed:
tests/opnfv/test_cases/opnfv_yardstick_tc001.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc002.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc005.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc006.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc008.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc009.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc010.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc011.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc012.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc014.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc023.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc037.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc038.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc069.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc070.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc071.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc072.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc076.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc079.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc082.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc083.yaml
tests/opnfv/test_cases/opnfv_yardstick_tc084.yaml

index 4faa0bc..8bfe446 100644 (file)
@@ -62,7 +62,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 7f8c229..596db25 100644 (file)
@@ -59,7 +59,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 101c421..756c14d 100644 (file)
@@ -60,7 +60,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index fe244e8..cf12436 100644 (file)
@@ -64,7 +64,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 22e5760..c905302 100644 (file)
@@ -78,13 +78,10 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
       segmentation_id: {{segmentation_id}}
         {% endif %}
       {% endif %}
-    #test-sriov:
-      #cidr: '10.0.1.0/24'
-      #provider: "sriov"
index 3c5f72d..cefa505 100644 (file)
@@ -64,7 +64,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index cf97068..e84e113 100644 (file)
@@ -49,7 +49,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index ee36c6c..9980022 100644 (file)
@@ -61,7 +61,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index b8b208f..a1058bc 100644 (file)
@@ -50,7 +50,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index bd0fe36..78c9e85 100644 (file)
@@ -43,7 +43,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 7136a9e..c2c176b 100644 (file)
@@ -181,7 +181,7 @@ contexts:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 3622b40..a6cf6a2 100644 (file)
@@ -95,7 +95,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 59fb95d..2250ae5 100644 (file)
@@ -95,7 +95,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 2a40823..3bfaff9 100644 (file)
@@ -49,7 +49,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 7ea10d8..8cbd247 100644 (file)
@@ -97,7 +97,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index b6a944b..c1ce2c5 100644 (file)
@@ -95,7 +95,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 09930d4..d237fa9 100644 (file)
@@ -97,7 +97,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 8c0edac..c5e799c 100644 (file)
@@ -58,7 +58,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 9c15acc..04a9225 100644 (file)
@@ -45,7 +45,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 4b67f0f..85b6c91 100644 (file)
@@ -55,7 +55,7 @@ context:
   networks:
     test:
       cidr: "10.0.1.0/24"
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 6315fdc..158f064 100755 (executable)
@@ -81,7 +81,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}
index 472aabe..9df1657 100644 (file)
@@ -58,7 +58,7 @@ context:
   networks:
     test:
       cidr: '10.0.1.0/24'
-      {% if provider == "vlan" %}
+      {% if provider == "vlan" or provider == "sriov" %}
       provider: {{provider}}
       physical_network: {{physical_network}}
         {% if segmentation_id %}