Skip to content

Commit de36050

Browse files
keetonianpraneetap
authored andcommitted
chore: fix failing tests (#1312)
1 parent b8a8711 commit de36050

File tree

3 files changed

+78
-12
lines changed

3 files changed

+78
-12
lines changed

tests/translator/output/all_policy_templates.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,11 +1445,33 @@
14451445
"Statement": [
14461446
{
14471447
"Action": [
1448-
"athena:GetWorkGroup",
1449-
"athena:GetQueryExecution",
1448+
"athena:ListWorkGroups",
1449+
"athena:GetExecutionEngine",
1450+
"athena:GetExecutionEngines",
1451+
"athena:GetNamespace",
1452+
"athena:GetCatalogs",
1453+
"athena:GetNamespaces",
1454+
"athena:GetTables",
1455+
"athena:GetTable"
1456+
],
1457+
"Resource": "*",
1458+
"Effect": "Allow"
1459+
},
1460+
{
1461+
"Action": [
14501462
"athena:StartQueryExecution",
1463+
"athena:GetQueryResults",
1464+
"athena:DeleteNamedQuery",
1465+
"athena:GetNamedQuery",
1466+
"athena:ListQueryExecutions",
14511467
"athena:StopQueryExecution",
1452-
"athena:GetQueryResults"
1468+
"athena:GetQueryResultsStream",
1469+
"athena:ListNamedQueries",
1470+
"athena:CreateNamedQuery",
1471+
"athena:GetQueryExecution",
1472+
"athena:BatchGetNamedQuery",
1473+
"athena:BatchGetQueryExecution",
1474+
"athena:GetWorkGroup"
14531475
],
14541476
"Resource": {
14551477
"Fn::Sub": [
@@ -1474,4 +1496,4 @@
14741496
}
14751497
}
14761498
}
1477-
}
1499+
}

tests/translator/output/aws-cn/all_policy_templates.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,11 +1445,33 @@
14451445
"Statement": [
14461446
{
14471447
"Action": [
1448-
"athena:GetWorkGroup",
1449-
"athena:GetQueryExecution",
1448+
"athena:ListWorkGroups",
1449+
"athena:GetExecutionEngine",
1450+
"athena:GetExecutionEngines",
1451+
"athena:GetNamespace",
1452+
"athena:GetCatalogs",
1453+
"athena:GetNamespaces",
1454+
"athena:GetTables",
1455+
"athena:GetTable"
1456+
],
1457+
"Resource": "*",
1458+
"Effect": "Allow"
1459+
},
1460+
{
1461+
"Action": [
14501462
"athena:StartQueryExecution",
1463+
"athena:GetQueryResults",
1464+
"athena:DeleteNamedQuery",
1465+
"athena:GetNamedQuery",
1466+
"athena:ListQueryExecutions",
14511467
"athena:StopQueryExecution",
1452-
"athena:GetQueryResults"
1468+
"athena:GetQueryResultsStream",
1469+
"athena:ListNamedQueries",
1470+
"athena:CreateNamedQuery",
1471+
"athena:GetQueryExecution",
1472+
"athena:BatchGetNamedQuery",
1473+
"athena:BatchGetQueryExecution",
1474+
"athena:GetWorkGroup"
14531475
],
14541476
"Resource": {
14551477
"Fn::Sub": [
@@ -1474,4 +1496,4 @@
14741496
}
14751497
}
14761498
}
1477-
}
1499+
}

tests/translator/output/aws-us-gov/all_policy_templates.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,11 +1445,33 @@
14451445
"Statement": [
14461446
{
14471447
"Action": [
1448-
"athena:GetWorkGroup",
1449-
"athena:GetQueryExecution",
1448+
"athena:ListWorkGroups",
1449+
"athena:GetExecutionEngine",
1450+
"athena:GetExecutionEngines",
1451+
"athena:GetNamespace",
1452+
"athena:GetCatalogs",
1453+
"athena:GetNamespaces",
1454+
"athena:GetTables",
1455+
"athena:GetTable"
1456+
],
1457+
"Resource": "*",
1458+
"Effect": "Allow"
1459+
},
1460+
{
1461+
"Action": [
14501462
"athena:StartQueryExecution",
1463+
"athena:GetQueryResults",
1464+
"athena:DeleteNamedQuery",
1465+
"athena:GetNamedQuery",
1466+
"athena:ListQueryExecutions",
14511467
"athena:StopQueryExecution",
1452-
"athena:GetQueryResults"
1468+
"athena:GetQueryResultsStream",
1469+
"athena:ListNamedQueries",
1470+
"athena:CreateNamedQuery",
1471+
"athena:GetQueryExecution",
1472+
"athena:BatchGetNamedQuery",
1473+
"athena:BatchGetQueryExecution",
1474+
"athena:GetWorkGroup"
14531475
],
14541476
"Resource": {
14551477
"Fn::Sub": [
@@ -1474,4 +1496,4 @@
14741496
}
14751497
}
14761498
}
1477-
}
1499+
}

0 commit comments

Comments
 (0)