2024-03-15 13:59:38 +03:00
|
|
|
#[allow(dead_code)]
|
|
|
|
mod common;
|
|
|
|
|
|
|
|
#[test]
|
2024-04-02 20:06:13 +03:00
|
|
|
fn test_introspect_command_with_preset_arguments() -> anyhow::Result<()> {
|
2024-03-15 13:59:38 +03:00
|
|
|
let common_metadata_path_string = "execute/common_metadata/custom_connector_schema.json";
|
|
|
|
let common_command_metadata_path_string = "execute/common_metadata/command_metadata.json";
|
|
|
|
|
|
|
|
common::test_introspection_expectation(
|
2024-03-20 11:41:17 +03:00
|
|
|
"execute/commands/functions/command_argument_presets/",
|
|
|
|
&[
|
|
|
|
common_metadata_path_string,
|
|
|
|
common_command_metadata_path_string,
|
|
|
|
],
|
2024-04-02 20:06:13 +03:00
|
|
|
)
|
2024-03-20 11:41:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
2024-04-02 20:06:13 +03:00
|
|
|
fn test_introspect_model_with_preset_arguments_select_many() -> anyhow::Result<()> {
|
2024-03-20 11:41:17 +03:00
|
|
|
let common_metadata_path_string = "execute/common_metadata/custom_connector_schema.json";
|
|
|
|
let common_command_metadata_path_string = "execute/common_metadata/command_metadata.json";
|
|
|
|
|
|
|
|
common::test_introspection_expectation(
|
|
|
|
"execute/commands/functions/model_argument_presets_select_many/",
|
|
|
|
&[
|
|
|
|
common_metadata_path_string,
|
|
|
|
common_command_metadata_path_string,
|
|
|
|
],
|
2024-04-02 20:06:13 +03:00
|
|
|
)
|
2024-03-20 11:41:17 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
2024-04-02 20:06:13 +03:00
|
|
|
fn test_introspect_model_with_preset_arguments_select_one() -> anyhow::Result<()> {
|
2024-03-20 11:41:17 +03:00
|
|
|
let common_metadata_path_string = "execute/common_metadata/custom_connector_schema.json";
|
|
|
|
let common_command_metadata_path_string = "execute/common_metadata/command_metadata.json";
|
|
|
|
|
|
|
|
common::test_introspection_expectation(
|
|
|
|
"execute/commands/functions/model_argument_presets_select_one/",
|
2024-03-15 13:59:38 +03:00
|
|
|
&[
|
|
|
|
common_metadata_path_string,
|
|
|
|
common_command_metadata_path_string,
|
|
|
|
],
|
2024-04-02 20:06:13 +03:00
|
|
|
)
|
2024-03-15 13:59:38 +03:00
|
|
|
}
|
2024-03-20 12:22:56 +03:00
|
|
|
|
|
|
|
#[test]
|
2024-04-02 20:06:13 +03:00
|
|
|
fn test_graphql_deprecated() -> anyhow::Result<()> {
|
2024-03-20 12:22:56 +03:00
|
|
|
let common_custom_connector_path_string =
|
|
|
|
"execute/common_metadata/custom_connector_schema.json";
|
|
|
|
common::test_introspection_expectation(
|
|
|
|
"execute/deprecated",
|
|
|
|
&[common_custom_connector_path_string],
|
2024-04-02 20:06:13 +03:00
|
|
|
)
|
2024-03-20 12:22:56 +03:00
|
|
|
}
|