mirror of
https://git.cloudron.io/cloudron/freshrss-app
synced 2025-09-17 18:59:08 +00:00
Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f3e4134dd5 | ||
|
404754f9a4 | ||
|
6efdc45918 | ||
|
6fe901a2e2 | ||
|
78e19a6ea2 | ||
|
076770adf9 | ||
|
0986c7ed3f | ||
|
e79f7baaf2 | ||
|
7c7ab032f4 | ||
|
076a5cb14e | ||
|
5d5eb1f633 | ||
|
9542541b5c |
25
CHANGELOG
25
CHANGELOG
@@ -184,3 +184,28 @@
|
|||||||
* Update base image to v3
|
* Update base image to v3
|
||||||
* Update PHP to 7.4
|
* Update PHP to 7.4
|
||||||
|
|
||||||
|
[1.13.0]
|
||||||
|
* Update FreshRSS to 1.18.0
|
||||||
|
* [Full changelog](https://github.com/FreshRSS/FreshRSS/releases/tag/1.18.0)
|
||||||
|
* Allow parallel requests #3096 - Much faster manual feeds refresh
|
||||||
|
* Reload full article content when an article has changed #3506
|
||||||
|
* New share article link to clipboard #3330
|
||||||
|
* Improved OPML import of feeds with multiple categories #3286
|
||||||
|
* Add a content action parameter to work with CSS selector #3453
|
||||||
|
* New cURL options per feed: proxy, cookie, user-agent #3367, #3494, #3516
|
||||||
|
* Do not import feeds causing database errors (e.g. due to conflicting HTTP redirections) ##3347
|
||||||
|
|
||||||
|
[1.13.1]
|
||||||
|
* Fix apache config to log the client IP
|
||||||
|
|
||||||
|
[1.13.2]
|
||||||
|
* Update FreshRSS to 1.18.1
|
||||||
|
* Support standard HTTP 410 Gone by disabling (muting) gone feeds #3561
|
||||||
|
* Supported by Newsboat 2.24+ #3574
|
||||||
|
* Supported by RSS Guard #3627
|
||||||
|
* Allow Unicode for shortcuts #3548
|
||||||
|
|
||||||
|
[1.14.0]
|
||||||
|
* Update FreshRSS to 1.19.0
|
||||||
|
* [Full Changelog](https://github.com/FreshRSS/FreshRSS/releases/tag/1.19.0)
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"changelog": "file://CHANGELOG",
|
"changelog": "file://CHANGELOG",
|
||||||
"tagline": "RSS feed reader",
|
"tagline": "RSS feed reader",
|
||||||
"version": "1.12.0",
|
"version": "1.14.0",
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 8000,
|
"httpPort": 8000,
|
||||||
"addons": {
|
"addons": {
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"scheduler": {
|
"scheduler": {
|
||||||
"update_feeds": {
|
"update_feeds": {
|
||||||
"schedule": "*/1 * * * *",
|
"schedule": "*/1 * * * *",
|
||||||
"command": "/usr/local/bin/gosu www-data:www-data php /app/code/app/actualize_script.php"
|
"command": "echo '==> Run actualize script' && /usr/local/bin/gosu www-data:www-data php /app/code/app/actualize_script.php"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
This app packages FreshRSS <upstream>1.17.0</upstream>.
|
This app packages FreshRSS <upstream>1.19.0</upstream>.
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
|
FROM cloudron/base:3.2.0@sha256:ba1d566164a67c266782545ea9809dc611c4152e27686fd14060332dd88263ea
|
||||||
|
|
||||||
RUN mkdir -p /app/code
|
RUN mkdir -p /app/code
|
||||||
WORKDIR /app/code
|
WORKDIR /app/code
|
||||||
|
|
||||||
ARG VERSION=1.17.0
|
ARG VERSION=1.19.0
|
||||||
RUN curl -L https://github.com/FreshRSS/FreshRSS/archive/${VERSION}.tar.gz | tar -zxvf - --strip-components=1
|
RUN curl -L https://github.com/FreshRSS/FreshRSS/archive/${VERSION}.tar.gz | tar -zxvf - --strip-components=1
|
||||||
|
|
||||||
RUN mv data data-orig && ln -s /app/data data
|
RUN mv data data-orig && ln -s /app/data data
|
||||||
|
@@ -1,9 +1,12 @@
|
|||||||
|
ServerName %{HTTP_HOST}
|
||||||
|
|
||||||
<VirtualHost *:8000>
|
<VirtualHost *:8000>
|
||||||
DocumentRoot /app/code/p
|
DocumentRoot /app/code/p
|
||||||
AllowEncodedSlashes On
|
AllowEncodedSlashes On
|
||||||
|
|
||||||
ErrorLog /dev/stderr
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
|
||||||
CustomLog /dev/stdout combined
|
CustomLog "|/bin/cat" proxy
|
||||||
|
ErrorLog "|/bin/cat"
|
||||||
|
|
||||||
<Directory /app/code/p/>
|
<Directory /app/code/p/>
|
||||||
Options +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
MaxSpareServers 3
|
MaxSpareServers 3
|
||||||
|
|
||||||
# Maximum number of servers at any given instant. Requests will be queued after this
|
# Maximum number of servers at any given instant. Requests will be queued after this
|
||||||
MaxRequestWorkers 6
|
MaxRequestWorkers 10
|
||||||
|
|
||||||
# Recycle process after handling these many requests. This protected against accidental memory leaks
|
# Recycle process after handling these many requests. This protected against accidental memory leaks
|
||||||
MaxConnectionsPerChild 100
|
MaxConnectionsPerChild 100
|
||||||
|
2275
test/package-lock.json
generated
2275
test/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,14 +9,13 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromedriver": "^88.0.0",
|
"chromedriver": "^96.0.0",
|
||||||
"ejs": "^3.1.6",
|
"ejs": "^3.1.6",
|
||||||
"expect.js": "^0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
"mocha": "^8.3.0",
|
"mocha": "^9.1.3",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"selenium-server-standalone-jar": "^3.141.59",
|
"selenium-webdriver": "^4.1.0",
|
||||||
"selenium-webdriver": "^3.6.0",
|
|
||||||
"superagent": "^6.1.0"
|
"superagent": "^6.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
137
test/test.js
137
test/test.js
@@ -1,5 +1,11 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
/* jshint esversion: 8 */
|
||||||
|
/* global describe */
|
||||||
|
/* global before */
|
||||||
|
/* global after */
|
||||||
|
/* global it */
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
require('chromedriver');
|
require('chromedriver');
|
||||||
@@ -8,12 +14,8 @@ var execSync = require('child_process').execSync,
|
|||||||
expect = require('expect.js'),
|
expect = require('expect.js'),
|
||||||
path = require('path'),
|
path = require('path'),
|
||||||
superagent = require('superagent'),
|
superagent = require('superagent'),
|
||||||
webdriver = require('selenium-webdriver');
|
{ Builder, By, Key, until } = require('selenium-webdriver'),
|
||||||
|
{ Options } = require('selenium-webdriver/chrome');
|
||||||
var by = webdriver.By,
|
|
||||||
Keys = webdriver.Key,
|
|
||||||
until = webdriver.until,
|
|
||||||
Builder = require('selenium-webdriver').Builder;
|
|
||||||
|
|
||||||
var username = 'admin',
|
var username = 'admin',
|
||||||
password = 'changeme';
|
password = 'changeme';
|
||||||
@@ -21,32 +23,34 @@ var username = 'admin',
|
|||||||
describe('Application life cycle test', function () {
|
describe('Application life cycle test', function () {
|
||||||
this.timeout(0);
|
this.timeout(0);
|
||||||
|
|
||||||
var server, browser = new Builder().forBrowser('chrome').build();
|
const LOCATION = 'test';
|
||||||
|
const TEST_TIMEOUT = 10000;
|
||||||
|
const EXEC_ARGS = { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' };
|
||||||
|
|
||||||
before(function (done) {
|
var browser, app;
|
||||||
var seleniumJar= require('selenium-server-standalone-jar');
|
|
||||||
var SeleniumServer = require('selenium-webdriver/remote').SeleniumServer;
|
|
||||||
server = new SeleniumServer(seleniumJar.path, { port: 4444 });
|
|
||||||
server.start();
|
|
||||||
|
|
||||||
done();
|
before(function () {
|
||||||
|
const options = new Options().windowSize({ width: 1280, height: 1024 });
|
||||||
|
if (process.env.HEADLESS) options.addArguments('headless');
|
||||||
|
|
||||||
|
browser = new Builder().forBrowser('chrome').setChromeOptions(options).build();
|
||||||
});
|
});
|
||||||
|
|
||||||
after(function (done) {
|
after(function () {
|
||||||
browser.quit();
|
browser.quit();
|
||||||
server.stop();
|
|
||||||
done();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var LOCATION = 'test';
|
function getAppInfo() {
|
||||||
var TEST_TIMEOUT = 10000;
|
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||||
var app;
|
app = inspect.apps.filter(function (a) { return a.location.indexOf(LOCATION) === 0; })[0];
|
||||||
|
expect(app).to.be.an('object');
|
||||||
|
}
|
||||||
|
|
||||||
function exists(selector) {
|
function exists(selector) {
|
||||||
return browser.wait(until.elementLocated(selector), TEST_TIMEOUT);
|
return browser.wait(until.elementLocated(selector), TEST_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
function visible(selector, callback) {
|
function visible(selector) {
|
||||||
return exists(selector).then(function () {
|
return exists(selector).then(function () {
|
||||||
return browser.wait(until.elementIsVisible(browser.findElement(selector)), TEST_TIMEOUT);
|
return browser.wait(until.elementIsVisible(browser.findElement(selector)), TEST_TIMEOUT);
|
||||||
});
|
});
|
||||||
@@ -62,9 +66,9 @@ describe('Application life cycle test', function () {
|
|||||||
// https://stackoverflow.com/questions/49614217/selenium-clear-chrome-cache
|
// https://stackoverflow.com/questions/49614217/selenium-clear-chrome-cache
|
||||||
// defaut clearance is 1 hour of cache
|
// defaut clearance is 1 hour of cache
|
||||||
return browser.get('chrome://settings/clearBrowserData').then(function () {
|
return browser.get('chrome://settings/clearBrowserData').then(function () {
|
||||||
return visible(by.css('* /deep/ #clearBrowsingDataConfirm'));
|
return visible(By.css('* /deep/ #clearBrowsingDataConfirm'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.css('* /deep/ #clearBrowsingDataConfirm')).click();
|
return browser.findElement(By.css('* /deep/ #clearBrowsingDataConfirm')).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.sleep(5000);
|
return browser.sleep(5000);
|
||||||
});
|
});
|
||||||
@@ -72,33 +76,33 @@ describe('Application life cycle test', function () {
|
|||||||
|
|
||||||
function login(password, callback) {
|
function login(password, callback) {
|
||||||
browser.get('https://' + app.fqdn).then(function () {
|
browser.get('https://' + app.fqdn).then(function () {
|
||||||
return visible(by.id('loginButton'));
|
return visible(By.id('loginButton'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.id('username')).sendKeys(username);
|
return browser.findElement(By.id('username')).sendKeys(username);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.id('passwordPlain')).sendKeys(password);
|
return browser.findElement(By.id('passwordPlain')).sendKeys(password);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.id('loginButton')).click();
|
return browser.findElement(By.id('loginButton')).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.wait(until.elementLocated(by.id('dropdown-configure')), TEST_TIMEOUT);
|
return browser.wait(until.elementLocated(By.id('dropdown-configure')), TEST_TIMEOUT);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function logout(callback) {
|
function logout(callback) {
|
||||||
var logout_btn = by.xpath('//ul[@class="dropdown-menu"]/li/a[@class="signout"]');
|
var logout_btn = By.xpath('//li/a[@class="signout"]');
|
||||||
|
|
||||||
browser.get('https://' + app.fqdn).then(function () {
|
browser.get('https://' + app.fqdn).then(function () {
|
||||||
return visible(by.id('stream'));
|
return visible(By.id('stream'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.className('dropdown-toggle')).click();
|
return browser.findElement(By.className('dropdown-toggle')).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return visible(logout_btn);
|
return visible(logout_btn);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(logout_btn).click();
|
return browser.findElement(logout_btn).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.wait(until.elementLocated(by.id('loginButton')), TEST_TIMEOUT);
|
return browser.wait(until.elementLocated(By.id('loginButton')), TEST_TIMEOUT);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
@@ -109,13 +113,13 @@ describe('Application life cycle test', function () {
|
|||||||
const addUrl = app.manifest.version === '1.10.0' ? `${baseUrl()}/i/?c=subscription` : `${baseUrl()}/i/?c=subscription&a=add`;
|
const addUrl = app.manifest.version === '1.10.0' ? `${baseUrl()}/i/?c=subscription` : `${baseUrl()}/i/?c=subscription&a=add`;
|
||||||
|
|
||||||
browser.get(addUrl).then(function () {
|
browser.get(addUrl).then(function () {
|
||||||
return visible(by.xpath('//input[@name="url_rss"]'));
|
return visible(By.xpath('//input[@name="url_rss"]'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.xpath('//input[@name="url_rss"]')).sendKeys(url);
|
return browser.findElement(By.xpath('//input[@name="url_rss"]')).sendKeys(url);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.xpath('//button[@type="submit"]/ancestor::form[@id="add_rss"]')).submit();
|
return browser.findElement(By.xpath('//button[@type="submit"]/ancestor::form[@id="add_rss"]')).submit();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return visible(by.xpath('//div[@id="notification" and @class="notification good"]'));
|
return visible(By.xpath('//div[@id="notification" and @class="notification good"]'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
@@ -125,15 +129,15 @@ describe('Application life cycle test', function () {
|
|||||||
var test_username = 'test';
|
var test_username = 'test';
|
||||||
|
|
||||||
browser.get(`${baseUrl()}/i/?c=user&a=manage`).then(function () {
|
browser.get(`${baseUrl()}/i/?c=user&a=manage`).then(function () {
|
||||||
return visible(by.id('new_user_name'));
|
return visible(By.id('new_user_name'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.id('new_user_name')).sendKeys(test_username);
|
return browser.findElement(By.id('new_user_name')).sendKeys(test_username);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.id('new_user_passwordPlain')).sendKeys(password);
|
return browser.findElement(By.id('new_user_passwordPlain')).sendKeys(password);
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.xpath('//button[text()="Create"]')).click();
|
return browser.findElement(By.xpath('//button[text()="Create"]')).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return visible(by.xpath('//div[@id="notification" and @class="notification good"]'));
|
return visible(By.xpath('//div[@id="notification" and @class="notification good"]'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
@@ -141,9 +145,9 @@ describe('Application life cycle test', function () {
|
|||||||
|
|
||||||
function enableApi(callback) {
|
function enableApi(callback) {
|
||||||
browser.get(`${baseUrl()}/i/?c=auth`).then(function () {
|
browser.get(`${baseUrl()}/i/?c=auth`).then(function () {
|
||||||
return browser.findElement(by.id('api_enabled')).click();
|
return browser.findElement(By.id('api_enabled')).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return browser.findElement(by.xpath('//button[text()="Submit"]')).submit();
|
return browser.findElement(By.xpath('//button[text()="Submit"]')).click();
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
@@ -151,23 +155,17 @@ describe('Application life cycle test', function () {
|
|||||||
|
|
||||||
function checkApiConfiguration(callback) {
|
function checkApiConfiguration(callback) {
|
||||||
browser.get(`${baseUrl()}/api/`).then(function () {
|
browser.get(`${baseUrl()}/api/`).then(function () {
|
||||||
return exists(by.xpath('//dd[@id="greaderOutput" and contains(text(), "PASS")]'));
|
return exists(By.xpath('//dd[@id="greaderOutput" and contains(text(), "PASS")]'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return exists(by.xpath('//dd[@id="feverOutput" and contains(text(), "PASS")]'));
|
return exists(By.xpath('//dd[@id="feverOutput" and contains(text(), "PASS")]'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getAppInfo() {
|
|
||||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
|
||||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION || a.location === LOCATION + '2'; })[0];
|
|
||||||
expect(app).to.be.an('object');
|
|
||||||
}
|
|
||||||
|
|
||||||
function subscriptionExists(callback) {
|
function subscriptionExists(callback) {
|
||||||
browser.get(`${baseUrl()}/i/?get=c_1`).then(function () {
|
browser.get(`${baseUrl()}/i/?get=c_1`).then(function () {
|
||||||
return visible(by.xpath('//span[text()="Cloudron"]'));
|
return visible(By.xpath('//span[text()="Cloudron"]'));
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
@@ -184,13 +182,8 @@ describe('Application life cycle test', function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
xit('build app', function () {
|
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
|
||||||
execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
it('install app', function () { execSync('cloudron install --location ' + LOCATION, EXEC_ARGS); });
|
||||||
});
|
|
||||||
|
|
||||||
it('install app', function () {
|
|
||||||
execSync('cloudron install --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
|
||||||
});
|
|
||||||
|
|
||||||
it('can get app information', getAppInfo);
|
it('can get app information', getAppInfo);
|
||||||
|
|
||||||
@@ -203,16 +196,14 @@ describe('Application life cycle test', function () {
|
|||||||
it('can get static extension file', getStaticExtensionFile);
|
it('can get static extension file', getStaticExtensionFile);
|
||||||
it('can logout', logout);
|
it('can logout', logout);
|
||||||
|
|
||||||
it('backup app', function () {
|
it('backup app', function () { execSync('cloudron backup create --app ' + app.id, EXEC_ARGS); });
|
||||||
execSync('cloudron backup create --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
|
||||||
});
|
|
||||||
|
|
||||||
it('restore app', function () {
|
it('restore app', function () {
|
||||||
const backups = JSON.parse(execSync('cloudron backup list --raw'));
|
const backups = JSON.parse(execSync(`cloudron backup list --raw --app ${app.id}`));
|
||||||
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS);
|
||||||
execSync('cloudron install --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron install --location ' + LOCATION, EXEC_ARGS);
|
||||||
getAppInfo();
|
getAppInfo();
|
||||||
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, EXEC_ARGS);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can login', login.bind(null, password));
|
it('can login', login.bind(null, password));
|
||||||
@@ -223,7 +214,7 @@ describe('Application life cycle test', function () {
|
|||||||
|
|
||||||
it('move to different location', function () {
|
it('move to different location', function () {
|
||||||
browser.manage().deleteAllCookies();
|
browser.manage().deleteAllCookies();
|
||||||
execSync('cloudron configure --location ' + LOCATION + '2 --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron configure --location ' + LOCATION + '2 --app ' + app.id, EXEC_ARGS);
|
||||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
|
app = inspect.apps.filter(function (a) { return a.location === LOCATION + '2'; })[0];
|
||||||
expect(app).to.be.an('object');
|
expect(app).to.be.an('object');
|
||||||
@@ -235,14 +226,10 @@ describe('Application life cycle test', function () {
|
|||||||
it('can get static extension file', getStaticExtensionFile);
|
it('can get static extension file', getStaticExtensionFile);
|
||||||
it('can logout', logout);
|
it('can logout', logout);
|
||||||
|
|
||||||
it('uninstall app', function () {
|
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
|
||||||
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
|
||||||
});
|
|
||||||
|
|
||||||
// test update
|
// test update
|
||||||
it('can install app', function () {
|
it('can install app', function () { execSync('cloudron install --appstore-id org.freshrss.cloudronapp --location ' + LOCATION, EXEC_ARGS); });
|
||||||
execSync('cloudron install --appstore-id org.freshrss.cloudronapp --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
|
||||||
});
|
|
||||||
|
|
||||||
it('can get app information', getAppInfo);
|
it('can get app information', getAppInfo);
|
||||||
it('can login', login.bind(null, password));
|
it('can login', login.bind(null, password));
|
||||||
@@ -250,7 +237,7 @@ describe('Application life cycle test', function () {
|
|||||||
it('can add users', addUser.bind(null, password));
|
it('can add users', addUser.bind(null, password));
|
||||||
|
|
||||||
it('can update', function () {
|
it('can update', function () {
|
||||||
execSync('cloudron update --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
execSync('cloudron update --app ' + app.id, EXEC_ARGS);
|
||||||
var inspect = JSON.parse(execSync('cloudron inspect'));
|
var inspect = JSON.parse(execSync('cloudron inspect'));
|
||||||
app = inspect.apps.filter(function (a) { return a.location === LOCATION; })[0];
|
app = inspect.apps.filter(function (a) { return a.location === LOCATION; })[0];
|
||||||
expect(app).to.be.an('object');
|
expect(app).to.be.an('object');
|
||||||
@@ -260,7 +247,5 @@ describe('Application life cycle test', function () {
|
|||||||
it('subscription exists', subscriptionExists);
|
it('subscription exists', subscriptionExists);
|
||||||
it('can get static extension file', getStaticExtensionFile);
|
it('can get static extension file', getStaticExtensionFile);
|
||||||
|
|
||||||
it('uninstall app', function () {
|
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
|
||||||
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user