From 7c6227c0614a281c58b5de2f9aade9129d438f80 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Tue, 18 Sep 2018 11:18:55 -0700 Subject: [PATCH] remove the test that does not do anything --- pkg/api/pluginproxy/ds_proxy_test.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/pkg/api/pluginproxy/ds_proxy_test.go b/pkg/api/pluginproxy/ds_proxy_test.go index e120472ccfb..e6d05872787 100644 --- a/pkg/api/pluginproxy/ds_proxy_test.go +++ b/pkg/api/pluginproxy/ds_proxy_test.go @@ -374,29 +374,6 @@ func TestDSRouteRule(t *testing.T) { }) }) - Convey("When proxying a custom datasource", func() { - plugin := &plugins.DataSourcePlugin{} - - ds := &m.DataSource{ - Type: "custom-datasource", - Url: "http://host/root/", - } - - ctx := &m.ReqContext{} - proxy := NewDataSourceProxy(ds, plugin, ctx, "") - - req, err := http.NewRequest(http.MethodGet, "http://host/root/path/to/folder/", nil) - So(err, ShouldBeNil) - - proxy.getDirector()(req) - - Convey("Shoudl keep user request (including trailing slash)", func() { - So(req.URL.String(), ShouldEqual, "http://host/root/path/to/folder/") - // Fails with: - // Expected: 'http://host/root/path/to/folder/' - // Actual: 'http://host/root/' - }) - }) }) }