summaryrefslogtreecommitdiff
path: root/0006-skip-marketplace-plugin-install-test.patch
diff options
context:
space:
mode:
Diffstat (limited to '0006-skip-marketplace-plugin-install-test.patch')
-rw-r--r--0006-skip-marketplace-plugin-install-test.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/0006-skip-marketplace-plugin-install-test.patch b/0006-skip-marketplace-plugin-install-test.patch
new file mode 100644
index 0000000..d56fe4e
--- /dev/null
+++ b/0006-skip-marketplace-plugin-install-test.patch
@@ -0,0 +1,21 @@
+From a23cb1162fd705147489915667b83a236ad248be Mon Sep 17 00:00:00 2001
+From: Andreas Gerstmayr <agerstmayr@redhat.com>
+Date: Thu, 23 Jun 2022 17:00:46 +0200
+Subject: [PATCH] skip marketplace plugin install test
+
+This test (tries to) install a plugin from the Grafana marketplace.
+Network connectivity is disabled in the build environment for security
+reasons, therefore we need to disable this test.
+
+diff --git a/pkg/tests/api/plugins/api_plugins_test.go b/pkg/tests/api/plugins/api_plugins_test.go
+index 0d62275c4b..c237aa9389 100644
+--- a/pkg/tests/api/plugins/api_plugins_test.go
++++ b/pkg/tests/api/plugins/api_plugins_test.go
+@@ -56,6 +56,7 @@ func TestPlugins(t *testing.T) {
+ })
+
+ t.Run("Request is not forbidden if from an admin", func(t *testing.T) {
++ t.Skip("this test requires connectivity to the Grafana plugin marketplace (fetching metadata)")
+ statusCode, body := makePostRequest(t, grafanaAPIURL(usernameAdmin, grafanaListedAddr, "plugins/test/install"))
+
+ assert.Equal(t, 404, statusCode)