Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: test query fields with only a measurement predicate #3900

Merged
merged 1 commit into from
Jul 29, 2021

Conversation

williamhbaker
Copy link
Contributor

While working on influxdata/influxdb#21962, I found that the existing show_fields_xxx.flux tests did not include one where there is only a single predicate of _measurement. show_fields_with_pred_test.flux has a predicate of _measurement as well as one for an additional tag, and show_fields_test.flux does not have a filter.

This additional test will cover the case of only having a predicate of _measurement. It is primarily useful to me since I am planning to tweak the OSS logic related to a query like this.

Copy link
Contributor

@fchikwekwe fchikwekwe left a comment

Choose a reason for hiding this comment

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

@wbaker85 we've been migrating our existing end to end tests to a newer format that uses the testcase keyword instead of the test keyword. I don't think we have a guide for this yet, but here's an example https://github.com/influxdata/flux/blob/master/stdlib/universe/pivot_table_test.flux. Happy to pair if you need help converting your test.

Copy link
Contributor

@fchikwekwe fchikwekwe left a comment

Choose a reason for hiding this comment

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

Thanks for making that change and for adding this test!

@williamhbaker williamhbaker force-pushed the wb-fields-with-meas-pred-test branch from 6760ddb to c879e5e Compare July 29, 2021 17:19
@williamhbaker williamhbaker force-pushed the wb-fields-with-meas-pred-test branch from c879e5e to 93dbc4c Compare July 29, 2021 17:26
@williamhbaker williamhbaker merged commit f0c2513 into master Jul 29, 2021
@williamhbaker williamhbaker deleted the wb-fields-with-meas-pred-test branch July 29, 2021 17:45
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.

2 participants