Automatically upload export to master server

Upload the created export data zip file to a new /api/upload-export
endpoint on the master server which unpacks it into the appropriate
directory on the master.
This commit is contained in:
Hornwitser committed 2020-05-26 15:31:42 +02:00
1 parent f3d4cfdcf5
commit 36cf14074e
5 files changed
+62 -4

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ describe("Integration of Clusterio", function() {
it("exports the data", async function() {
slowTest(this);
await exec(`node clusterctl --config ${controlConfigPath} export-data --instance test`);
assert(await fs.exists(path.join("temp", "export.zip")), "Export was not created");
assert(await fs.exists(path.join("static", "export", "locale.json")), "Export was not created");
});
});