1
0
mirror of https://git.cloudron.io/cloudron/syncthing-app synced 2025-09-13 08:19:09 +00:00

Compare commits

...

16 Commits

Author SHA1 Message Date
Girish Ramakrishnan
5d87c13269 Version 1.18.0 2021-07-12 09:44:30 -07:00
Girish Ramakrishnan
f3a6a74028 Update syncthing to 1.18.0 2021-07-12 09:19:29 -07:00
Girish Ramakrishnan
29d09bf7bd Version 1.17.0 2021-07-12 09:18:56 -07:00
Girish Ramakrishnan
0a69ac3577 Update test packages 2021-07-12 09:11:55 -07:00
Girish Ramakrishnan
ab8a2af60d Update syncthing to 1.17.0 2021-07-12 09:10:17 -07:00
Johannes Zellner
1416ab42fd Bump version for 1.16.1 2021-05-06 10:36:24 +02:00
Johannes Zellner
36e9f3d435 Update test deps 2021-05-03 16:17:53 +02:00
Johannes Zellner
f32e5162a7 Bump version for 1.16.0 2021-05-03 16:13:51 +02:00
Johannes Zellner
2263288b5d Fix name typo 2021-04-08 14:37:37 +02:00
Johannes Zellner
58ca4d15bd Bump version for 1.15.1 2021-04-06 11:39:45 +02:00
Johannes Zellner
f1b0fc4097 Fixup tests 2021-04-06 11:24:39 +02:00
Johannes Zellner
cb832e1c5d Update test deps 2021-04-06 10:12:06 +02:00
Johannes Zellner
64a6e8bbf6 Bump version for 1.15.0 2021-04-06 09:51:16 +02:00
Johannes Zellner
7f64910521 Bump version for 1.14.0 2021-03-03 12:14:25 +01:00
Girish Ramakrishnan
f84cc9fc51 Version 1.13.0 2021-02-22 11:11:37 -08:00
Girish Ramakrishnan
558c36e859 Update base image to v3 2021-02-22 11:04:36 -08:00
8 changed files with 377 additions and 463 deletions

View File

@@ -202,3 +202,34 @@
* #6540: Config PATCH/PUT/DELETE API
* #7099: Add a html message to GUI when javascript is disabled
* #7108: Certificate for relaysrv with better naming
[1.13.0]
* Update base image to v3
[1.14.0]
* Update Syncthing to 1.14.0
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.14.0)
[1.15.0]
* Update Syncthing to 1.15.0
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.15.0)
[1.15.1]
* Update Syncthing to 1.15.1
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.15.1)
[1.16.0]
* Update Syncthing to 1.16.0
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.16.0)
[1.16.1]
* Update Syncthing to 1.16.1
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.16.1)
[1.17.0]
* Update Syncthing to 1.17.0
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.17.0)
[1.18.0]
* Update Syncthing to 1.18.0
* [Full changelog](https://github.com/syncthing/syncthing/releases/tag/v1.18.0)

View File

@@ -5,7 +5,7 @@
"description": "file://DESCRIPTION.md",
"changelog": "file://CHANGELOG",
"tagline": "Decentralized file synchronization",
"version": "1.12.1",
"version": "1.18.0",
"healthCheckPath": "/healthcheck",
"httpPort": 8000,
"addons": {

View File

@@ -1,4 +1,4 @@
This app packages Syncthing <upstream>1.12.0</upstream>.
This app packages Syncthing <upstream>1.18.0</upstream>.
Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet.

View File

@@ -1,10 +1,10 @@
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
ARG VERSION=1.12.0
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
RUN mkdir -p /app/code
WORKDIR /app/code
ARG VERSION=1.18.0
RUN wget https://github.com/syncthing/syncthing/releases/download/v${VERSION}/syncthing-linux-amd64-v${VERSION}.tar.gz -O - | tar -xz -C /app/code --strip-components=1
# add supervisor configs

View File

@@ -26,4 +26,4 @@ sed -e 's,<gui .*>,<gui enabled="true" tls="false" debugging="false">,' -i /app/
chown -R cloudron:cloudron /app/data /run/syncthing
echo "Starting supervisor"
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i GitLab
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i syncthing

745
test/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -9,9 +9,9 @@
"author": "",
"license": "ISC",
"dependencies": {
"chromedriver": "^87.0.0",
"chromedriver": "^91.0.1",
"expect.js": "^0.3.1",
"mocha": "^8.2.1",
"mocha": "^9.0.2",
"selenium-webdriver": "^3.6.0",
"superagent": "^6.1.0"
}

View File

@@ -1,12 +1,13 @@
#!/usr/bin/env node
'use strict';
/* jshint esversion: 8 */
/* global describe */
/* global before */
/* global after */
/* global it */
'use strict';
require('chromedriver');
var execSync = require('child_process').execSync,
@@ -64,6 +65,10 @@ describe('Application life cycle test', function () {
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
return browser.get('https://' + app.fqdn);
});
}).then(function () {
return browser.sleep(5000);
}).then(function () {
return browser.get('https://' + app.fqdn);
}).then(function () {
return waitForElement(By.xpath('//span[text()="Actions"]'));
}).then(function () {
@@ -95,6 +100,10 @@ describe('Application life cycle test', function () {
function checkFolder(callback) {
browser.get('https://' + app.fqdn).then(function () {
return browser.sleep(5000);
}).then(function () {
return browser.get('https://' + app.fqdn);
}).then(function () {
return browser.wait(until.elementLocated(By.xpath(`//span[text()="${FOLDER}"]`)), TEST_TIMEOUT);
}).then(function () {
callback();
@@ -141,19 +150,19 @@ describe('Application life cycle test', function () {
it('can add folder', addFolder);
it('backup app', function () { execSync('cloudron backup create --app ' + app.id, EXEC_ARGS); });
it('restore app', function () { execSync('cloudron restore --app ' + app.id, EXEC_ARGS); });
it('restore app', async function () {
await browser.get('about:blank');
execSync('cloudron restore --app ' + app.id, EXEC_ARGS);
});
it('wait', wait);
it('can load page', loadPage);
it('can check folder', checkFolder);
it('move to different location', function (done) {
// ensure we don't hit NXDOMAIN in the mean time
browser.get('about:blank').then(function () {
it('move to different location', async function () {
await browser.get('about:blank');
execSync(`cloudron configure --location ${LOCATION}2 --app ${app.id}`, EXEC_ARGS);
done();
});
});
it('can get app information', getAppInfo);
@@ -163,11 +172,9 @@ describe('Application life cycle test', function () {
it('can check folder', checkFolder);
it('can remove folder', removeFolder);
it('uninstall app', function (done) {
browser.get('about:blank').then(function () {
it('uninstall app', async function () {
await browser.get('about:blank');
execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS);
done();
});
});
// test update
@@ -176,14 +183,15 @@ describe('Application life cycle test', function () {
it('wait', wait);
it('can load page', loadPage);
it('can add folder', addFolder);
it('can update', function () { execSync('cloudron update --app ' + LOCATION, EXEC_ARGS); });
it('can update', async function () {
await browser.get('about:blank');
execSync('cloudron update --app ' + LOCATION, EXEC_ARGS);
});
it('wait', wait);
it('can check folder', checkFolder);
it('uninstall app', function (done) {
browser.get('about:blank').then(function () {
it('uninstall app', async function () {
await browser.get('about:blank');
execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS);
done();
});
});
});