Reformat Robot files to follow best practices
Best practices in Robot files consist in using three spaces as
separator and not using tabs. This change updates all files
and includes the checking of the format as part of
`devops-stages/stage-test.sh`. In addition, it checks that files
have no CRLF terminators.
Change-Id: Ie71c2dd92585eba3baf98df0be54f05828819ad8
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/robot-systest/lib/vnfd_lib.robot b/robot-systest/lib/vnfd_lib.robot
index 2d50170..d171b67 100644
--- a/robot-systest/lib/vnfd_lib.robot
+++ b/robot-systest/lib/vnfd_lib.robot
@@ -59,16 +59,16 @@
[Arguments] ${vnfd_pkg} ${overrides}=${EMPTY}
# If env variable "OVERRIDES" exists, it prevails over the value in the argument
- ${overrides}= Get Environment Variable OVERRIDES default=${overrides}
+ ${overrides}= Get Environment Variable OVERRIDES default=${overrides}
# Proceedes with the onboarding with the appropriate arguments
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-create ${overrides} ${vnfd_pkg}
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
- ${lines}= Get Line Count ${stdout}
- ${last}= Evaluate ${lines} - 1
- ${id}= Get Line ${stdout} ${last}
- [Return] ${id}
+ ${lines}= Get Line Count ${stdout}
+ ${last}= Evaluate ${lines} - 1
+ ${id}= Get Line ${stdout} ${last}
+ [Return] ${id}
Update VNFD
@@ -83,10 +83,10 @@
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-update --content ${vnfd_pkg} ${vnfd_name}
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
- ${lines}= Get Line Count ${stdout}
- ${last}= Evaluate ${lines} - 1
- ${id}= Get Line ${stdout} ${last}
- [Return] ${id}
+ ${lines}= Get Line Count ${stdout}
+ ${last}= Evaluate ${lines} - 1
+ ${id}= Get Line ${stdout} ${last}
+ [Return] ${id}
Create VNFD Overriding Fields
@@ -108,16 +108,16 @@
[Arguments] ${vnfd_pkg} ${override_fields} ${overrides}=${EMPTY}
# If env variable "OVERRIDES" exists, it prevails over the value in the argument
- ${overrides}= Get Environment Variable OVERRIDES default=${overrides}
+ ${overrides}= Get Environment Variable OVERRIDES default=${overrides}
# Proceedes with the onboarding with the appropriate arguments
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-create ${overrides} ${vnfd_pkg} --override '${override_fields}'
log ${stdout}
Should Be Equal As Integers ${rc} ${success_return_code}
- ${lines}= Get Line Count ${stdout}
- ${last}= Evaluate ${lines} - 1
- ${id}= Get Line ${stdout} ${last}
- [Return] ${id}
+ ${lines}= Get Line Count ${stdout}
+ ${last}= Evaluate ${lines} - 1
+ ${id}= Get Line ${stdout} ${last}
+ [Return] ${id}
Delete VNFD
@@ -141,9 +141,9 @@
Check For VNFD
- [Arguments] ${vnfd_id} ${exists}=False
+ [Arguments] ${vnfd_id} ${exists}=False
${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-list | awk '{print $2}' | grep ${vnfd_id}
- Run Keyword If ${exists} Should Be Equal As Strings ${stdout} ${vnfd_id}
- ... ELSE Should Not Be Equal As Strings ${stdout} ${vnfd_id}
+ Run Keyword If ${exists} Should Be Equal As Strings ${stdout} ${vnfd_id}
+ ... ELSE Should Not Be Equal As Strings ${stdout} ${vnfd_id}