scenarioWithPanel(t,"When an admin tries to get all library panels and two exist and folderFilter is set to existing folders, it should succeed and the result should be correct",
scenarioWithPanel(t,"When an admin tries to get all library panels and two exist and folderFilter is set to a nonexistent folders, it should succeed and the result should be correct",
scenarioWithPanel(t,"When an admin tries to patch a library panel with a folder where a library panel with the same name already exists, it should fail",
testScenario(t,fmt.Sprintf("When %s tries to patch a library panel by moving it to a folder with %s, it should return correct status",testCase.role,testCase.desc),
testScenario(t,fmt.Sprintf("When %s tries to patch a library panel by moving it from a folder with %s, it should return correct status",testCase.role,testCase.desc),
testScenario(t,fmt.Sprintf("When %s tries to delete a library panel in a folder with %s, it should return correct status",testCase.role,testCase.desc),
testScenario(t,fmt.Sprintf("When %s tries to patch a library panel by moving it to the General folder, it should return correct status",testCase.role),
"description":"If nested folders are enabled then it additionally expects the parent folder UID.",
"tags":[
"folders"
],
@ -5362,6 +5363,7 @@
}
},
"put":{
"description":"If nested folders are enabled then it optionally expects a new parent folder UID that moves the folder and\nincludes it into the response.",
"tags":[
"folders"
],
@ -5409,7 +5411,7 @@
}
},
"delete":{
"description":"Deletes an existing folder identified by UID along with all dashboards (and their alerts) stored in the folder. This operation cannot be reverted.",
"description":"Deletes an existing folder identified by UID along with all dashboards (and their alerts) stored in the folder. This operation cannot be reverted.\nIf nested folders are enabled then it also deletes all the subfolders.",
"tags":[
"folders"
],
@ -11399,6 +11401,10 @@
"replyTo":{
"type":"string"
},
"scaleFactor":{
"type":"integer",
"format":"int64"
},
"schedule":{
"$ref":"#/definitions/ScheduleDTO"
},
@ -11618,8 +11624,15 @@
}
},
"CreateFolderCommand":{
"description":"CreateFolderCommand captures the information required by the folder service\nto create a folder.",
"type":"object",
"properties":{
"description":{
"type":"string"
},
"parent_uid":{
"type":"string"
},
"title":{
"type":"string"
},
@ -11706,6 +11719,10 @@
"replyTo":{
"type":"string"
},
"scaleFactor":{
"type":"integer",
"format":"int64"
},
"schedule":{
"$ref":"#/definitions/ScheduleDTO"
},
@ -12051,6 +12068,9 @@
"hasAcl":{
"type":"boolean"
},
"hasPublicDashboard":{
"type":"boolean"
},
"isFolder":{
"type":"boolean"
},
@ -12334,11 +12354,14 @@
"title":"DataResponse contains the results from a DataQuery.",
"properties":{
"Error":{
"description":"Error is a property to be set if the the corresponding DataQuery has an error.",
"description":"Error is a property to be set if the corresponding DataQuery has an error.",
"type":"string"
},
"Frames":{
"$ref":"#/definitions/Frames"
},
"Status":{
"$ref":"#/definitions/Status"
}
}
},
@ -12587,7 +12610,7 @@
"type":"string"
},
"DsPermissionType":{
"description":"Datasource permission\nDescription:\n`0` - No Access\n`1` - Query\nEnum: 0,1",
"description":"Datasource permission\nDescription:\n`0` - No Access\n`1` - Query\n`2` - Edit\nEnum: 0,1,2",
"type":"integer",
"format":"int64"
},
@ -12606,6 +12629,9 @@
"auth_password":{
"$ref":"#/definitions/Secret"
},
"auth_password_file":{
"type":"string"
},
"auth_secret":{
"$ref":"#/definitions/Secret"
},
@ -12963,6 +12989,10 @@
"type":"integer",
"format":"int64"
},
"parent_uid":{
"description":"only used if nested folders are enabled",
"description":"If nested folders are enabled then it additionally expects the parent folder UID.",
"tags":[
"folders"
],
@ -4715,6 +4716,7 @@
}
},
"put":{
"description":"If nested folders are enabled then it optionally expects a new parent folder UID that moves the folder and\nincludes it into the response.",
"tags":[
"folders"
],
@ -4762,7 +4764,7 @@
}
},
"delete":{
"description":"Deletes an existing folder identified by UID along with all dashboards (and their alerts) stored in the folder. This operation cannot be reverted.",
"description":"Deletes an existing folder identified by UID along with all dashboards (and their alerts) stored in the folder. This operation cannot be reverted.\nIf nested folders are enabled then it also deletes all the subfolders.",
"tags":[
"folders"
],
@ -10425,6 +10427,10 @@
"replyTo":{
"type":"string"
},
"scaleFactor":{
"type":"integer",
"format":"int64"
},
"schedule":{
"$ref":"#/definitions/ScheduleDTO"
},
@ -10638,8 +10644,15 @@
}
},
"CreateFolderCommand":{
"description":"CreateFolderCommand captures the information required by the folder service\nto create a folder.",
"type":"object",
"properties":{
"description":{
"type":"string"
},
"parent_uid":{
"type":"string"
},
"title":{
"type":"string"
},
@ -10726,6 +10739,10 @@
"replyTo":{
"type":"string"
},
"scaleFactor":{
"type":"integer",
"format":"int64"
},
"schedule":{
"$ref":"#/definitions/ScheduleDTO"
},
@ -11071,6 +11088,9 @@
"hasAcl":{
"type":"boolean"
},
"hasPublicDashboard":{
"type":"boolean"
},
"isFolder":{
"type":"boolean"
},
@ -11354,11 +11374,14 @@
"title":"DataResponse contains the results from a DataQuery.",
"properties":{
"Error":{
"description":"Error is a property to be set if the the corresponding DataQuery has an error.",
"description":"Error is a property to be set if the corresponding DataQuery has an error.",
"type":"string"
},
"Frames":{
"$ref":"#/definitions/Frames"
},
"Status":{
"$ref":"#/definitions/Status"
}
}
},
@ -11590,7 +11613,7 @@
"type":"string"
},
"DsPermissionType":{
"description":"Datasource permission\nDescription:\n`0` - No Access\n`1` - Query\nEnum: 0,1",
"description":"Datasource permission\nDescription:\n`0` - No Access\n`1` - Query\n`2` - Edit\nEnum: 0,1,2",
"type":"integer",
"format":"int64"
},
@ -11785,6 +11808,10 @@
"type":"integer",
"format":"int64"
},
"parent_uid":{
"description":"only used if nested folders are enabled",
"description":"CreateFolderCommand captures the information required by the folder service\nto create a folder.",
"properties":{
"description":{
"type":"string"
},
"parent_uid":{
"type":"string"
},
"title":{
"type":"string"
},
@ -3097,6 +3121,10 @@
"replyTo":{
"type":"string"
},
"scaleFactor":{
"format":"int64",
"type":"integer"
},
"schedule":{
"$ref":"#/components/schemas/ScheduleDTO"
},
@ -3442,6 +3470,9 @@
"hasAcl":{
"type":"boolean"
},
"hasPublicDashboard":{
"type":"boolean"
},
"isFolder":{
"type":"boolean"
},
@ -3724,11 +3755,14 @@
"description":"A map of RefIDs (unique query identifiers) to this type makes up the Responses property of a QueryDataResponse.\nThe Error property is used to allow for partial success responses from the containing QueryDataResponse.",
"properties":{
"Error":{
"description":"Error is a property to be set if the the corresponding DataQuery has an error.",
"description":"Error is a property to be set if the corresponding DataQuery has an error.",
"type":"string"
},
"Frames":{
"$ref":"#/components/schemas/Frames"
},
"Status":{
"$ref":"#/components/schemas/Status"
}
},
"title":"DataResponse contains the results from a DataQuery.",
@ -3979,7 +4013,7 @@
"type":"string"
},
"DsPermissionType":{
"description":"Datasource permission\nDescription:\n`0` - No Access\n`1` - Query\nEnum: 0,1",
"description":"Datasource permission\nDescription:\n`0` - No Access\n`1` - Query\n`2` - Edit\nEnum: 0,1,2",
"format":"int64",
"type":"integer"
},
@ -3996,6 +4030,9 @@
"auth_password":{
"$ref":"#/components/schemas/Secret"
},
"auth_password_file":{
"type":"string"
},
"auth_secret":{
"$ref":"#/components/schemas/Secret"
},
@ -4354,6 +4391,10 @@
"format":"int64",
"type":"integer"
},
"parent_uid":{
"description":"only used if nested folders are enabled",
"description":"A timestamp indicating the last attempt to deliver a notification regardless of the outcome.\nFormat: date-time",
@ -10057,6 +10105,15 @@
],
"type":"object"
},
"postSilencesOKBody":{
"properties":{
"silenceID":{
"description":"silence ID",
"type":"string"
}
},
"type":"object"
},
"postableAlert":{
"description":"PostableAlert postable alert",
"properties":{
@ -10095,7 +10152,6 @@
"type":"array"
},
"postableSilence":{
"description":"PostableSilence postable silence",
"properties":{
"comment":{
"description":"comment",
@ -10133,6 +10189,7 @@
"type":"object"
},
"receiver":{
"description":"Receiver receiver",
"properties":{
"active":{
"description":"active",
@ -15963,6 +16020,7 @@
]
},
"post":{
"description":"If nested folders are enabled then it additionally expects the parent folder UID.",
"operationId":"createFolder",
"requestBody":{
"content":{
@ -16041,7 +16099,7 @@
},
"/folders/{folder_uid}":{
"delete":{
"description":"Deletes an existing folder identified by UID along with all dashboards (and their alerts) stored in the folder. This operation cannot be reverted.",
"description":"Deletes an existing folder identified by UID along with all dashboards (and their alerts) stored in the folder. This operation cannot be reverted.\nIf nested folders are enabled then it also deletes all the subfolders.",
"operationId":"deleteFolder",
"parameters":[
{
@ -16122,6 +16180,7 @@
]
},
"put":{
"description":"If nested folders are enabled then it optionally expects a new parent folder UID that moves the folder and\nincludes it into the response.",