(t *testing.T)
| 35 | } |
| 36 | |
| 37 | func TestFileTypeChangeSimpleVersioning(t *testing.T) { |
| 38 | // Use simple versioning |
| 39 | id, _ := protocol.DeviceIDFromString(id2) |
| 40 | cfg, _, _ := config.Load("h2/config.xml", id, events.NoopLogger) |
| 41 | fld := cfg.Folders()["default"] |
| 42 | fld.Versioning = config.VersioningConfiguration{ |
| 43 | Type: "simple", |
| 44 | Params: map[string]string{"keep": "5"}, |
| 45 | } |
| 46 | cfg.SetFolder(fld) |
| 47 | os.Rename("h2/config.xml", "h2/config.xml.orig") |
| 48 | defer os.Rename("h2/config.xml.orig", "h2/config.xml") |
| 49 | cfg.Save() |
| 50 | |
| 51 | testFileTypeChange(t) |
| 52 | } |
| 53 | |
| 54 | func TestFileTypeChangeStaggeredVersioning(t *testing.T) { |
| 55 | // Use staggered versioning |
nothing calls this directly
no test coverage detected