diff options
author | Aravinth Manivannan <realaravinth@batsense.net> | 2022-01-26 09:45:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 10:45:51 +0100 |
commit | 3bb028cc46401a8a54ecab7e7c035dbb24937b6c (patch) | |
tree | bff1aaaaa9d5eef6b9d1c520337e3cc51153b9e2 /integrations | |
parent | 49dd9067535538771ef13623ed1dd9698a4a2151 (diff) | |
download | gitea-3bb028cc46401a8a54ecab7e7c035dbb24937b6c.tar.gz gitea-3bb028cc46401a8a54ecab7e7c035dbb24937b6c.zip |
Validate migration files (#18203)
JSON Schema validation for data used by Gitea during migrations
Discussion at https://forum.forgefriends.org/t/common-json-schema-for-repository-information/563
Co-authored-by: Loïc Dachary <loic@dachary.org>
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/dump_restore_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/dump_restore_test.go b/integrations/dump_restore_test.go index 053ca47855..c0e583293c 100644 --- a/integrations/dump_restore_test.go +++ b/integrations/dump_restore_test.go @@ -81,7 +81,7 @@ func TestDumpRestore(t *testing.T) { // newreponame := "restoredrepo" - err = migrations.RestoreRepository(ctx, d, repo.OwnerName, newreponame, []string{"labels", "milestones", "issues", "comments"}) + err = migrations.RestoreRepository(ctx, d, repo.OwnerName, newreponame, []string{"labels", "milestones", "issues", "comments"}, false) assert.NoError(t, err) newrepo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{Name: newreponame}).(*repo_model.Repository) |