Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions scripts/ci/credscan/CredScanSuppressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,18 @@
"src\\azure-cli\\azure\\cli\\command_modules\\rdbms\\flexible_server_custom_postgres.py"
],
"_justification": "[RDBMS] False positive"
},
{
"file": [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do some modifications, such as change the order of files

"src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/data/azure_postgres_db_user_pwd.yaml",
"src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/data/azure_my_sql_db_user_pwd.yaml",
"src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/data/azure_sql_db_user_pwd.yaml",
"src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/data/azure_synapse_analytics_user_pwd.yaml",
"src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/data/container_registry_user_pass.yaml",
"src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/data/python_feed_user_pass.yaml",
"src/azure-cli/azure/cli/command_modules/cognitiveservices/tests/latest/data/snowflake_user_pwd.yaml"
],
"_justification": "[cognitiveservices] request password for testing"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..'))

class CognitiveServicesConnectionLoadingTests(unittest.TestCase):
INPUT_DATA_PATH: str = os.path.join(TEST_DIR, 'input_data', 'connections')
INPUT_DATA_PATH: str = os.path.join(TEST_DIR, 'data')

def test_load_connections(self):
from azure.cli.command_modules.cognitiveservices._utils import load_connection_from_source
Expand All @@ -24,7 +24,7 @@ def test_load_connections(self):

class CognitiveServicesAccountConnectionsTests(ScenarioTest):

INPUT_DATA_PATH: str = os.path.join(TEST_DIR, 'input_data', 'connections')
INPUT_DATA_PATH: str = os.path.join(TEST_DIR, 'data')

@ResourceGroupPreparer()
def test_account_connections_from_file(self, resource_group):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class CognitiveServicesProjectConnectionsTests(ScenarioTest):

INPUT_DATA_PATH=os.path.join(TEST_DIR, 'input_data', 'connections')
INPUT_DATA_PATH=os.path.join(TEST_DIR, 'data')

@ResourceGroupPreparer()
def test_project_connections_from_file(self, resource_group):
Expand Down