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