ansible/test/integration/targets/lookup_csvfile/files/people.csv
Rick Elrod 1b4fd23ba6
csvfile: use parse_kv() for args, add tests (#70550)
Change:
- Use parse_kv() for parsing in the csvfile lookup plugin. This allows
  us to handle multi-word search keys and filenames. Previously, the
  plugin split on space and so none of these things worked as expected.
- Add integration tests for csvfile, testing a plethora of weird cases.

Test Plan:
- New integration tests, CI

Tickets:
- Fixes #70545

Signed-off-by: Rick Elrod <rick@elrod.me>
2020-07-10 16:21:03 -05:00

6 lines
258 B
Text

# Last,First,Email,Extension
Smith,Jane,jsmith@example.com,1234
Ipsum,Lorem,lipsum@another.example.com,9001
"German von Lastname",Demo,hello@example.com,123123
Example,Person,"crazy email"@example.com,9876
"""The Rock"" Johnson",Dwayne,uhoh@example.com,1337