dovetail tool: format improvement 41/27041/1
authorMatthewLi <matthew.lijun@huawei.com>
Mon, 16 Jan 2017 09:32:55 +0000 (04:32 -0500)
committerMatthewLi <matthew.lijun@huawei.com>
Mon, 16 Jan 2017 09:33:49 +0000 (04:33 -0500)
Change-Id: Ibf0bb781c0f0b6be73526bf45231040e68510f76
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
47 files changed:
dovetail/compliance/compliance_set.yml
dovetail/compliance/debug.yml
dovetail/compliance/proposed_tests.yml
dovetail/conf/cmd_config.yml
dovetail/conf/dovetail_config.yml
dovetail/conf/functest_config.yml
dovetail/conf/yardstick_config.yml
dovetail/parser.py
dovetail/testcase/example.tc001.yml
dovetail/testcase/example.tc002.yml
dovetail/testcase/example.tc003.yml
dovetail/testcase/ipv6.tc001.yml
dovetail/testcase/ipv6.tc002.yml
dovetail/testcase/ipv6.tc003.yml
dovetail/testcase/ipv6.tc004.yml
dovetail/testcase/ipv6.tc005.yml
dovetail/testcase/ipv6.tc006.yml
dovetail/testcase/ipv6.tc007.yml
dovetail/testcase/ipv6.tc008.yml
dovetail/testcase/ipv6.tc009.yml
dovetail/testcase/ipv6.tc010.yml
dovetail/testcase/ipv6.tc011.yml
dovetail/testcase/ipv6.tc012.yml
dovetail/testcase/ipv6.tc013.yml
dovetail/testcase/ipv6.tc014.yml
dovetail/testcase/ipv6.tc015.yml
dovetail/testcase/ipv6.tc016.yml
dovetail/testcase/ipv6.tc017.yml
dovetail/testcase/ipv6.tc018.yml
dovetail/testcase/ipv6.tc019.yml
dovetail/testcase/ipv6.tc020.yml
dovetail/testcase/ipv6.tc021.yml
dovetail/testcase/ipv6.tc022.yml
dovetail/testcase/ipv6.tc023.yml
dovetail/testcase/ipv6.tc024.yml
dovetail/testcase/ipv6.tc025.yml
dovetail/testcase/nfvi.tc001.yml
dovetail/testcase/nfvi.tc002.yml
dovetail/testcase/vimops.tc001.yml
dovetail/testcase/vimops.tc002.yml
dovetail/testcase/vimops.tc003.yml
dovetail/testcase/vimops.tc004.yml
dovetail/testcase/vimops.tc005.yml
dovetail/testcase/vimops.tc006.yml
dovetail/tests/unit/test_testcase.yaml
results.log [new file with mode: 0644]
yaml-violation.log [new file with mode: 0644]

index df0d427..75f50e4 100644 (file)
@@ -1,3 +1,4 @@
+---
 compliance_set:
   name: compliance_set
   testcases_list:
index 13ba335..6fc4f0f 100644 (file)
@@ -1,3 +1,4 @@
+---
 # only used for dovetail tool development debug
 # nfvi.tc001 tc002 running time is shorter, about 3 minutes
 # ipv6.tc001 about 20 minutes
index fcb7e03..ec90323 100644 (file)
@@ -1,3 +1,4 @@
+---
 proposed_tests:
   name: proposed_tests
   testcases_list:
index 12c5935..e66434b 100644 (file)
@@ -1,3 +1,4 @@
+---
 cli:
   arguments:
     config:
index 42f8ca9..b6f7b01 100644 (file)
@@ -1,4 +1,4 @@
-
+---
 work_dir: /home/opnfv/dovetail
 result_dir: /home/opnfv/dovetail/results
 report_file: 'dovetail_report.txt'
index 6aea280..f20d1b7 100644 (file)
@@ -1,3 +1,4 @@
+---
 functest:
   image_name: opnfv/functest
   docker_tag: latest
index d971c10..b0b4c6f 100644 (file)
@@ -1,3 +1,4 @@
+---
 yardstick:
   image_name: opnfv/yardstick
   docker_tag: latest
index 74a5776..95130cd 100644 (file)
@@ -16,7 +16,7 @@ from utils.dovetail_config import DovetailConfig as dt_cfg
 
 
 class Parser:
-    '''preprocess configuration files'''
+    """preprocess configuration files"""
 
     logger = None
 
