1
0
mirror of https://git.cloudron.io/cloudron/freshrss-app synced 2025-09-16 10:19:15 +00:00

Compare commits

...

8 Commits

Author SHA1 Message Date
Girish Ramakrishnan
e8690400c9 Version 1.3.0 2018-11-05 09:50:01 -08:00
Girish Ramakrishnan
852944cb8f Update FreshRSS to 1.12.0 2018-11-05 09:42:03 -08:00
Girish Ramakrishnan
94ccfe149e Version 1.2.0 2018-10-14 15:47:56 -07:00
Girish Ramakrishnan
01e3d7ad53 use latest base image 2018-10-14 15:41:35 -07:00
Girish Ramakrishnan
c89fca80bc Version 1.1.2 2018-09-09 18:46:27 -07:00
Girish Ramakrishnan
3594901aee Fix tests 2018-09-09 18:45:57 -07:00
Girish Ramakrishnan
5bb5fae5c8 fix promise use 2018-09-09 18:31:57 -07:00
Girish Ramakrishnan
2bc2cf8292 Update FreshRSS to 1.11.2 2018-09-09 18:09:54 -07:00
5 changed files with 99 additions and 68 deletions

View File

@@ -50,3 +50,28 @@
[1.1.1]
* Update FreshRSS to to 1.11.1
[1.1.2]
* Update FreshRSS to 1.11.2
[1.2.0]
* Use latest base image
[1.3.0]
* Update FreshRSS to 1.12.0
* Features
* Ability to add labels (custom tags) to articles #928
* Handle article tags containing spaces, as well as comma-separated tags #2023
* Handle authors containing spaces, as well as comma or semi-colon separated authors #2025
* Searches by tag, author, etc. accept Unicode characters #2025
* New option to disable cache for feeds with invalid HTTP caching #2052
* UI
* New theme Swage #2069
* Click on authors to initiate a search by author #2025
* Fix CSS for button alignments in older Chrome versions #2020
* Security
* Improved flow for password change (avoid error 403) #2056
* Allow dot . in username (best to avoid, though) #2061
* Performance
* Remove some counterproductive preload / prefetch rules #2040
* Improved fast flush (earlier transfer, fetching of resources, and rendering) #2045

View File

