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

Compare commits

..

7 Commits

Author SHA1 Message Date
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 36 additions and 12 deletions

View File

@@ -68,3 +68,13 @@
* #4657: Sparse files with zero blocks are not closed when pulling * #4657: Sparse files with zero blocks are not closed when pulling
* #4668: Remote device out of sync items shows "0 items, ~0 B" * #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

View File

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

View File

@@ -1,4 +1,4 @@
This app packages Syncthing <upstream>v0.14.44</upstream>. This app packages Syncthing <upstream>v0.14.46</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. 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 FROM cloudron/base:0.10.0
MAINTAINER Syncthing Developers <support@cloudron.io> MAINTAINER Syncthing Developers <support@cloudron.io>
ENV VERSION 0.14.44 ENV VERSION 0.14.46
RUN mkdir -p /app/code \ RUN mkdir -p /app/code \
&& wget https://github.com/syncthing/syncthing/releases/download/v${VERSION}/syncthing-linux-amd64-v${VERSION}.tar.gz -O - \ && 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", "name": "test",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "test.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "devDependencies": {
"ejs": "^2.4.2", "ejs": "^2.3.4",
"expect.js": "^0.3.1", "expect.js": "^0.3.1",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"mocha": "^2.5.3", "mocha": "^2.3.4",
"rimraf": "^2.5.3", "rimraf": "^2.4.4",
"selenium-server-standalone-jar": "^2.53.1", "selenium-server-standalone-jar": "^2.53.0",
"selenium-webdriver": "^2.53.1", "selenium-webdriver": "^2.53.3",
"superagent": "^1.4.0", "superagent": "^1.4.0"
"chromedriver": "^2.31.0" },
"dependencies": {
"chromedriver": "^2.37.0"
} }
} }

View File

@@ -2,8 +2,11 @@
'use strict'; 'use strict';
require('chromedriver');
var execSync = require('child_process').execSync, var execSync = require('child_process').execSync,
expect = require('expect.js'), expect = require('expect.js'),
superagent = require('superagent'),
path = require('path'), path = require('path'),
webdriver = require('selenium-webdriver'); webdriver = require('selenium-webdriver');
@@ -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) { function loadPage(callback) {
browser.manage().deleteAllCookies().then(function () { browser.manage().deleteAllCookies().then(function () {
return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () { return browser.get('https://' + username + ':' + encodeURIComponent(password) + '@' + app.fqdn).then(function () {
@@ -135,6 +146,7 @@ describe('Application life cycle test', function () {
expect(app).to.be.an('object'); expect(app).to.be.an('object');
}); });
it('fails with invalid password', invalidPassword);
it('can load page', loadPage); it('can load page', loadPage);
it('can add folder', addFolder); it('can add folder', addFolder);