From 6862c7baf8a6f50d1ed571bbdb835b565bf2082c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Tue, 9 Nov 2021 15:06:14 +0100 Subject: [PATCH] Chore: Fix broken variable tests (#41472) * Chore: skip failing tests * Chore: fix broken variables tests --- .drone.yml | 3 ++- public/app/features/variables/inspect/utils.test.ts | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4b46e7ef26e..95b3fef16bd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3430,5 +3430,6 @@ kind: secret name: drone_token --- kind: signature -hmac: 7f5e6041ab60e051c2dd6858adff840fa77e57ac9a7befc73aaab28f588c2318 +hmac: 21ecb408dfa778e70baa888dc5a3dc6f049aac7784ad0d7605b021cf27b02cd5 + ... diff --git a/public/app/features/variables/inspect/utils.test.ts b/public/app/features/variables/inspect/utils.test.ts index 209c5d25241..e3524f38346 100644 --- a/public/app/features/variables/inspect/utils.test.ts +++ b/public/app/features/variables/inspect/utils.test.ts @@ -1522,7 +1522,9 @@ const dashWithTemplateDependenciesAndPanels: any = { text: ['A'], value: ['A'], }, - datasource: '${ds}', + datasource: { + uid: '${ds}', + }, definition: '*', description: null, error: null, @@ -1603,7 +1605,9 @@ const dashWithTemplateDependenciesAndPanels: any = { text: 'AB', value: 'AB', }, - datasource: '${ds}', + datasource: { + uid: '${ds}', + }, definition: '$query_with_ds.*', description: null, error: null,