mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
datasource as cfg: enable editable ds's
This commit is contained in:
@@ -159,6 +159,7 @@ func UpdateDataSource(cmd *m.UpdateDataSourceCommand) error {
|
||||
sess.UseBool("is_default")
|
||||
sess.UseBool("basic_auth")
|
||||
sess.UseBool("with_credentials")
|
||||
sess.UseBool("read_only")
|
||||
|
||||
var updateSession *xorm.Session
|
||||
if cmd.Version != 0 {
|
||||
|
||||
@@ -45,6 +45,7 @@ func TestDataAccess(t *testing.T) {
|
||||
Access: m.DS_ACCESS_DIRECT,
|
||||
Url: "http://test",
|
||||
Database: "site",
|
||||
ReadOnly: true,
|
||||
})
|
||||
|
||||
So(err, ShouldBeNil)
|
||||
@@ -59,6 +60,7 @@ func TestDataAccess(t *testing.T) {
|
||||
|
||||
So(ds.OrgId, ShouldEqual, 10)
|
||||
So(ds.Database, ShouldEqual, "site")
|
||||
So(ds.ReadOnly, ShouldBeTrue)
|
||||
})
|
||||
|
||||
Convey("Given a datasource", func() {
|
||||
|
||||
Reference in New Issue
Block a user