AzureMonitor - E2E tests drone update (#57100)
* Update e2e command with video flag * Add Cloud Plugins E2E tests to drone * Update env variable names * Add vault Azure secrets * Update e2e steps * Update secrets path * Update image and rebuild drone file * Readd drone changes * Rebuild drone * Remake drone * Correct reference to secret * Remake drone file * Remove unneeded step * Clear values in Arg query
This commit is contained in:
@@ -731,6 +731,41 @@ def e2e_tests_step(suite, edition, port=3001, tries=None):
|
||||
],
|
||||
}
|
||||
|
||||
def cloud_plugins_e2e_tests_step(suite, edition, cloud, port=3001, video="false", trigger=None):
|
||||
environment = {}
|
||||
when = {}
|
||||
if trigger:
|
||||
when = trigger
|
||||
if cloud == 'azure':
|
||||
environment = {
|
||||
'CYPRESS_CI': 'true',
|
||||
'HOST': 'grafana-server' + enterprise2_suffix(edition),
|
||||
'GITHUB_TOKEN': from_secret('github_token_pr'),
|
||||
'AZURE_SP_APP_ID': from_secret('azure_sp_app_id'),
|
||||
'AZURE_SP_PASSWORD': from_secret('azure_sp_app_pw'),
|
||||
'AZURE_TENANT': from_secret('azure_tenant')
|
||||
}
|
||||
when= dict(when, paths={
|
||||
'include' : [
|
||||
'pkg/tsdb/azuremonitor/**',
|
||||
'public/app/plugins/datasource/grafana-azure-monitor-datasource/**'
|
||||
]
|
||||
})
|
||||
branch = "${DRONE_SOURCE_BRANCH}".replace("/", "-")
|
||||
step = {
|
||||
'name': 'end-to-end-tests-{}-{}'.format(suite, cloud) + enterprise2_suffix(edition),
|
||||
'image': 'us-docker.pkg.dev/grafanalabs-dev/cloud-data-sources/e2e:latest',
|
||||
'depends_on': [
|
||||
'grafana-server',
|
||||
],
|
||||
'environment': environment,
|
||||
'commands': [
|
||||
'cd /',
|
||||
'./cpp-e2e/scripts/ci-run.sh {} {}'.format(cloud, branch)
|
||||
],
|
||||
}
|
||||
step = dict(step, when=when)
|
||||
return step
|
||||
|
||||
def build_docs_website_step():
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user