-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds subscription option for DT endpoint create. (#201)
* Tweak to CI unit test execution. Execute tests based on pattern. * Upped timeout values for endpoints and removed kwarg from command layer. * Re-added "--source" for relationship source twin, for those that want to use "--source" & "--target" conventions.
- Loading branch information
Showing
8 changed files
with
137 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
steps: | ||
- task: PythonScript@0 | ||
displayName : 'Set test envs with sentinel values' | ||
name: 'setTestEnvSentinel' | ||
inputs: | ||
scriptSource: 'inline' | ||
script: | | ||
# This task is in place to get around DevOps pipelines env var naming rules which would require | ||
# application code changes. | ||
sentinel_value = "sentinel" | ||
envvars = [ | ||
"azext_iot_testhub", | ||
"azext_iot_testhub_cs", | ||
"azext_iot_testrg", | ||
"azext_iot_testdps", | ||
"azext_pnp_endpoint", | ||
"azext_pnp_repository", | ||
"azext_pnp_cs", | ||
"azext_iot_central_app_id", | ||
"azext_iot_central_device_template_path", | ||
] | ||
f = open("./pytest.ini", "w+") | ||
f.write("[pytest]\n") | ||
f.write("junit_family = xunit1\n") | ||
f.write("env = \n") | ||
envvars_sentinel = [" {}={}\n".format(envvar, sentinel_value) for envvar in envvars] | ||
f.writelines(envvars_sentinel) | ||
f.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters