Fixed bad YAML in REST tests
This commit is contained in:
parent
c996db731a
commit
ce7fccb287
|
@ -20,12 +20,14 @@
|
|||
"Test cat nodes attrs output":
|
||||
- do:
|
||||
cat.nodeattrs: {}
|
||||
- match: # All attributes look good
|
||||
# All attributes look good
|
||||
- match:
|
||||
$body: |
|
||||
/^# node\s+ host\s+ ip\s+ attr\s+ value\s* \n
|
||||
(((\S+\s?){1,10})\s+(\S+)\s+(\d{1,3}\.){3}\d{1,3}\s+(\S+)\s+ (\S+)\s* \n)+
|
||||
$/
|
||||
- match: # A specific planted attribute is present and looks good
|
||||
# A specific planted attribute is present and looks good
|
||||
- match:
|
||||
$body: |
|
||||
/# node\s+ host\s+ ip\s+ attr\s+ value\s* \n
|
||||
(\S+(\s\S+){0,7})\s+ (\S+)\s+ (\d{1,3}\.){3}\d{1,3}\s+testattr\s+ test \s* \n
|
||||
|
@ -37,12 +39,14 @@
|
|||
- do:
|
||||
cat.nodeattrs:
|
||||
v: true
|
||||
- match: # All attributes look good including the heading
|
||||
# All attributes look good including the heading
|
||||
- match:
|
||||
$body: |
|
||||
/^ node\s+ host\s+ ip\s+ attr\s+ value\s* \n
|
||||
(((\S+\s?){1,10})\s+(\S+)\s+(\d{1,3}\.){3}\d{1,3}\s+(\S+)\s+ (\S+)\s* \n)+
|
||||
$/
|
||||
- match: # A specific planted attribute is present and looks good
|
||||
# A specific planted attribute is present and looks good
|
||||
- match:
|
||||
$body: |
|
||||
/# node\s+ host\s+ ip\s+ attr\s+ value\s* \n
|
||||
(\S+(\s\S+){0,7})\s+ (\S+)\s+ (\d{1,3}\.){3}\d{1,3}\s+ testattr\s+ test \s* \n
|
||||
|
@ -52,12 +56,14 @@
|
|||
cat.nodeattrs:
|
||||
h: attr,value
|
||||
v: true
|
||||
- match: # All attributes look good
|
||||
# All attributes look good
|
||||
- match:
|
||||
$body: |
|
||||
/^ attr\s+ value\s*\n
|
||||
((\S+)\s+ (\S+)\s*)+
|
||||
$/
|
||||
- match: # A specific planted attribute is present and looks good
|
||||
# A specific planted attribute is present and looks good
|
||||
- match:
|
||||
$body: |
|
||||
/# attr\s+ value\s*\n
|
||||
testattr\s+ test\s*\n
|
||||
|
|
Loading…
Reference in New Issue