I am also having issues after making my multi-step a little more complicated. While hawkeye is trying to get this working against a live device, I am trying to get a test case working but failing.
The code is located here:
https://bitbucket.org/indeni/indeni-knowledge/branch/IKP-1194-internal-ldap-fingerprint-check
and path: parser/test/checkpoint/firewall/ldap-fingerprint-check
Here I have a test case 0. It consists of three input files. The first input file is the result of the first command part of the multi-step. This part works fine.
The script work like this. The first commands lists which Active Directory servers the firewall is connected to, and retrieves the SSL fingerprint that is configured for them.
The second command runs a command for each Active Directory server found, to fetch the current fingerprint they have and compare with the configured one.
In my test case it will detect two Active Directory servers, thus execute two more commands afterwards, so I have two more input files reflecting the output of the two commands.
However I get an error message:
Message = Header = Execution Error,
Description = Failed to find matching input,
Message = key not found: Map(multistepList -> indeni.local__AD:asdasd:1.1.1.1:d4ba0d2c93c39e869275452da03ddc2c,indeni.local__AD:Host_192.168.197.14:192.168.197.14:899711ebae4fb70d5c6ac95b66c238b3),
What looks strange here is that it looks like it is trying to match the entire string to the second step, when I expect it to split the string on "," and send one part of it each time.
Is this an bug or expected behaviour?
In my input.json I have configured it like this. (seems crowd removes spaces when pasting)
{
"steps": [
[
{
"variables": {
},
"path": "input_0_0"
}
],
[
{
"variables": {
"multistepList": "indeni.local__AD:asdasd:1.1.1.1:d4ba0d2c93c39e869275452da03ddc2c"
},
"path": "input_1_0"
}
],
[
{
"variables": {
"multistepList": "indeni.local__AD:Host_192.168.197.14:192.168.197.14:899711ebae4fb70d5c6ac95b66c238b3"
},
"path": "input_2_0"
}
]
]
}
Maybe mine and hawkeyes issues are related.