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 Existing QB Validation Errors #82

Closed
8 tasks done
robons opened this issue Jul 12, 2021 · 0 comments
Closed
8 tasks done

Test Existing QB Validation Errors #82

robons opened this issue Jul 12, 2021 · 0 comments
Assignees

Comments

@robons
Copy link
Contributor

robons commented Jul 12, 2021

validation tests (do not use the info.json interface to set these tests up, use the internal common model). Use the utils.qb.cube.validate_qb_component_constraints(...) method to perform validation in these tests.

  • Define a cube with no dimensions. Ensure that validation yields a suitable warning.
  • Define a cube with a QbSingleMeasureObservationValue with a unit defined. Also define a QbMultiUnits column. Only one of these should be defined; ensure that validation yields a suitable warning.
  • Define a cube with a QbSingleMeasureObservationValue but do not provide a unit. Do not define a QbMultiUnits column. A unit should be provided in one of these locations; ensure that validation yields a suitable warning.
  • Define a cube with more than one QbMultiUnits columns. Only one should be defined; ensure that validation yields a suitable warning.
  • Define a cube with more than one QbObservationValue columns. Only one should be defined; ensure that validation yields a suitable warning.
  • Define a cube with a QbMultiMeasureObservationValue, but do not define a QbMultiMeasureDimension; ensure that validation yields a suitable warning.
  • Define a cube with a QbMultiMeasureObservationValue, and define more than one QbMultiMeasureDimension. Only one should be defined; ensure that validation yields a suitable warning.
  • Define a cube with a QbSingleMeasureObservationValue and also define a QbMultiMeasureDimension. These types are incompatible; ensure that validation yields a suitable warning.
@robons robons changed the title Implement validation tests Test Existing QB Validation Errors Jul 13, 2021
@robons robons self-assigned this Aug 5, 2021
robons pushed a commit that referenced this issue Aug 5, 2021
… generated.

Also done some work to provide more specific types (and information) with the error messages to enable different interfaces to create their own specialised error messages better tailored to their user's understanding.
robons pushed a commit that referenced this issue Aug 6, 2021
…ture APIs providing tailored error messages to users.
robons pushed a commit that referenced this issue Aug 6, 2021
… generated.

Also done some work to provide more specific types (and information) with the error messages to enable different interfaces to create their own specialised error messages better tailored to their user's understanding.
robons pushed a commit that referenced this issue Aug 6, 2021
…ture APIs providing tailored error messages to users.
robons added a commit that referenced this issue Aug 6, 2021
@robons robons closed this as completed Aug 6, 2021
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

No branches or pull requests

1 participant