Blame SOURCES/0007-skip-marketplace-plugin-install-test.patch
|
|
05d305 |
From 03a5c7f452efb1dbf605bba8caf3e86e15888c25 Mon Sep 17 00:00:00 2001
|
|
|
05d305 |
From: Andreas Gerstmayr <agerstmayr@redhat.com>
|
|
|
05d305 |
Date: Thu, 23 Jun 2022 17:00:46 +0200
|
|
|
05d305 |
Subject: [PATCH] skip marketplace plugin install test
|
|
|
05d305 |
|
|
|
05d305 |
This test (tries to) install a plugin from the Grafana marketplace.
|
|
|
05d305 |
Network connectivity is disabled in the build environment for security
|
|
|
05d305 |
reasons, therefore we need to disable this test.
|
|
|
05d305 |
|
|
|
05d305 |
diff --git a/pkg/tests/api/plugins/api_plugins_test.go b/pkg/tests/api/plugins/api_plugins_test.go
|
|
|
05d305 |
index e86ce50830..fd60fbe67c 100644
|
|
|
05d305 |
--- a/pkg/tests/api/plugins/api_plugins_test.go
|
|
|
05d305 |
+++ b/pkg/tests/api/plugins/api_plugins_test.go
|
|
|
05d305 |
@@ -55,6 +55,7 @@ func TestPlugins(t *testing.T) {
|
|
|
05d305 |
})
|
|
|
05d305 |
|
|
|
05d305 |
t.Run("Request is not forbidden if from an admin", func(t *testing.T) {
|
|
|
05d305 |
+ t.Skip("this test requires connectivity to the Grafana plugin marketplace (fetching metadata)")
|
|
|
05d305 |
statusCode, body := makePostRequest(t, grafanaAPIURL(usernameAdmin, grafanaListedAddr, "plugins/test/install"))
|
|
|
05d305 |
|
|
|
05d305 |
assert.Equal(t, 404, statusCode)
|