2021-09-28 08:36:33 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test "x$srcdir" = x ; then srcdir=`pwd`; fi
|
|
|
|
. ../test_common.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export NC_TEST_AWS_DIR=`pwd`
|
|
|
|
|
|
|
|
rm -fr ./.aws
|
|
|
|
mkdir .aws
|
|
|
|
cat >.aws/config <<EOF
|
|
|
|
[default]
|
|
|
|
aws_access_key_id=ACCESSKEYDEFAULTXXXX
|
|
|
|
aws_secret_access_key=DEFAULT/ef0ghijklmnopqr/defaultxxxxxxxxx
|
|
|
|
[ncar]
|
|
|
|
aws_access_key_id=ACCESSKEYNCARXXXXXXX
|
|
|
|
aws_secret_access_key=NCAR/ef0ghijklmnopqr/ncarxxxxxxxxxxxxxxx
|
|
|
|
[unidata]
|
|
|
|
aws_access_key_id=ACCESSKEYUNIDATAXXXX
|
2021-10-01 03:45:09 +08:00
|
|
|
|
2021-09-28 08:36:33 +08:00
|
|
|
aws_secret_access_key=UNIDATA/ef0ghijklmnopqr/unidataxxxxxxxxx
|
2021-10-01 03:45:09 +08:00
|
|
|
; comment1
|
2021-09-28 08:36:33 +08:00
|
|
|
aws_region=us-west-1
|
2021-10-01 03:45:09 +08:00
|
|
|
;comment2
|
2021-09-28 08:36:33 +08:00
|
|
|
EOF
|
|
|
|
|
|
|
|
${execdir}/test_aws
|
|
|
|
|
2021-10-01 03:45:09 +08:00
|
|
|
rm -fr .aws
|
2021-09-28 08:36:33 +08:00
|
|
|
|