diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2017-01-16 04:32:55 -0500 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2017-01-16 04:33:49 -0500 |
commit | 22b1f10e6f1f32114376d4e43c9579796673b167 (patch) | |
tree | 2e4b992b135a534c9e95268f7094a3ead47fc91f | |
parent | 5a1687b29e7d01929bb1d3bf82c70cb7cc305bd7 (diff) |
dovetail tool: format improvement
Change-Id: Ibf0bb781c0f0b6be73526bf45231040e68510f76
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
47 files changed, 109 insertions, 4 deletions
diff --git a/dovetail/compliance/compliance_set.yml b/dovetail/compliance/compliance_set.yml index df0d427d..75f50e42 100644 --- a/dovetail/compliance/compliance_set.yml +++ b/dovetail/compliance/compliance_set.yml @@ -1,3 +1,4 @@ +--- compliance_set: name: compliance_set testcases_list: diff --git a/dovetail/compliance/debug.yml b/dovetail/compliance/debug.yml index 13ba335c..6fc4f0f1 100644 --- a/dovetail/compliance/debug.yml +++ b/dovetail/compliance/debug.yml @@ -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 diff --git a/dovetail/compliance/proposed_tests.yml b/dovetail/compliance/proposed_tests.yml index fcb7e03a..ec903233 100644 --- a/dovetail/compliance/proposed_tests.yml +++ b/dovetail/compliance/proposed_tests.yml @@ -1,3 +1,4 @@ +--- proposed_tests: name: proposed_tests testcases_list: diff --git a/dovetail/conf/cmd_config.yml b/dovetail/conf/cmd_config.yml index 12c59354..e66434b0 100644 --- a/dovetail/conf/cmd_config.yml +++ b/dovetail/conf/cmd_config.yml @@ -1,3 +1,4 @@ +--- cli: arguments: config: diff --git a/dovetail/conf/dovetail_config.yml b/dovetail/conf/dovetail_config.yml index 42f8ca99..b6f7b016 100644 --- a/dovetail/conf/dovetail_config.yml +++ b/dovetail/conf/dovetail_config.yml @@ -1,4 +1,4 @@ - +--- work_dir: /home/opnfv/dovetail result_dir: /home/opnfv/dovetail/results report_file: 'dovetail_report.txt' diff --git a/dovetail/conf/functest_config.yml b/dovetail/conf/functest_config.yml index 6aea2809..f20d1b7e 100644 --- a/dovetail/conf/functest_config.yml +++ b/dovetail/conf/functest_config.yml @@ -1,3 +1,4 @@ +--- functest: image_name: opnfv/functest docker_tag: latest diff --git a/dovetail/conf/yardstick_config.yml b/dovetail/conf/yardstick_config.yml index d971c104..b0b4c6fc 100644 --- a/dovetail/conf/yardstick_config.yml +++ b/dovetail/conf/yardstick_config.yml @@ -1,3 +1,4 @@ +--- yardstick: image_name: opnfv/yardstick docker_tag: latest diff --git a/dovetail/parser.py b/dovetail/parser.py index 74a57764..95130cd9 100644 --- a/dovetail/parser.py +++ b/dovetail/parser.py @@ -16,7 +16,7 @@ from utils.dovetail_config import DovetailConfig as dt_cfg class Parser: - '''preprocess configuration files''' + """preprocess configuration files""" logger = None diff --git a/dovetail/testcase/example.tc001.yml b/dovetail/testcase/example.tc001.yml index eaf7e754..e389a00f 100644 --- a/dovetail/testcase/example.tc001.yml +++ b/dovetail/testcase/example.tc001.yml @@ -1,3 +1,4 @@ +--- dovetail.example.tc001: name: dovetail.example.tc001 objective: Bulk creation and deletion of IPv6 networks, ports and subnets diff --git a/dovetail/testcase/example.tc002.yml b/dovetail/testcase/example.tc002.yml index b9296074..72bfa49d 100644 --- a/dovetail/testcase/example.tc002.yml +++ b/dovetail/testcase/example.tc002.yml @@ -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: - diff --git a/dovetail/testcase/example.tc003.yml b/dovetail/testcase/example.tc003.yml index 7916e017..3ae0fb07 100644 --- a/dovetail/testcase/example.tc003.yml +++ b/dovetail/testcase/example.tc003.yml @@ -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: - diff --git a/dovetail/testcase/ipv6.tc001.yml b/dovetail/testcase/ipv6.tc001.yml index 916d0915..f9edf069 100644 --- a/dovetail/testcase/ipv6.tc001.yml +++ b/dovetail/testcase/ipv6.tc001.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc001: name: dovetail.ipv6.tc001 objective: Bulk creation and deletion of IPv6 networks, ports and subnets diff --git a/dovetail/testcase/ipv6.tc002.yml b/dovetail/testcase/ipv6.tc002.yml index efdc7dce..37406a2e 100644 --- a/dovetail/testcase/ipv6.tc002.yml +++ b/dovetail/testcase/ipv6.tc002.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc002: name: dovetail.ipv6.tc002 objective: VIM ipv6 operations, to create/update/delete an IPv6 network and subnet diff --git a/dovetail/testcase/ipv6.tc003.yml b/dovetail/testcase/ipv6.tc003.yml index 0b7dc9b2..d7c7f716 100644 --- a/dovetail/testcase/ipv6.tc003.yml +++ b/dovetail/testcase/ipv6.tc003.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc003: name: dovetail.ipv6.tc003 objective: VIM ipv6 operations, to check external network visibility diff --git a/dovetail/testcase/ipv6.tc004.yml b/dovetail/testcase/ipv6.tc004.yml index 10a977e1..984dd1b5 100644 --- a/dovetail/testcase/ipv6.tc004.yml +++ b/dovetail/testcase/ipv6.tc004.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc004: name: dovetail.ipv6.tc004 objective: VIM ipv6 operations, to list IPv6 networks and subnets of a tenant diff --git a/dovetail/testcase/ipv6.tc005.yml b/dovetail/testcase/ipv6.tc005.yml index 8d6deece..d6e74aee 100644 --- a/dovetail/testcase/ipv6.tc005.yml +++ b/dovetail/testcase/ipv6.tc005.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc005: name: dovetail.ipv6.tc005 objective: VIM ipv6 operations, to show information of an IPv6 network and subnet diff --git a/dovetail/testcase/ipv6.tc006.yml b/dovetail/testcase/ipv6.tc006.yml index 96a902c5..aa9f5e2a 100644 --- a/dovetail/testcase/ipv6.tc006.yml +++ b/dovetail/testcase/ipv6.tc006.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc006: name: dovetail.ipv6.tc006 objective: VIM ipv6 operations, to create an IPv6 port in allowed allocation pools diff --git a/dovetail/testcase/ipv6.tc007.yml b/dovetail/testcase/ipv6.tc007.yml index 9e9de499..813a6905 100644 --- a/dovetail/testcase/ipv6.tc007.yml +++ b/dovetail/testcase/ipv6.tc007.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc007: name: dovetail.ipv6.tc007 objective: VIM ipv6 operations, to create an IPv6 port without security groups diff --git a/dovetail/testcase/ipv6.tc008.yml b/dovetail/testcase/ipv6.tc008.yml index e057a570..3dbbb700 100644 --- a/dovetail/testcase/ipv6.tc008.yml +++ b/dovetail/testcase/ipv6.tc008.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc008: name: dovetail.ipv6.tc008 objective: VIM ipv6 operations, to create/update/delete an IPv6 port diff --git a/dovetail/testcase/ipv6.tc009.yml b/dovetail/testcase/ipv6.tc009.yml index 56e8015b..cb0f3ac4 100644 --- a/dovetail/testcase/ipv6.tc009.yml +++ b/dovetail/testcase/ipv6.tc009.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc009: name: dovetail.ipv6.tc009 objective: VIM ipv6 operations, to list IPv6 ports of a tenant diff --git a/dovetail/testcase/ipv6.tc010.yml b/dovetail/testcase/ipv6.tc010.yml index eb055ec6..ebe40401 100644 --- a/dovetail/testcase/ipv6.tc010.yml +++ b/dovetail/testcase/ipv6.tc010.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc010: name: dovetail.ipv6.tc010 objective: VIM ipv6 operations, to show information of an IPv6 port diff --git a/dovetail/testcase/ipv6.tc011.yml b/dovetail/testcase/ipv6.tc011.yml index caf44cf0..40c3d465 100644 --- a/dovetail/testcase/ipv6.tc011.yml +++ b/dovetail/testcase/ipv6.tc011.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc011: name: dovetail.ipv6.tc011 objective: VIM ipv6 operations, to add multiple interfaces for an IPv6 router diff --git a/dovetail/testcase/ipv6.tc012.yml b/dovetail/testcase/ipv6.tc012.yml index ab8e7c48..5777d349 100644 --- a/dovetail/testcase/ipv6.tc012.yml +++ b/dovetail/testcase/ipv6.tc012.yml @@ -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 diff --git a/dovetail/testcase/ipv6.tc013.yml b/dovetail/testcase/ipv6.tc013.yml index 58732624..1b122485 100644 --- a/dovetail/testcase/ipv6.tc013.yml +++ b/dovetail/testcase/ipv6.tc013.yml @@ -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 diff --git a/dovetail/testcase/ipv6.tc014.yml b/dovetail/testcase/ipv6.tc014.yml index c8c6de1c..d4eb0fe8 100644 --- a/dovetail/testcase/ipv6.tc014.yml +++ b/dovetail/testcase/ipv6.tc014.yml @@ -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 diff --git a/dovetail/testcase/ipv6.tc015.yml b/dovetail/testcase/ipv6.tc015.yml index e3a47261..246bff59 100644 --- a/dovetail/testcase/ipv6.tc015.yml +++ b/dovetail/testcase/ipv6.tc015.yml @@ -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 diff --git a/dovetail/testcase/ipv6.tc016.yml b/dovetail/testcase/ipv6.tc016.yml index 8195e59c..f8f6ba49 100644 --- a/dovetail/testcase/ipv6.tc016.yml +++ b/dovetail/testcase/ipv6.tc016.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc016: name: dovetail.ipv6.tc016 objective: VIM ipv6 operations, to create, delete and show security group rules diff --git a/dovetail/testcase/ipv6.tc017.yml b/dovetail/testcase/ipv6.tc017.yml index 8b7ae5fc..006efb01 100644 --- a/dovetail/testcase/ipv6.tc017.yml +++ b/dovetail/testcase/ipv6.tc017.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc017: name: dovetail.ipv6.tc017 objective: VIM ipv6 operations, to list all security groups diff --git a/dovetail/testcase/ipv6.tc018.yml b/dovetail/testcase/ipv6.tc018.yml index be888b4f..78d70228 100644 --- a/dovetail/testcase/ipv6.tc018.yml +++ b/dovetail/testcase/ipv6.tc018.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc018: name: dovetail.ipv6.tc018 objective: VIM ipv6 operations, to show information of an IPv6 port diff --git a/dovetail/testcase/ipv6.tc019.yml b/dovetail/testcase/ipv6.tc019.yml index 524d0a4c..a4ad477e 100644 --- a/dovetail/testcase/ipv6.tc019.yml +++ b/dovetail/testcase/ipv6.tc019.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc019: name: dovetail.ipv6.tc019 objective: VIM ipv6 operations, to do IPv6 address assignment - dual stack, DHCPv6 stateless diff --git a/dovetail/testcase/ipv6.tc020.yml b/dovetail/testcase/ipv6.tc020.yml index 4cc65e1a..2d92c058 100644 --- a/dovetail/testcase/ipv6.tc020.yml +++ b/dovetail/testcase/ipv6.tc020.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc020: name: dovetail.ipv6.tc020 objective: VIM ipv6 operations, to do IPv6 Address Assignment - Multiple Prefixes, DHCPv6 Stateless diff --git a/dovetail/testcase/ipv6.tc021.yml b/dovetail/testcase/ipv6.tc021.yml index 199336aa..104993fa 100644 --- a/dovetail/testcase/ipv6.tc021.yml +++ b/dovetail/testcase/ipv6.tc021.yml @@ -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 diff --git a/dovetail/testcase/ipv6.tc022.yml b/dovetail/testcase/ipv6.tc022.yml index 1e6cf0bd..58813da5 100644 --- a/dovetail/testcase/ipv6.tc022.yml +++ b/dovetail/testcase/ipv6.tc022.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc022: name: dovetail.ipv6.tc022 objective: VIM ipv6 operations, to do IPv6 Address Assignment - SLAAC diff --git a/dovetail/testcase/ipv6.tc023.yml b/dovetail/testcase/ipv6.tc023.yml index 1c735f0a..5b6dbb09 100644 --- a/dovetail/testcase/ipv6.tc023.yml +++ b/dovetail/testcase/ipv6.tc023.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc023: name: dovetail.ipv6.tc023 objective: VIM ipv6 operations, to do IPv6 Address Assignment - Dual Stack, SLAAC diff --git a/dovetail/testcase/ipv6.tc024.yml b/dovetail/testcase/ipv6.tc024.yml index 010008db..ab6970f1 100644 --- a/dovetail/testcase/ipv6.tc024.yml +++ b/dovetail/testcase/ipv6.tc024.yml @@ -1,3 +1,4 @@ +--- dovetail.ipv6.tc024: name: dovetail.ipv6.tc024 objective: VIM ipv6 operations, to do IPv6 address assignment - multiple prefixes, SLAAC diff --git a/dovetail/testcase/ipv6.tc025.yml b/dovetail/testcase/ipv6.tc025.yml index d735a60f..396098e0 100644 --- a/dovetail/testcase/ipv6.tc025.yml +++ b/dovetail/testcase/ipv6.tc025.yml @@ -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 diff --git a/dovetail/testcase/nfvi.tc001.yml b/dovetail/testcase/nfvi.tc001.yml index b796e803..157fc8da 100644 --- a/dovetail/testcase/nfvi.tc001.yml +++ b/dovetail/testcase/nfvi.tc001.yml @@ -1,3 +1,4 @@ +--- dovetail.nfvi.tc001: name: dovetail.nfvi.tc001 objective: testing for vping using ssh diff --git a/dovetail/testcase/nfvi.tc002.yml b/dovetail/testcase/nfvi.tc002.yml index d9413477..28a7adfd 100644 --- a/dovetail/testcase/nfvi.tc002.yml +++ b/dovetail/testcase/nfvi.tc002.yml @@ -1,3 +1,4 @@ +--- dovetail.nfvi.tc002: name: dovetail.nfvi.tc002 objective: testing for vping using userdata diff --git a/dovetail/testcase/vimops.tc001.yml b/dovetail/testcase/vimops.tc001.yml index 5f8da6a1..5aaa0b4a 100644 --- a/dovetail/testcase/vimops.tc001.yml +++ b/dovetail/testcase/vimops.tc001.yml @@ -1,3 +1,4 @@ +--- dovetail.vimops.tc001: name: dovetail.vimops.tc001 objective: Glance images v2 index diff --git a/dovetail/testcase/vimops.tc002.yml b/dovetail/testcase/vimops.tc002.yml index 90201f56..e12e7a8b 100644 --- a/dovetail/testcase/vimops.tc002.yml +++ b/dovetail/testcase/vimops.tc002.yml @@ -1,3 +1,4 @@ +--- dovetail.vimops.tc002: name: dovetail.vimops.tc002 objective: Glance Images v2 Delete diff --git a/dovetail/testcase/vimops.tc003.yml b/dovetail/testcase/vimops.tc003.yml index d63a17c4..f6554a3a 100644 --- a/dovetail/testcase/vimops.tc003.yml +++ b/dovetail/testcase/vimops.tc003.yml @@ -1,3 +1,4 @@ +--- dovetail.vimops.tc003: name: dovetail.vimops.tc003 objective: Glance images v2 list diff --git a/dovetail/testcase/vimops.tc004.yml b/dovetail/testcase/vimops.tc004.yml index 3f924a4c..66931294 100644 --- a/dovetail/testcase/vimops.tc004.yml +++ b/dovetail/testcase/vimops.tc004.yml @@ -1,3 +1,4 @@ +--- dovetail.vimops.tc004: name: dovetail.vimops.tc004 objective: Glance images v2 list diff --git a/dovetail/testcase/vimops.tc005.yml b/dovetail/testcase/vimops.tc005.yml index acaad685..061a9351 100644 --- a/dovetail/testcase/vimops.tc005.yml +++ b/dovetail/testcase/vimops.tc005.yml @@ -1,3 +1,4 @@ +--- dovetail.vimops.tc005: name: dovetail.vimops.tc005 objective: Glance images v2 import diff --git a/dovetail/testcase/vimops.tc006.yml b/dovetail/testcase/vimops.tc006.yml index 68e2ca05..bdebd8ad 100644 --- a/dovetail/testcase/vimops.tc006.yml +++ b/dovetail/testcase/vimops.tc006.yml @@ -1,3 +1,4 @@ +--- dovetail.vimops.tc006: name: dovetail.vimops.tc006 objective: Glance images v2 update diff --git a/dovetail/tests/unit/test_testcase.yaml b/dovetail/tests/unit/test_testcase.yaml index 735219c5..cb947cd9 100644 --- a/dovetail/tests/unit/test_testcase.yaml +++ b/dovetail/tests/unit/test_testcase.yaml @@ -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 index 00000000..6bab526f --- /dev/null +++ b/results.log @@ -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 index 00000000..e69de29b --- /dev/null +++ b/yaml-violation.log |