index eaf7e75..e389a00 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.example.tc001:
   name: dovetail.example.tc001
   objective: Bulk creation and deletion of IPv6 networks, ports and subnets
index b929607..72bfa49 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.example.tc002:
   name: dovetail.example.tc002
   objective: VIM ipv6 operations, to create/update/delete an IPv6 network and subnet
@@ -13,4 +14,3 @@ dovetail.example.tc002:
       - "echo post_condition"
   report:
     sub_testcase_list:
-
index 7916e01..3ae0fb0 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.example.tc003:
   name: dovetail.example.tc003
   objective: doing something useful
@@ -11,4 +12,3 @@ dovetail.example.tc003:
       - ""
   report:
     sub_testcase_list:
-
index 916d091..f9edf06 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc001:
   name: dovetail.ipv6.tc001
   objective: Bulk creation and deletion of IPv6 networks, ports and subnets
index efdc7dc..37406a2 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc002:
   name: dovetail.ipv6.tc002
   objective: VIM ipv6 operations, to create/update/delete an IPv6 network and subnet
index 0b7dc9b..d7c7f71 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc003:
   name: dovetail.ipv6.tc003
   objective: VIM ipv6 operations, to check external network visibility
index 10a977e..984dd1b 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc004:
   name: dovetail.ipv6.tc004
   objective: VIM ipv6 operations, to list IPv6 networks and subnets of a tenant
index 8d6deec..d6e74ae 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc005:
   name: dovetail.ipv6.tc005
   objective: VIM ipv6 operations, to show information of an IPv6 network and subnet
index 96a902c..aa9f5e2 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc006:
   name: dovetail.ipv6.tc006
   objective: VIM ipv6 operations, to create an IPv6 port in allowed allocation pools
index 9e9de49..813a690 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc007:
   name: dovetail.ipv6.tc007
   objective: VIM ipv6 operations, to create an IPv6 port without security groups
index e057a57..3dbbb70 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc008:
   name: dovetail.ipv6.tc008
   objective: VIM ipv6 operations, to create/update/delete an IPv6 port
index 56e8015..cb0f3ac 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc009:
   name: dovetail.ipv6.tc009
   objective: VIM ipv6 operations, to list IPv6 ports of a tenant
index eb055ec..ebe4040 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc010:
   name: dovetail.ipv6.tc010
   objective: VIM ipv6 operations, to show information of an IPv6 port
index caf44cf..40c3d46 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc011:
   name: dovetail.ipv6.tc011
   objective: VIM ipv6 operations, to add multiple interfaces for an IPv6 router
index ab8e7c4..5777d34 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc012:
   name: dovetail.ipv6.tc012
   objective: VIM ipv6 operations, to add and remove an IPv6 router interface with port_id
index 5873262..1b12248 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc013:
   name: dovetail.ipv6.tc013
   objective: VIM ipv6 operations, to add and remove an IPv6 router interface with subnet_id
index c8c6de1..d4eb0fe 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc014:
   name: dovetail.ipv6.tc014
   objective: VIM ipv6 operations, to create, update, delete, list and show an IPv6 router
index e3a4726..246bff5 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc015:
   name: dovetail.ipv6.tc015
   objective: VIM ipv6 operations, to create, update, delete, list and show an IPv6 security group
index 8195e59..f8f6ba4 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc016:
   name: dovetail.ipv6.tc016
   objective: VIM ipv6 operations, to create, delete and show security group rules
index 8b7ae5f..006efb0 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc017:
   name: dovetail.ipv6.tc017
   objective: VIM ipv6 operations, to list all security groups
index be888b4..78d7022 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc018:
   name: dovetail.ipv6.tc018
   objective: VIM ipv6 operations, to show information of an IPv6 port
index 524d0a4..a4ad477 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc019:
   name: dovetail.ipv6.tc019
   objective: VIM ipv6 operations, to do IPv6 address assignment - dual stack, DHCPv6 stateless
index 4cc65e1..2d92c05 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc020:
   name: dovetail.ipv6.tc020
   objective: VIM ipv6 operations, to do IPv6 Address Assignment - Multiple Prefixes, DHCPv6 Stateless
index 199336a..104993f 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc021:
   name: dovetail.ipv6.tc021
   objective: VIM ipv6 operations, to do IPv6 Address Assignment - Dual Stack, Multiple Prefixes, DHCPv6 Stateless
index 1e6cf0b..58813da 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc022:
   name: dovetail.ipv6.tc022
   objective: VIM ipv6 operations, to do IPv6 Address Assignment - SLAAC
index 1c735f0..5b6dbb0 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc023:
   name: dovetail.ipv6.tc023
   objective: VIM ipv6 operations, to do IPv6 Address Assignment - Dual Stack, SLAAC
index 010008d..ab6970f 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc024:
   name: dovetail.ipv6.tc024
   objective: VIM ipv6 operations, to do IPv6 address assignment - multiple prefixes, SLAAC
index d735a60..396098e 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc025:
   name: dovetail.ipv6.tc025
   objective: VIM ipv6 operations, to do IPv6 address assignment - dual stack, multiple prefixes, SLAAC
index b796e80..157fc8d 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.nfvi.tc001:
   name: dovetail.nfvi.tc001
   objective: testing for vping using ssh
index d941347..28a7adf 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.nfvi.tc002:
   name: dovetail.nfvi.tc002
   objective: testing for vping using userdata
index 5f8da6a..5aaa0b4 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.vimops.tc001:
   name: dovetail.vimops.tc001
   objective: Glance images v2 index
index 90201f5..e12e7a8 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.vimops.tc002:
   name: dovetail.vimops.tc002
   objective: Glance Images v2 Delete
index d63a17c..f6554a3 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.vimops.tc003:
   name: dovetail.vimops.tc003
   objective: Glance images v2 list
index 3f924a4..6693129 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.vimops.tc004:
   name: dovetail.vimops.tc004
   objective: Glance images v2 list
index acaad68..061a935 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.vimops.tc005:
   name: dovetail.vimops.tc005
   objective: Glance images v2 import
index 68e2ca0..bdebd8a 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.vimops.tc006:
   name: dovetail.vimops.tc006
   objective: Glance images v2 update
index 735219c..cb947cd 100644 (file)
@@ -1,3 +1,4 @@
+---
 dovetail.ipv6.tc001:
   name: dovetail.ipv6.tc001
   objective: VIM ipv6 operations, to create/delete network, port and subnet in bulk operation
diff --git a/results.log b/results.log
new file mode 100644 (file)
index 0000000..6bab526
--- /dev/null
@@ -0,0 +1,64 @@
+./dovetail/tests/unit/test_testcase.yaml
+  4:81      error    line too long (93 > 80 characters)  (line-length)
+
+./dovetail/compliance/proposed_tests.yml
+  14:4      warning  comment not indented like content  (comments-indentation)
+
+./dovetail/testcase/ipv6.tc023.yml
+  4:81      error    line too long (83 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc012.yml
+  4:81      error    line too long (89 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc019.yml
+  4:81      error    line too long (94 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc005.yml
+  4:81      error    line too long (83 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc021.yml
+  4:81      error    line too long (113 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc016.yml
+  4:81      error    line too long (81 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc025.yml
+  4:81      error    line too long (102 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc013.yml
+  4:81      error    line too long (91 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc006.yml
+  4:81      error    line too long (84 > 80 characters)  (line-length)
+
+./dovetail/testcase/example.tc003.yml
+  15:1      error    too many blank lines (1 > 0)  (empty-lines)
+
+./dovetail/testcase/ipv6.tc002.yml
+  4:81      error    line too long (84 > 80 characters)  (line-length)
+  12:1      error    too many blank lines (1 > 0)  (empty-lines)
+
+./dovetail/testcase/ipv6.tc024.yml
+  4:81      error    line too long (90 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc015.yml
+  4:81      error    line too long (97 > 80 characters)  (line-length)
+
+./dovetail/testcase/ipv6.tc020.yml
+  4:81      error    line too long (101 > 80 characters)  (line-length)
+
+./dovetail/testcase/example.tc002.yml
+  4:81      error    line too long (84 > 80 characters)  (line-length)
+  17:1      error    too many blank lines (1 > 0)  (empty-lines)
+
+./dovetail/testcase/ipv6.tc014.yml
+  4:81      error    line too long (89 > 80 characters)  (line-length)
+
+./dovetail/conf/cmd_config.yml
+  5:7       warning  comment not indented like content  (comments-indentation)
+  48:81     error    line too long (84 > 80 characters)  (line-length)
+  55:81     error    line too long (83 > 80 characters)  (line-length)
+
+./dovetail/conf/yardstick_config.yml
+  19:81     error    line too long (81 > 80 characters)  (line-length)
+
diff --git a/yaml-violation.log b/yaml-violation.log
new file mode 100644 (file)
index 0000000..e69de29