@@ -5,7 +5,7 @@
"description": "file://DESCRIPTION.md",
"changelog": "file://CHANGELOG",
"tagline": "RSS feed reader",
"version": "1.1.1",
"version": "1.3.0",
"healthCheckPath": "/",
"httpPort": 8000,
"addons": {

View File

@@ -1,4 +1,4 @@
This app packages FreshRSS <upstream>1.11.1</upstream>.
This app packages FreshRSS <upstream>1.12.0</upstream>.
FreshRSS is a self-hosted RSS feed aggregator such as Leed or Kriss Feed.

View File

@@ -1,13 +1,9 @@
FROM cloudron/base:0.10.0
RUN apt-get update \
&& apt-get -y install php php-curl php-gmp php-intl php-mbstring php-xml php-zip \
libapache2-mod-php mysql-client php-mysql
FROM cloudron/base:1.0.0@sha256:147a648a068a2e746644746bbfb42eb7a50d682437cead3c67c933c546357617
RUN mkdir -p /app/code
WORKDIR /app/code
RUN curl -L https://github.com/FreshRSS/FreshRSS/archive/1.11.1.tar.gz | tar -zxvf - --strip-components=1
RUN curl -L https://github.com/FreshRSS/FreshRSS/archive/1.12.0.tar.gz | tar -zxvf - --strip-components=1
RUN mv data data-orig && ln -s /app/data data
@@ -31,12 +27,12 @@ RUN rm -rf /var/lib/php \
&& ln -s /run/php /var/lib/php \
&& mkdir -p /run/php/session
RUN crudini --set /etc/php/7.0/apache2/php.ini PHP upload_max_filesize 64M && \
crudini --set /etc/php/7.0/apache2/php.ini PHP post_max_size 64M && \
crudini --set /etc/php/7.0/apache2/php.ini PHP memory_limit 64M && \
crudini --set /etc/php/7.0/apache2/php.ini Session session.save_path /run/php/session && \
crudini --set /etc/php/7.0/apache2/php.ini Session session.gc_probability 1 && \
crudini --set /etc/php/7.0/apache2/php.ini Session session.gc_divisor 100
RUN crudini --set /etc/php/7.2/apache2/php.ini PHP upload_max_filesize 64M && \
crudini --set /etc/php/7.2/apache2/php.ini PHP post_max_size 64M && \
crudini --set /etc/php/7.2/apache2/php.ini PHP memory_limit 64M && \
crudini --set /etc/php/7.2/apache2/php.ini Session session.save_path /run/php/session && \
crudini --set /etc/php/7.2/apache2/php.ini Session session.gc_probability 1 && \
crudini --set /etc/php/7.2/apache2/php.ini Session session.gc_divisor 100
ADD start.sh /app/code/start.sh

View File

@@ -45,79 +45,83 @@ describe('Application life cycle test', function () {
var TEST_TIMEOUT = 10000;
var app;
function exists(selector, callback) {
return browser.wait(until.elementLocated(selector), TEST_TIMEOUT).then(function () {
callback();
});
function exists(selector) {
return browser.wait(until.elementLocated(selector), TEST_TIMEOUT);
}
function visible(selector, callback) {
exists(selector, function () {
browser.wait(until.elementIsVisible(browser.findElement(selector)), TEST_TIMEOUT).then(function () {
callback();
});
return exists(selector).then(function () {
return browser.wait(until.elementIsVisible(browser.findElement(selector)), TEST_TIMEOUT);
});
}
function login(callback) {
browser.manage().deleteAllCookies();
browser.get('https://' + app.fqdn);
visible(by.id('loginButton'), function () {
browser.findElement(by.id('username')).sendKeys(username);
browser.findElement(by.id('passwordPlain')).sendKeys(password);
browser.findElement(by.id('loginButton')).click();
browser.wait(until.elementLocated(by.id('dropdown-configure')), TEST_TIMEOUT).then(function () { callback(); });
browser.manage().deleteAllCookies().then(function () {
return browser.get('https://' + app.fqdn);
}).then(function () {
return visible(by.id('loginButton'));
}).then(function () {
return browser.findElement(by.id('username')).sendKeys(username);
}).then(function () {
return browser.findElement(by.id('passwordPlain')).sendKeys(password);
}).then(function () {
return browser.findElement(by.id('loginButton')).click();
}).then(function () {
return browser.wait(until.elementLocated(by.id('dropdown-configure')), TEST_TIMEOUT);
}).then(function () {
callback();
});
}
function logout(callback) {
var logout_btn = by.xpath('//ul[@class="dropdown-menu"]/li/a[@class="signout"]');
browser.get('https://' + app.fqdn);
visible(by.id('stream'), function () {
browser.findElement(by.className('dropdown-toggle')).click();
visible(logout_btn, function () {
browser.findElement(logout_btn).click();
browser.wait(until.elementLocated(by.id('loginButton')), TEST_TIMEOUT).then(function () { callback(); });
});
browser.get('https://' + app.fqdn).then(function () {
return visible(by.id('stream'));
}).then(function () {
return browser.findElement(by.className('dropdown-toggle')).click();
}).then(function () {
return visible(logout_btn);
}).then(function () {
return browser.findElement(logout_btn).click();
}).then(function () {
return browser.wait(until.elementLocated(by.id('loginButton')), TEST_TIMEOUT);
}).then(function () {
callback();
});
}
function addSubscription(callback) {
var url = "https://cloudron.io/blog/rss.xml";
browser.get('https://' + app.fqdn);
visible(by.id('stream'), function () {
browser.findElement(by.xpath('//a[@href=".?c=subscription"]')).click();
visible(by.id('add_rss'), function () {
browser.findElement(by.xpath('//input[@name="url_rss"]')).sendKeys(url);
browser.findElement(by.xpath('//form[@id="add_rss"]/div/button[@type="submit"]')).click();
visible(by.xpath('//div[@id="notification" and @class="notification good"]'), function() { callback(); });
});
browser.get(`https://${app.fqdn}/p/i/?c=subscription`).then(function () {
return visible(by.xpath('//input[@name="url_rss"]'));
}).then(function () {
return browser.findElement(by.xpath('//input[@name="url_rss"]')).sendKeys(url);
}).then(function () {
return browser.findElement(by.xpath('//form[@id="add_rss"]/div/button[@type="submit"]')).click();
}).then(function () {
return visible(by.xpath('//div[@id="notification" and @class="notification good"]'));
}).then(function () {
callback();
});
}
function addUser(callback) {
var test_username = 'test';
var manage_users_btn = by.xpath('//a[@href=".?c=user&a=manage"]');
browser.get('https://' + app.fqdn);
visible(by.id('stream'), function () {
browser.findElement(by.className('dropdown-toggle')).click();
visible(manage_users_btn, function () {
browser.findElement(manage_users_btn).click();
visible(by.id('new_user_name'), function () {
browser.findElement(by.id('new_user_name')).sendKeys(test_username);
browser.findElement(by.id('new_user_passwordPlain')).sendKeys(password);
browser.findElement(by.xpath('//form[@action=".?c=user&a=create"]/div/div/button[@type="submit"]')).click();
visible(by.xpath('//div[@id="notification" and @class="notification good"]'), function() { callback(); });
});
});
browser.get(`https://${app.fqdn}/p/i/?c=user&a=manage`).then(function () {
return visible(by.id('new_user_name'));
}).then(function () {
return browser.findElement(by.id('new_user_name')).sendKeys(test_username);
}).then(function () {
return browser.findElement(by.id('new_user_passwordPlain')).sendKeys(password);
}).then(function () {
return browser.findElement(by.xpath('//button[text()="Create"]')).click();
}).then(function () {
return visible(by.xpath('//div[@id="notification" and @class="notification good"]'));
}).then(function () {
callback();
});
}
@@ -125,13 +129,17 @@ describe('Application life cycle test', function () {
browser.get('https://' + app.fqdn + '/p/i/?c=auth').then(function () {
return browser.findElement(by.id('api_enabled')).click();
}).then(function () {
return browser.findElement(by.xpath('//form[@action=".?c=auth"]')).submit();
}).then(callback);
return browser.findElement(by.xpath('//button[text()="Submit"]')).submit();
}).then(function () {
callback();
});
}
function checkApiConfiguration(callback) {
browser.get('https://' + app.fqdn + '/p/api/greader.php/check%2Fcompatibility').then(function () {
exists(by.xpath('//pre[text()="PASS"]'), callback);
return exists(by.xpath('//pre[text()="PASS"]'));
}).then(function () {
callback();
});
}
@@ -142,9 +150,11 @@ describe('Application life cycle test', function () {
}
function subscriptionExists(callback) {
browser.get('https://' + app.fqdn + '/p/i/?get=c_1');
visible(by.xpath('//a[text()="Cloudron.io"]'), callback);
browser.get('https://' + app.fqdn + '/p/i/?get=c_1').then(function () {
return visible(by.xpath('//a[text()="Cloudron.io"]'));
}).then(function () {
callback();
});
}
function getStaticExtensionFile(callback) {