@@ -474,7 +474,7 @@ functions:
474
474
args :
475
475
- .evergreen/install-dependencies.sh
476
476
477
- " install aws-credential-providers" :
477
+ " remove aws-credential-providers" :
478
478
- command : shell.exec
479
479
type : setup
480
480
params :
@@ -483,7 +483,7 @@ functions:
483
483
script : |
484
484
${PREPARE_SHELL}
485
485
source "${PROJECT_DIRECTORY}/.evergreen/init-node-and-npm-env.sh"
486
- npm install @aws-sdk/credential-providers
486
+ rm -rf ./node_modules/ @aws-sdk/credential-providers
487
487
488
488
" run atlas tests " :
489
489
- command : shell.exec
@@ -674,6 +674,8 @@ functions:
674
674
- command : shell.exec
675
675
type : test
676
676
params :
677
+ env :
678
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
677
679
working_dir : " src"
678
680
script : |
679
681
${PREPARE_SHELL}
@@ -711,6 +713,8 @@ functions:
711
713
- command : shell.exec
712
714
type : test
713
715
params :
716
+ env :
717
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
714
718
working_dir : " src"
715
719
script : |
716
720
${PREPARE_SHELL}
@@ -734,6 +738,8 @@ functions:
734
738
- command : shell.exec
735
739
type : test
736
740
params :
741
+ env :
742
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
737
743
working_dir : " src"
738
744
script : |
739
745
${PREPARE_SHELL}
@@ -761,6 +767,8 @@ functions:
761
767
- command : shell.exec
762
768
type : test
763
769
params :
770
+ env :
771
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
764
772
working_dir : " src"
765
773
script : |
766
774
${PREPARE_SHELL}
@@ -788,6 +796,7 @@ functions:
788
796
- command : shell.exec
789
797
type : test
790
798
params :
799
+ add_expansions_to_env : true
791
800
working_dir : " src"
792
801
script : |
793
802
${PREPARE_SHELL}
@@ -815,6 +824,8 @@ functions:
815
824
- command : shell.exec
816
825
type : test
817
826
params :
827
+ env :
828
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
818
829
working_dir : " src"
819
830
script : |
820
831
${PREPARE_SHELL}
@@ -841,6 +852,8 @@ functions:
841
852
- command : shell.exec
842
853
type : test
843
854
params :
855
+ env :
856
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
844
857
working_dir : " src"
845
858
script : |
846
859
${PREPARE_SHELL}
@@ -851,6 +864,8 @@ functions:
851
864
type : test
852
865
params :
853
866
working_dir : src
867
+ env :
868
+ MONGODB_AWS_SDK : ${MONGODB_AWS_SDK}
854
869
shell : bash
855
870
script : |
856
871
${PREPARE_SHELL}
@@ -859,10 +874,16 @@ functions:
859
874
860
875
# pack up project directory to ssh it to the container
861
876
mkdir -p $ECS_SRC_DIR/.evergreen
877
+
878
+ set -ex
879
+
880
+ echo "export MONGODB_AWS_SDK=$MONGODB_AWS_SDK" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
881
+ 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
882
+ echo "npm run check:aws" >> $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh
883
+
862
884
cp $PROJECT_DIRECTORY/.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR/.evergreen
863
885
tar -czf $ECS_SRC_DIR/src.tgz -C $PROJECT_DIRECTORY .
864
886
865
- set -ex
866
887
cd ${DRIVERS_TOOLS}/.evergreen/auth_aws
867
888
. ./activate-authawsvenv.sh
868
889
export MONGODB_BINARIES="${MONGODB_BINARIES}";
0 commit comments