# Copyright 2021 The Kubeflow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# kubeflow-pipelines-samples-v2 test config
# Documentation: https://github.com/kubeflow/pipelines/tree/master/v2/test
#
#### config format
#
# Each item in the list corresponds to test for one sample.
#
# The field `path` corresponds to the test's python module path
# e.g. if folder path is `samples/test/fail_test.py`, then module path is
# `samples.test.fail_test`.

# Core Samples
- name: condition
  path: samples.core.condition.condition_test
- name: nested_condition
  path: samples.core.condition.nested_condition_test
- name: exit_handler
  path: samples.core.exit_handler.exit_handler_test
- name: output_a_directory
  path: samples.core.output_a_directory.output_a_directory_test
- name: loop_output
  path: samples.core.loop_output.loop_output_test
- name: loop_static
  path: samples.core.loop_static.loop_static_test
- name: loop_parameter
  path: samples.core.loop_parameter.loop_parameter_test
- name: loop_parallelism
  path: samples.core.loop_parallelism.loop_parallelism_test
- name: resource_spec
  path: samples.core.resource_spec.resource_spec_test
- name: runtime_resource_spec
  path: samples.core.resource_spec.runtime_resource_request_test
- name: xgboost_sample
  path: samples.core.XGBoost.xgboost_sample_test
- name: use_run_id
  path: samples.core.use_run_info.use_run_id_test
- name: multiple_outputs
  path: samples.core.multiple_outputs.multiple_outputs_test
- name: lightweight_component
  path: samples.core.lightweight_component.lightweight_component_test
- name: dsl_static_type_checking
  path: samples.core.dsl_static_type_checking.dsl_static_type_checking_test
- name: pipeline_transformers
  path: samples.core.pipeline_transformers.pipeline_transformers_test
- name: secret
  path: samples.core.secret.secret_test
- name: sidecar
  path: samples.core.sidecar.sidecar_test
- name: execution_order
  path: samples.core.execution_order.execution_order_test
- name: imagepullsecrets
  path: samples.core.imagepullsecrets.imagepullsecrets_test
- name: retry
  path: samples.core.retry.retry_test
- name: preemptible_tpu_gpu
  path: samples.core.preemptible_tpu_gpu.preemptible_tpu_gpu_test
- name: volume_snapshot_ops
  path: samples.core.volume_snapshot_ops.volume_snapshot_ops_test
- name: resource_ops
  path: samples.core.resource_ops.resource_ops_test
- name: caching
  path: samples.core.caching.caching_test
- name: parallelism_sub_dag
  path: samples.core.parallelism_sub_dag.parallelism_sub_dag_test

# Test Samples
- name: fail
  path: samples.test.fail_test
- name: fail_parameter_value_missing
  path: samples.test.fail_parameter_value_missing_test
- name: two_step
  path: samples.test.two_step_test
- name: two_step_with_uri_placeholder
  path: samples.test.two_step_with_uri_placeholder_test
# TODO(capri-xiyue): re-enable cache v2 tests
# - name: cache_v2_compatible
#   path: samples.test.cache_v2_compatible_test
- name: after
  path: samples.test.after_test
- name: legacy_data_passing
  path: samples.test.legacy_data_passing
- name: parameter_with_format
  path: samples.test.parameter_with_format_test
- name: reused_component
  path: samples.test.reused_component_test
- name: legacy_exit_handler
  path: samples.test.legacy_exit_handler_test
- name: tensorboard_minio
  path: samples.core.visualization.tensorboard_minio_test
- name: lightweight_python_functions_v2_with_outputs
  path: samples.test.lightweight_python_functions_v2_with_outputs_test
- name: lightweight_python_functions_v2_pipeline
  path: samples.test.lightweight_python_functions_v2_pipeline_test
- name: placeholder_concat
  path: samples.test.placeholder_concat_test
- name: placeholder_if
  path: samples.test.placeholder_if_test
- name: metrics_visualization_v1
  path: samples.test.metrics_visualization_v1_test
- name: metrics_visualization_v2
  path: samples.test.metrics_visualization_v2_test

# V2 Samples
- name: hello_world
  path: samples.v2.hello_world_test
- name: producer_consumer_param
  path: samples.v2.producer_consumer_param_test
- name: pipeline_with_importer
  path: samples.v2.pipeline_with_importer_test
# TODO(capri-xiyue): Re-enable after figuring out V2 Engine
# and protobuf.Value support.
# - name: cache_v2
#   path: samples.v2.cache_test
