-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Communication] - phone-numbers - Implement a phone number pool for l…
…ive tests (#27072) * Implement a phone number pool for live tests * Fix pipeline script * Add MatrixConfigs param to communication template This allows for individual packages to customize their job matrix if needed. * Require test agent phone number in livetests Throw an exception when there is no phone number assigned to the current test agent. This only applies when not skipping update capabilities live tests. The main purpose of this is for the test run to fail when it isn't properly configured, instead of silently falling back on the default method for setting the test phone number.
- Loading branch information
1 parent
6a93edf
commit 5c09976
Showing
6 changed files
with
149 additions
and
53 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
sdk/communication/azure-communication-phonenumbers/phone-numbers-livetest-matrix.json
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,58 @@ | ||
{ | ||
"displayNames": { | ||
"true": "TestFromSource" | ||
}, | ||
"matrix": { | ||
"Agent": { | ||
"ubuntu-20.04": { | ||
"OSVmImage": "MMSUbuntu20.04", | ||
"Pool": "azsdk-pool-mms-ubuntu-2004-general", | ||
"JavaTestVersion": "1.8", | ||
"AZURE_TEST_HTTP_CLIENTS": "okhttp", | ||
"AZURE_TEST_AGENT": "ubuntu_2004_java8" | ||
}, | ||
"macOS-10.15": { | ||
"OSVmImage": "macOS-10.15", | ||
"Pool": "Azure Pipelines", | ||
"JavaTestVersion": "1.11", | ||
"AZURE_TEST_HTTP_CLIENTS": "netty", | ||
"AZURE_TEST_AGENT": "macos_1015_java11" | ||
} | ||
}, | ||
"SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "false", | ||
"TestFromSource": false, | ||
"TestGoals": "surefire:test", | ||
"TestOptions": "" | ||
}, | ||
"include": [ | ||
{ | ||
"Agent": { | ||
"ubuntu-20.04": { | ||
"OSVmImage": "MMSUbuntu20.04", | ||
"Pool": "azsdk-pool-mms-ubuntu-2004-general" | ||
} | ||
}, | ||
"JavaTestVersion": "1.11", | ||
"AZURE_TEST_HTTP_CLIENTS": "netty", | ||
"TestFromSource": true, | ||
"TestGoals": "verify", | ||
"TestOptions": "-DskipCompile=true -DskipTestCompile=true -DcreateSourcesJar=false", | ||
"SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "true" | ||
}, | ||
{ | ||
"Agent": { | ||
"windows-2019": { | ||
"OSVmImage": "MMS2019", | ||
"Pool": "azsdk-pool-mms-win-2019-general" | ||
} | ||
}, | ||
"JavaTestVersion": "1.11", | ||
"AZURE_TEST_HTTP_CLIENTS": "netty", | ||
"TestFromSource": false, | ||
"TestGoals": "verify", | ||
"TestOptions": "-DskipCompile=true -DskipTestCompile=true -DcreateSourcesJar=false", | ||
"SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "false", | ||
"AZURE_TEST_AGENT": "windows_2019_java11" | ||
} | ||
] | ||
} |
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
Oops, something went wrong.