pipelines/components/aws/sagemaker/tests/unit_tests
Kartik Kalamadi 079eea369a
fix(components): Print logs for AWS SageMaker components (#4879)
* Print logs for Processing and Batch Transform

* Change image in yamls

* Add unit tests for cw calls

* update version in license file to 1.1.1

* generate yaml for the new version

* update changelog
2021-02-23 19:19:14 -08:00
..
tests fix(components): Print logs for AWS SageMaker components (#4879) 2021-02-23 19:19:14 -08:00
.gitignore AWS Sagemaker : Add unit tests (#3642) 2020-04-30 01:32:18 -07:00
Dockerfile refactor(components): AWS SageMaker - Full component refactoring (#4336) 2020-10-27 14:17:57 -07:00
README.md feat(components) Adds RoboMaker and SageMaker RLEstimator components (#4813) 2020-12-11 13:27:27 -08:00
check_formatting.sh refactor(components): AWS SageMaker - Full component refactoring (#4336) 2020-10-27 14:17:57 -07:00
check_generated_specifications.sh refactor(components): AWS SageMaker - Full component refactoring (#4336) 2020-10-27 14:17:57 -07:00
pytest.ini [AWS SageMaker] Unit tests for Training component (#3722) 2020-05-13 16:14:22 -07:00
run_automated_test.sh refactor(components): AWS SageMaker - Full component refactoring (#4336) 2020-10-27 14:17:57 -07:00
run_unit_tests.sh refactor(components): AWS SageMaker - Full component refactoring (#4336) 2020-10-27 14:17:57 -07:00

README.md

Unit tests for AWS SageMaker KFP Components

How to run these tests

Method 1 : Run these tests using docker

  1. Clone the git repo
    git clone https://github.com/kubeflow/pipelines.git
    
  2. Build the dockerfile
    cd pipelines
    docker build . -f ./components/aws/sagemaker/tests/unit_tests/Dockerfile -t amazon/unit-test-aws-sagemaker-kfp-components
    
  3. Run all unit tests
    docker run -it -v <path_to_this_repo_on_your_machine>:/app/ amazon/unit-test-aws-sagemaker-kfp-components:latest
    
    This runs the tests against a mounted volume from your host machine. This means you can edit the files and rerun the tests immediately without having to rebuild the docker container.

Method 2 : Run these tests locally

  1. Clone the git repo
    git clone https://github.com/kubeflow/pipelines.git
    
  2. Install the pip packages required for testing
    cd pipelines/components/aws/sagemaker/
    
    pip install -r requirements.txt 
    
  3. Run all unit tests
    cd tests/unit_tests/
    
    ./run_unit_tests.sh