mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 23:30:41 +09:00
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:
1 parent
f3d4cfdcf5
commit
36cf14074e
5 files changed
+62
-4
No files matched your search
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user