(t *testing.T, tx *db.ClusterTx, instance, name, key, value string)
| 208 | } |
| 209 | |
| 210 | func addInstanceSnapshotConfig(t *testing.T, tx *db.ClusterTx, instance, name, key, value string) { |
| 211 | id := getInstanceSnapshotID(t, tx, instance, name) |
| 212 | |
| 213 | stmt := ` |
| 214 | INSERT INTO instances_snapshots_config(instance_snapshot_id, key, value) VALUES (?, ?, ?) |
| 215 | ` |
| 216 | _, err := tx.Tx().Exec(stmt, id, key, value) |
| 217 | require.NoError(t, err) |
| 218 | } |
| 219 | |
| 220 | // Return the instance snapshot device ID given its instance snapshot ID and name. |
| 221 | func getInstanceSnapshotDeviceID(t *testing.T, tx *db.ClusterTx, instanceSnapshotID int64, name string) int64 { |
no test coverage detected
searching dependent graphs…