You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, values is an argument being passed into accepted_values, whereas severity is a configuration being set for the test.
In the legacy syntax, there is no distinction between "arguments" and "configurations." With the new recommended syntax, there is a distinction, because all configs are nested under config.
The desirable outcome is that:
Users can pass whatever configs they want into config: (new syntax), e.g. snowflake_warehouse
We continue to use the explicit list of named configs to provide backwards compatibility for the legacy syntax
Acceptance criteria
Users can pass whatever configs they want into config: (new syntax), e.g. snowflake_warehouse
We continue to use the explicit list of named configs to provide backwards compatibility for the legacy syntax
To make it concrete: In the following example, accepted_values_my_model_colour__blue__red should end up with both configurations severity: warn and custom_config: custom_value.
In the example above, the test should be parsed to have both configs: custom_config via recommended syntax, and severity via old syntax.
It should be possible to write a unit test for this, but the logic is baked into TestBuilder, which is quite complicated. Refactoring that is out of scope for this particular issue.
The closest existing functional test case is this one.
As such, it might be best to create a new functional test instead.
Housekeeping
Short description
Currently, we only support a specific set of named configurations for generic tests. That list is defined here and accessed here.
The context is that we support two syntaxes for passing configs into generic tests:
In this example,
values
is an argument being passed intoaccepted_values
, whereasseverity
is a configuration being set for the test.In the legacy syntax, there is no distinction between "arguments" and "configurations." With the new recommended syntax, there is a distinction, because all configs are nested under
config
.The desirable outcome is that:
config:
(new syntax), e.g.snowflake_warehouse
Acceptance criteria
config:
(new syntax), e.g.snowflake_warehouse
To make it concrete: In the following example,
accepted_values_my_model_colour__blue__red
should end up with both configurationsseverity: warn
andcustom_config: custom_value
.Suggested Tests
In the example above, the test should be parsed to have both configs:
custom_config
via recommended syntax, andseverity
via old syntax.It should be possible to write a unit test for this, but the logic is baked into
TestBuilder
, which is quite complicated. Refactoring that is out of scope for this particular issue.The closest existing functional test case is this one.
As such, it might be best to create a new functional test instead.
Impact to Other Teams
Adapters
Will backports be required?
no
Context
Original issue:
The text was updated successfully, but these errors were encountered: