Blame SOURCES/003-fix-dashboard-abspath-test.patch
|
|
77b9e5 |
diff --git a/pkg/services/provisioning/dashboards/file_reader_linux_test.go b/pkg/services/provisioning/dashboards/file_reader_linux_test.go
|
|
|
77b9e5 |
index 3584bbc242..1a89767b69 100644
|
|
|
77b9e5 |
--- a/pkg/services/provisioning/dashboards/file_reader_linux_test.go
|
|
|
77b9e5 |
+++ b/pkg/services/provisioning/dashboards/file_reader_linux_test.go
|
|
|
77b9e5 |
@@ -28,6 +28,7 @@ func TestProvisionedSymlinkedFolder(t *testing.T) {
|
|
|
77b9e5 |
}
|
|
|
77b9e5 |
|
|
|
77b9e5 |
want, err := filepath.Abs(containingID)
|
|
|
77b9e5 |
+ want, err = filepath.EvalSymlinks(want)
|
|
|
77b9e5 |
|
|
|
77b9e5 |
if err != nil {
|
|
|
77b9e5 |
t.Errorf("expected err to be nil")
|
|
|
77b9e5 |
diff --git a/pkg/services/provisioning/dashboards/file_reader_test.go b/pkg/services/provisioning/dashboards/file_reader_test.go
|
|
|
77b9e5 |
index 946d487d5f..2acef40eed 100644
|
|
|
77b9e5 |
--- a/pkg/services/provisioning/dashboards/file_reader_test.go
|
|
|
77b9e5 |
+++ b/pkg/services/provisioning/dashboards/file_reader_test.go
|
|
|
77b9e5 |
@@ -318,6 +318,7 @@ func TestDashboardFileReader(t *testing.T) {
|
|
|
77b9e5 |
}
|
|
|
77b9e5 |
|
|
|
77b9e5 |
absPath1, err := filepath.Abs(unprovision + "/dashboard1.json")
|
|
|
77b9e5 |
+ absPath1, err = filepath.EvalSymlinks(absPath1)
|
|
|
77b9e5 |
So(err, ShouldBeNil)
|
|
|
77b9e5 |
// This one does not exist on disk, simulating a deleted file
|
|
|
77b9e5 |
absPath2, err := filepath.Abs(unprovision + "/dashboard2.json")
|