Skip to content

Commit 90c8e9c

Browse files
general-kroll-4-lifelisa-123
authored andcommitted
idempotent-dependency-management
added-aws-iam-test-ro Alt AWS IAM test
1 parent ddc6f00 commit 90c8e9c

File tree

2 files changed

+42
-12
lines changed

2 files changed

+42
-12
lines changed

scripts/local/ci/01-gather.sh

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,26 @@ REPOSITORY_ROOT_DIR="$(realpath ${SCRIPT_DIR}/../../..)"
88

99
cd "${REPOSITORY_ROOT_DIR}"
1010

11-
git clone --revision=refs/heads/main https://github.com/stackql/stackql.git stackql-core
1211

13-
git clone --revision=refs/heads/main https://github.com/stackql/any-sdk.git stackql-any-sdk
12+
# Check if the directory already exists
13+
if [ -d "stackql-core" ]; then
14+
>&2 echo "Directory stackql-core already exists. Skipping clone."
15+
cd "${REPOSITORY_ROOT_DIR}/stackql-core"
16+
git pull origin main
17+
cd "${REPOSITORY_ROOT_DIR}"
18+
else
19+
>&2 echo "Cloning stackql-core repository..."
20+
git clone --revision=refs/heads/main https://github.com/stackql/stackql.git stackql-core
21+
fi
1422

23+
24+
# Check if the directory already exists
25+
if [ -d "stackql-any-sdk" ]; then
26+
>&2 echo "Directory stackql-any-sdk already exists. Skipping clone."
27+
cd "${REPOSITORY_ROOT_DIR}/stackql-any-sdk"
28+
git pull origin main
29+
cd "${REPOSITORY_ROOT_DIR}"
30+
else
31+
>&2 echo "Cloning stackql-any-sdk repository..."
32+
git clone --revision=refs/heads/main https://github.com/stackql/any-sdk.git stackql-any-sdk
33+
fi

test/robot/stackql/live/readonly/live_readonly.robot

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,24 @@ AWS Route53 List Record Sets Simple
4949
... ${EMPTY}
5050
... AWS-Route53-List-Record-Sets-Simple
5151

52-
# AWS IAM Users Subquery Left Joined With Aliasing and Name Collision
53-
# [Documentation] AWS IAM Users Complex Query. Acceptable to hardcoode region for global resource.
54-
# [Tags] aws iam users aws.iam aws.iam.users tier_1
55-
# ${inputStr} = Catenate
56-
# ... select u1.UserName, u.UserId, u.Arn, u1.region from ( select Arn, UserName, UserId from aws.iam.users where region = 'us-east-1' ) u inner join aws.iam.users u1 on u1.Arn = u.Arn where region = 'us-east-1' order by u1.UserName desc;
57-
# Stock Stackql Exec Inline Contains Both Streams
58-
# ... ${inputStr}
59-
# ... UserName
60-
# ... ${EMPTY}
61-
# ... AWS-IAM-Users-Subquery-Left-Joined-With-Aliasing-and-Name-Collision
52+
AWS IAM Users Simple Admin Exists
53+
[Documentation] AWS IAM Users Simple Query. Acceptable to hardcoode region for global resource.
54+
[Tags] aws iam users aws.iam aws.iam.users tier_1
55+
${inputStr} = Catenate
56+
... select split_part(arn, ':', -1) as arn_extract, user_name from aws.iam.users where region = 'us-east-1' and user_name = 'kieran.rimmer';
57+
Stock Stackql Exec Inline Contains Both Streams
58+
... ${inputStr}
59+
... user/kieran.rimmer
60+
... ${EMPTY}
61+
... AWS-IAM-Users-Simple-Admin-Exists
62+
63+
AWS IAM Users Simple Alt Admin Exists
64+
[Documentation] AWS IAM Users Simple Query. Acceptable to hardcoode region for global resource.
65+
[Tags] aws iam users aws.iam aws.iam.users tier_1
66+
${inputStr} = Catenate
67+
... select split_part(arn, ':', -1) as arn_extract, user_name from aws.iam.users where region = 'us-east-1' and user_name = 'jeffrey.aven';
68+
Stock Stackql Exec Inline Contains Both Streams
69+
... ${inputStr}
70+
... user/jeffrey.aven
71+
... ${EMPTY}
72+
... AWS-IAM-Users-Simple-Alt-Admin-Exists

0 commit comments

Comments
 (0)