@@ -478,7 +478,7 @@ functions:
478
478
args :
479
479
- .evergreen/install-dependencies.sh
480
480
481
- " install aws-credential-providers" :
481
+ " remove aws-credential-providers" :
482
482
- command : shell.exec
483
483
type : setup
484
484
params :
@@ -487,7 +487,7 @@ functions:
487
487
script : |
488
488
${PREPARE_SHELL}
489
489
source "${PROJECT_DIRECTORY}/.evergreen/init-node-and-npm-env.sh"
490
- npm install @aws-sdk/credential-providers
490
+ rm -rf ./node_modules/ @aws-sdk/credential-providers
491
491
492
492
" run atlas tests " :
493
493
- command : shell.exec
@@ -676,6 +676,8 @@ functions:
676
676
- command : shell.exec
677
677
type : test
678
678
params :
679
+ env :
680
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
679
681
working_dir : " src"
680
682
script : |
681
683
${PREPARE_SHELL}
@@ -713,6 +715,8 @@ functions:
713
715
- command : shell.exec
714
716
type : test
715
717
params :
718
+ env :
719
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
716
720
working_dir : " src"
717
721
script : |
718
722
${PREPARE_SHELL}
@@ -736,6 +740,8 @@ functions:
736
740
- command : shell.exec
737
741
type : test
738
742
params :
743
+ env :
744
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
739
745
working_dir : " src"
740
746
script : |
741
747
${PREPARE_SHELL}
@@ -763,6 +769,8 @@ functions:
763
769
- command : shell.exec
764
770
type : test
765
771
params :
772
+ env :
773
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
766
774
working_dir : " src"
767
775
script : |
768
776
${PREPARE_SHELL}
@@ -790,6 +798,7 @@ functions:
790
798
- command : shell.exec
791
799
type : test
792
800
params :
801
+ add_expansions_to_env : true
793
802
working_dir : " src"
794
803
script : |
795
804
${PREPARE_SHELL}
@@ -817,6 +826,8 @@ functions:
817
826
- command : shell.exec
818
827
type : test
819
828
params :
829
+ env :
830
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
820
831
working_dir : " src"
821
832
script : |
822
833
${PREPARE_SHELL}
@@ -843,6 +854,8 @@ functions:
843
854
- command : shell.exec
844
855
type : test
845
856
params :
857
+ env :
858
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
846
859
working_dir : " src"
847
860
script : |
848
861
${PREPARE_SHELL}
@@ -853,6 +866,8 @@ functions:
853
866
type : test
854
867
params :
855
868
working_dir : src
869
+ env :
870
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
856
871
shell : bash
857
872
script : |
858
873
${PREPARE_SHELL}
@@ -861,10 +876,16 @@ functions:
861
876
862
877
# pack up project directory to ssh it to the container
863
878
mkdir -p $ECS_SRC_DIR/.evergreen
879
+
880
+ set -ex
881
+
882
+ echo "export MONGODB_AWS_SDK=$MONGODB_AWS_SDK" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
883
+ echo "if [ $MONGODB_AWS_SDK = 'false' ]; then rm -rf ./node_modules/@aws-sdk/credential-providers; fi" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
884
+ echo "npm run check:aws" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
885
+
864
886
cp $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR/.evergreen
865
887
tar -czf $ECS_SRC_DIR/src.tgz -C $PROJECT_DIRECTORY .
866
888
867
- set -ex
868
889
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
869
890
. ./activate-authawsvenv.sh
870
891
export MONGODB_BINARIES="${MONGODB_BINARIES}";
0 commit comments