azure-sdk-for-js/common/smoke-test/smoke-tests.yml

8 строки
173 B
YAML
Исходник Обычный вид История

variables:
- template: /eng/pipelines/templates/variables/globals.yml
Smoke Test rearchitecture: deploy test resources and opt-out samples (#8388) * add ability to skip smoke tests based on the presence of environment variables parameterize test-resources.json disable cosmos db smoke testing in china cloud add --ci to smoke test execution add yargs to smoke tests smoke tests: @types/yargs is unnecessary, add await in app turns out @types/yargs is required use KeyVaultSecrets instead of this incremental sample compiling progress first cut at using sample format for smoke tests Smoke test deploys, onboards samples Fix pre-samples.js Add environment variable output to New-TestResources.ps1 Update smoke test package.json Update-SmokeTests.ps1 - variable outputs for CI, start documenting New-TestResources.ps1 output environment variables Update smoke tests yaml * Remove Smoke Test resources in yaml * parameters * Update smoke-tests.yml * Fix prep-samples.js * Remove extra * * Formatting for prep-samples.js * Revert "Remove extra *" This reverts commit f0c1b3f36b474f09d2cd49ee2abb327ad0236f10. * Move Node version higher so Update-SmokeTests.ps1 can use it * node run.js * Set AZURE_RESOURCEGROUP_NAME at the top level so delete scripts can clean up after * Add run.js * Give ability to specify blank service directory in remove-test-resources.yml * Add ability to specify resource group name directly to New-TestResources.ps1 * Add devops logging for smoke test failures * Better command layout * Update KV test resources to include KEYVAULT_URI for samples * Fix App Config and KV to use environment variables from the test-resources.json * Add in package.json configuration to skip certain failing files in smoke tests * Add ability to skip samples based on configuration information in package.json * Remove ArmTemplateParameters from smoke tests * Delete test resources after 24 hours * Add contacts.js (timing out) to skip * Add deleteAndRecover.js to skip list * Skip backupAndRestore.js in KV Secrets * Improve smoke test error logging * Skip useProxy.js in Service Bus smoke tests * Use ARM template params in sovereign clouds * Remove base smoke test cases * Use configruable storage endpoint suffix in event hub ARM template * Use baseName for the basis of the GUID * Set environment variables from standard config * Set sample directory when running each test to preserve sample context * Idempotent naming * Force $CI to $false * Use proces.cwd() instead of __dirname * Skip samples where confiugrations are not present in test-resources.json * Add support for storage endpoint suffix to storage test-resources.json * Also exclude copyModel.js * Compute account name for text analytics so we don't collied with test resources that have the same name * Add endpoint information for cognitive services * Skip some storage tests because of hardcoded endpoint suffix * Skip ai-text-analytics pending further investigation * Proper spelling for customPipeline * New-TestResources -- if $CI is true AND a ResourceGroupName is specified, do not mututae the $BaseName * Always generate a new $BaseName when $CI is $true. If we don't do this and reuse $BaseName then multiple resources of the same type might get deployed with the same name and there will be collisions * Remove samples-manifest.json * Use static name for cognitive services user role assignment to avoid smoke test collision * Form Recognizer should use resource group location * Role assignment names must be GUIDs * Update search SKU so deployment succeeds * Fix form recognizer and text analytrics ARM templates to assign RBAC roles directly to the resources * Unique guid for Text Analytrics role assignment * Use relative paths in Initialize-SmokeTests.ps1 * Add --use-packages to samples prep to use package references instead of source references * Move //smokeTestConfiguration from samples package.json to the package's package.json * Add in better path support * Update Smoke Test README.md * Use globbing to find samples/javascript folders inside packages * Remove extra files * Remove hard coded test cases * Remove smoke-test/test-resources.json * Use context to set AZURE_AUTHORITY_HOST * Spacing * Document -ResourceGroupName parameter * workingDirector -> workingDirectory * no inputs * Skip template samples as the samples do not run properly * Set environment variables for test application in the initilize script * Exclude authenticationMethods.js and recognizeContent.js samples because of smoke test errors * Remove setting AZURE_AUTHORITY_HOST in New-TestResources.ps1 and set it in Initialize-SmokeTest.ps1 * Review feedback: use APPCONFIG_CONNECTION_STRING in samples and tests * Review feedback KEYVAULT_NAME -> KEYVAULT_URI in all samples and docs for KV * Make sample.env files consistent * Skip deploying and onboarding when there is no test-resources.json file
2020-08-05 19:03:44 +03:00
jobs:
- template: /eng/pipelines/templates/jobs/smoke.tests.yml
parameters:
Daily: true