mirror of
				https://github.com/grafana/grafana.git
				synced 2025-02-25 18:55:37 -06:00 
			
		
		
		
	fix: updated tests
This commit is contained in:
		@@ -70,7 +70,7 @@ func validateDashboardAsConfig(t *testing.T, cfg []*DashboardsAsConfig) {
 | 
			
		||||
	So(len(ds.Options), ShouldEqual, 1)
 | 
			
		||||
	So(ds.Options["path"], ShouldEqual, "/var/lib/grafana/dashboards")
 | 
			
		||||
	So(ds.DisableDeletion, ShouldBeTrue)
 | 
			
		||||
	So(ds.UpdateIntervalSeconds, ShouldEqual, 10)
 | 
			
		||||
	So(ds.UpdateIntervalSeconds, ShouldEqual, 15)
 | 
			
		||||
 | 
			
		||||
	ds2 := cfg[1]
 | 
			
		||||
	So(ds2.Name, ShouldEqual, "default")
 | 
			
		||||
@@ -81,5 +81,5 @@ func validateDashboardAsConfig(t *testing.T, cfg []*DashboardsAsConfig) {
 | 
			
		||||
	So(len(ds2.Options), ShouldEqual, 1)
 | 
			
		||||
	So(ds2.Options["path"], ShouldEqual, "/var/lib/grafana/dashboards")
 | 
			
		||||
	So(ds2.DisableDeletion, ShouldBeFalse)
 | 
			
		||||
	So(ds2.UpdateIntervalSeconds, ShouldEqual, 3)
 | 
			
		||||
	So(ds2.UpdateIntervalSeconds, ShouldEqual, 10)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ providers:
 | 
			
		||||
  folder: 'developers'
 | 
			
		||||
  editable: true
 | 
			
		||||
  disableDeletion: true
 | 
			
		||||
  updateIntervalSeconds: 10
 | 
			
		||||
  updateIntervalSeconds: 15
 | 
			
		||||
  type: file
 | 
			
		||||
  options:
 | 
			
		||||
    path: /var/lib/grafana/dashboards
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
  folder: 'developers'
 | 
			
		||||
  editable: true
 | 
			
		||||
  disableDeletion: true
 | 
			
		||||
  updateIntervalSeconds: 10
 | 
			
		||||
  updateIntervalSeconds: 15
 | 
			
		||||
  type: file
 | 
			
		||||
  options:
 | 
			
		||||
    path: /var/lib/grafana/dashboards
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user