From 8f1a0b5a010787a397b81f716063291ab8794901 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Mon, 6 May 2024 12:37:15 +1000 Subject: [PATCH] added rowsaffected to executeStmt --- tests/pystackql_tests.py | 3 --- tests/test_params.py | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/pystackql_tests.py b/tests/pystackql_tests.py index 30ce3a7..7650f04 100644 --- a/tests/pystackql_tests.py +++ b/tests/pystackql_tests.py @@ -41,9 +41,6 @@ def setUpModule(): print("downloading aws provider for tests...") res = PyStackQLTestsBase.stackql.executeStmt(registry_pull_aws_query) print(res) - print("downloading awscc provider for tests...") - res = PyStackQLTestsBase.stackql.executeStmt(registry_pull_awscc_query) - print(res) print("downloading google provider for tests...") res = PyStackQLTestsBase.stackql.executeStmt(registry_pull_google_query) print(res) diff --git a/tests/test_params.py b/tests/test_params.py index f6fee02..2f5297f 100644 --- a/tests/test_params.py +++ b/tests/test_params.py @@ -27,7 +27,6 @@ def get_custom_download_dir(platform_name): registry_pull_google_query = "REGISTRY PULL google" registry_pull_aws_query = "REGISTRY PULL aws" -registry_pull_awscc_query = "REGISTRY PULL awscc" registry_pull_okta_query = "REGISTRY PULL okta" registry_pull_github_query = "REGISTRY PULL github" @@ -44,7 +43,7 @@ def registry_pull_resp_pattern(provider): aws_query = f""" SELECT -SPLIT_PART(CreationDate, '-', 1) as year, count(*) as num_buckets FROM aws.s3.buckets +SPLIT_PART(CreationDate, '-', 1) as year, count(*) as num_buckets FROM aws.s3_api.buckets WHERE region = 'us-east-1' GROUP BY year """ @@ -54,7 +53,7 @@ def registry_pull_resp_pattern(provider): async_queries = [ f""" SELECT region, COUNT(*) as num_functions - FROM awscc.lambda.functions + FROM aws.lambda.functions WHERE region = '{region}' """ for region in regions