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
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class AzureAppConfigurationClient():

from azure.data.appconfiguration.aio import AzureAppConfigurationClient
connection_str = "<my connection string>"
async_client = AzureAppConfigurationClient(connection_str)
async_client = AzureAppConfigurationClient.from_connection_string(connection_str)
"""

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class AzureAppConfigurationClient():

from azure.data.appconfiguration import AzureAppConfigurationClient
connection_str = "<my connection string>"
client = AzureAppConfigurationClient(connection_str)
client = AzureAppConfigurationClient.from_connection_string(connection_str)
"""

@classmethod
Expand Down
27 changes: 27 additions & 0 deletions sdk/appconfiguration/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
trigger: none

jobs:
- template: ../../eng/pipelines/templates/jobs/archetype-sdk-tests.yml
parameters:
Matrix:
Linux_Python35:
OSName: 'Linux'
OSVmImage: 'ubuntu-16.04'
PythonVersion: '3.5'
MacOs_Python37:
OSName: 'MacOS'
OSVmImage: 'macOS-10.14'
PythonVersion: '3.7'
Windows_Python27:
OSName: 'Windows'
OSVmImage: 'vs2017-win2016'
PythonVersion: '2.7'
Linux_Pypy3:
OSName: 'Linux'
OSVmImage: 'ubuntu-16.04'
PythonVersion: 'pypy3'
BuildTargetingString: $(BuildTargetingString)
Copy link
Member

Choose a reason for hiding this comment

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

This looks good! The variable $(BuildTargetString) is configurable at the pipeline level. You can safely put just your data-plane package name at the pipeline variable level. Can walk you through that if you need!

Copy link
Member

Choose a reason for hiding this comment

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

Agreed. Because this tests.yml file is specific to appconfiguration it's ok to hardcode the value you want to use here instead of configuring it manually in the pipeline.

We want to avoid pipelines that require manual configuration because it makes pipeline automation more difficult.

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean I can just hard code "azure-data-appconfiguration"?

Copy link
Member

Choose a reason for hiding this comment

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

Discussed offline. Set queue time variable on AzureDevOps: BuildTargetingString == "azure-data-appconfiguration"

ServiceDirectory: appconfiguration
EnvVars:
APP_CONFIG_CONNECTION: $(python-appconfiguration-connection-string)
TEST_MODE: 'RunLiveNoRecord'