question

dclaar avatar image
dclaar Suspended asked dclaar Suspended posted

order matters, but can't have it both ways

I have a response map where the lines can be either:

IP Address: 10.1.18.1/25 Next Hop: 10.1.18.2 Second Next Hop: 10.1.1.201

With the last line optional. Or:

IP Address: 10.1.18.1/25 Next Hop: 10.1.18.2 Second IP Address: 10.1.30.1/24 Next Hop: 10.1.30.201

With the last two lines optional. I have one sample of each. I have set up my RM as a container which must appear once, with two blocks that don't have the "must appear once" box checked. If I put the two blocks in the order above, then the sample matching the second block fails. If I switch them, the sample matching the first block fails. I can put them together into one block, so that it matches either case, but I was trying to match the actual output, not a superset.

 

Any thoughts on how I might do this?

iTestresponse map
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
PaulD avatar image
PaulD answered PaulD posted
Sure enough.  This code has been around for quite a while!  But you've found an obscure bug related to optional lines.  This, I think, will happen when you have two optional adjacent blocks with optional lines in them.  We're going to track it down and fix it.
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.