From 7a2852abf6aa6f30d0a034f5c893e901766c0ea2 Mon Sep 17 00:00:00 2001 From: Omkar Gurav Date: Wed, 21 Jun 2023 14:34:12 -0300 Subject: [PATCH] Fix the unit test log dump --- connectors/atp/requirements.txt | 1 + connectors/atp/tests/common_validate.py | 3 ++- connectors/aws/requirements.txt | 1 + connectors/aws/tests/common_validate.py | 2 +- connectors/azure/tests/common_validate.py | 2 +- connectors/tanium/requirements.txt | 1 + 6 files changed, 7 insertions(+), 3 deletions(-) diff --git a/connectors/atp/requirements.txt b/connectors/atp/requirements.txt index 2bcc43e2..f2e40699 100644 --- a/connectors/atp/requirements.txt +++ b/connectors/atp/requirements.txt @@ -1,3 +1,4 @@ adal==1.2.2 car-connector-framework==4.0.0 urllib3==1.26.15 +python-dateutil==2.8.2 diff --git a/connectors/atp/tests/common_validate.py b/connectors/atp/tests/common_validate.py index 8bd96742..2d9807d8 100644 --- a/connectors/atp/tests/common_validate.py +++ b/connectors/atp/tests/common_validate.py @@ -33,6 +33,7 @@ def context_patch(incremental=True): 'last_model_state_id': "1568023215000", 'new_model_state_id': "1580649321920", 'CONFIGURATION_AUTH_TENANT': 'account-123', + 'CONFIGURATION_AUTH_SUBSCRIPTION_ID': 'account-123', 'CONFIGURATION_AUTH_CLIENTID': 'xyz123', 'CONFIGURATION_AUTH_CLIENTSECRET': 'abcxyz', 'vuln': None, @@ -40,7 +41,7 @@ def context_patch(incremental=True): 'export_data_dir': './cache/tmp', 'export_data_page_size': 200, 'CONNECTOR_NAME': "test-connector-name", - 'version': "0.0.0", + 'CONNECTOR_VERSION': "0.0.0", } Context(Struct(context_args)) diff --git a/connectors/aws/requirements.txt b/connectors/aws/requirements.txt index 0c402fc4..c121191c 100644 --- a/connectors/aws/requirements.txt +++ b/connectors/aws/requirements.txt @@ -2,3 +2,4 @@ boto3==1.24.83 adal==1.2.2 car-connector-framework==4.0.0 urllib3==1.26.15 +python-dateutil==2.8.2 diff --git a/connectors/aws/tests/common_validate.py b/connectors/aws/tests/common_validate.py index 2fe57dca..f768b6ca 100644 --- a/connectors/aws/tests/common_validate.py +++ b/connectors/aws/tests/common_validate.py @@ -36,7 +36,7 @@ def context_patch(): 'last_model_state_id': "1580649320000", 'new_model_state_id': "1580649321920", 'CONNECTOR_NAME': "test-connector-name", - 'version': "0.0.0", + 'CONNECTOR_VERSION': "0.0.0", 'export_data_dir': './cache/tmp', 'export_data_page_size': 200 } diff --git a/connectors/azure/tests/common_validate.py b/connectors/azure/tests/common_validate.py index f7a60cb9..fc9b5da4 100644 --- a/connectors/azure/tests/common_validate.py +++ b/connectors/azure/tests/common_validate.py @@ -40,7 +40,7 @@ def context_patch(incremental=True): 'last_model_state_id': "1568023215000", 'new_model_state_id': "1580649321920", 'CONNECTOR_NAME': "test-connector-name", - 'version': "0.0.0", + 'CONNECTOR_VERSION': "0.0.0", } Context(Struct(context_args)) diff --git a/connectors/tanium/requirements.txt b/connectors/tanium/requirements.txt index 3dce2c57..8d7778d8 100644 --- a/connectors/tanium/requirements.txt +++ b/connectors/tanium/requirements.txt @@ -1 +1,2 @@ car-connector-framework==4.0.0 +python-dateutil==2.8.2 \ No newline at end of file