Skip to content

Conversation

@zahrasidhpuri-crest
Copy link
Contributor

@zahrasidhpuri-crest zahrasidhpuri-crest commented Apr 1, 2020

Merged the test cases "props fields with no dash" and "props fields with no empty values" in one.

op = ""
for f in splunk_app_fields["fields"]:
search = search + f' {op} {f}="-"'
search = search + f' {op} {f}="-" OR {f}=""'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please update the variable name in the file from f to field

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

op = "OR"
operator = ""
for field in splunk_app_fields["fields"]:
search = search + f' {operator} {field}="-" OR {field}=""'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add parenthesis to OR for multiple fields.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@nariyanibhargav nariyanibhargav merged commit 1fe9bd3 into develop Apr 1, 2020
@nariyanibhargav nariyanibhargav deleted the feature/ACD-4056-Merge-test-cases-for-empty-and-dash-fields branch April 1, 2020 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants