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

Compare commits

..

15 Commits

Author SHA1 Message Date
Girish Ramakrishnan
ae1f3401ae Version 1.0.5 2018-08-08 18:17:51 -07:00
Girish Ramakrishnan
7dd3979bdc Update Syncthing to 0.14.49 2018-08-08 18:16:29 -07:00
Girish Ramakrishnan
a5a91b09c8 Version 1.0.4 2018-06-07 09:26:24 -07:00
Girish Ramakrishnan
91335ebc70 Update syncthing to 0.14.48 2018-06-07 09:21:41 -07:00
Girish Ramakrishnan
c0ba039523 Version 1.0.3 2018-05-02 13:33:56 -07:00
Girish Ramakrishnan
9f78b41ca2 make the tests work 2018-05-02 13:33:07 -07:00
Girish Ramakrishnan
5c2828f669 Fix paranthesis 2018-05-02 13:22:27 -07:00
Girish Ramakrishnan
391419d9f4 Update syncthing to 0.14.47 2018-05-02 13:10:39 -07:00
Girish Ramakrishnan
d99a39a0e5 Version 1.0.2 2018-04-08 00:12:35 -07:00
Girish Ramakrishnan
ab3a81a67b update package.json 2018-04-08 00:11:57 -07:00
Girish Ramakrishnan
8e5306db31 install chromedriver 2018-04-06 17:02:37 -07:00
Girish Ramakrishnan
e73991042d Update syncthing to 0.14.46 2018-04-06 17:01:24 -07:00
Girish Ramakrishnan
d566e12bc9 Version 1.0.1 2018-03-06 09:42:25 -08:00
Girish Ramakrishnan
6d051c2ad1 Update syncthing to 0.14.45 2018-03-06 09:25:21 -08:00
Girish Ramakrishnan
72d3757c51 add bad login test 2018-02-26 18:15:29 -08:00
6 changed files with 53 additions and 14 deletions

View File

@@ -68,3 +68,22 @@
* #4657: Sparse files with zero blocks are not closed when pulling
* #4668: Remote device out of sync items shows "0 items, ~0 B"
[1.0.1]
* Updated to version 0.14.45
* #4659: panic: bug: removed more than added
* #4680: Ignore pattern beginning with "#" does not match subpaths
* #4689: Ignore patterns in web UI aren't reloaded if only comments change
* #4701: Global is different from local state when ignoring files
[1.0.2]
* Update Syncthing to version 0.14.46
[1.0.3]
* Update Syncthing to version 0.14.47
[1.0.4]
* Update Syncthing to version 0.14.48
[1.0.5]
* Update Syncthing to 0.14.49

View File

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

View File

@@ -1,4 +1,4 @@
This app packages Syncthing <upstream>v0.14.44</upstream>.
This app packages Syncthing <upstream>v0.14.49</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,7 +1,7 @@
FROM cloudron/base:0.10.0
MAINTAINER Syncthing Developers <support@cloudron.io>
ENV VERSION 0.14.44
ENV VERSION 0.14.49
RUN mkdir -p /app/code \
&& wget https://github.com/syncthing/syncthing/releases/download/v${VERSION}/syncthing-linux-amd64-v${VERSION}.tar.gz -O - \

View File

@@ -2,21 +2,23 @@
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "test.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"ejs": "^2.4.2",
"devDependencies": {
"ejs": "^2.3.4",
"expect.js": "^0.3.1",
"mkdirp": "^0.5.1",
"mocha": "^2.5.3",
"rimraf": "^2.5.3",
"selenium-server-standalone-jar": "^2.53.1",
"selenium-webdriver": "^2.53.1",
"superagent": "^1.4.0",
"chromedriver": "^2.31.0"
"mocha": "^2.3.4",
"rimraf": "^2.4.4",
"selenium-server-standalone-jar": "^2.53.0",
"selenium-webdriver": "^2.53.3",
"superagent": "^1.4.0"
},
"dependencies": {
"chromedriver": "^2.37.0"
}
}

View File

@@ -2,8 +2,11 @@
'use strict';
require('chromedriver');
var execSync = require('child_process').execSync,
expect = require('expect.js'),
superagent = require('superagent'),
path = require('path'),
webdriver = require('selenium-webdriver');
@@ -43,7 +46,7 @@ describe('Application life cycle test', function () {
var LOCATION = 'test';
var TEST_TIMEOUT = 30000;
var FOLDER = 'outerspace';
var FOLDER = 'xmf'; // keep this small. long folder names fail in automation, not sure why
var SYNC_PORT = 22001;
var app;
@@ -61,6 +64,14 @@ describe('Application life cycle test', function () {
});
}
function invalidPassword(callback) {
superagent.get('https://' + app.fqdn).auth(username, password + 'x').end(function (error, result) {
expect(result.status).to.eql(401);
callback();
});
}
function loadPage(callback) {
browser.manage().deleteAllCookies().then(function () {
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
@@ -78,12 +89,18 @@ describe('Application life cycle test', function () {
return browser.findElement(by.css('[ng-click*=addFolder]')).click();
}).then(function () {
return visible(by.id('folderPath'));
}).then(function () {
return browser.sleep(4000); // wait more, not sure why this is needed
}).then(function() {
return browser.findElement(by.id('folderLabel')).sendKeys(FOLDER);
}).then(function () {
return browser.sleep(4000); // without this sometimes only part of the folder name gets through
}).then(function() {
return browser.findElement(by.css('[ng-click*=saveFolder]')).click();
}).then(function() {
return browser.wait(until.elementLocated(by.css('#folders .panel-status span[ng-switch-when=unshared]')), TEST_TIMEOUT);
}).then(function () {
return browser.sleep(4000);
}).then(function() {
callback();
});
@@ -91,7 +108,7 @@ describe('Application life cycle test', function () {
function checkFolder(callback) {
browser.get('https://' + app.fqdn).then(function () {
return browser.wait(until.elementLocated(by.xpath(`//span[text()="${FOLDER}"]`), TEST_TIMEOUT));
return browser.wait(until.elementLocated(by.xpath(`//span[text()="${FOLDER}"]`)), TEST_TIMEOUT);
}).then(function () {
callback();
});
@@ -135,6 +152,7 @@ describe('Application life cycle test', function () {
expect(app).to.be.an('object');
});
it('fails with invalid password', invalidPassword);
it('can load page', loadPage);
it('can add folder', addFolder);