1
0
mirror of https://git.cloudron.io/cloudron/freshrss-app synced 2025-09-25 22:37:25 +00:00

Compare commits

..

4 Commits

Author SHA1 Message Date
Johannes Zellner
48ca54d300 Bump version 2024-06-05 20:30:14 +02:00
Johannes Zellner
c70b70d6b0 Fixup tests 2024-06-05 20:29:29 +02:00
Johannes Zellner
7c098a3236 Update test deps 2024-06-05 19:49:28 +02:00
Johannes Zellner
3338db16f0 Update to 1.24.1 2024-06-05 19:49:17 +02:00
6 changed files with 24 additions and 21 deletions

View File

@@ -313,3 +313,9 @@
* New option to automatically add labels to incoming articles * New option to automatically add labels to incoming articles
* New button to download a feed configuration as OPML * New button to download a feed configuration as OPML
[1.21.1]
* Update FreshRSS to 1.24.1
* [Full Changelog](https://github.com/FreshRSS/FreshRSS/releases/tag/1.24.1)
* New button to export OMPL of a category
* Many bug fixes

View File

@@ -5,8 +5,8 @@
"description": "file://DESCRIPTION.md", "description": "file://DESCRIPTION.md",
"changelog": "file://CHANGELOG.md", "changelog": "file://CHANGELOG.md",
"tagline": "RSS feed reader", "tagline": "RSS feed reader",
"version": "1.21.0", "version": "1.21.1",
"upstreamVersion": "1.24.0", "upstreamVersion": "1.24.1",
"healthCheckPath": "/", "healthCheckPath": "/",
"httpPort": 8000, "httpPort": 8000,
"addons": { "addons": {

View File

@@ -5,7 +5,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y libapache2-mod-
RUN mkdir -p /app/code RUN mkdir -p /app/code
WORKDIR /app/code WORKDIR /app/code
ARG VERSION=1.24.0 ARG VERSION=1.24.1
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 && \
mv data data-orig && ln -s /app/data data mv data data-orig && ln -s /app/data data

14
test/package-lock.json generated
View File

@@ -9,7 +9,7 @@
"version": "1.0.0", "version": "1.0.0",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"chromedriver": "^125.0.1", "chromedriver": "^125.0.3",
"expect.js": "^0.3.1", "expect.js": "^0.3.1",
"mocha": "^10.4.0", "mocha": "^10.4.0",
"selenium-webdriver": "^4.21.0", "selenium-webdriver": "^4.21.0",
@@ -262,9 +262,9 @@
} }
}, },
"node_modules/chromedriver": { "node_modules/chromedriver": {
"version": "125.0.1", "version": "125.0.3",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-125.0.1.tgz", "resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-125.0.3.tgz",
"integrity": "sha512-8cNZTAZV1posaWzVbC0S9MG+Cf3Dq1oGRnr3pSxuKwhO9Jnjjd4/N71VmkUJq7pqk2IedRStbmlkUM/ACn22XA==", "integrity": "sha512-Qzuk5Wian2o3EVGjtbz6V/jv+pT/AV9246HbG6kUljZXXjsKZLZxqJC+kHR3qEh/wdv4EJD0YwAOWV72v9hogw==",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@testim/chrome-version": "^1.1.4", "@testim/chrome-version": "^1.1.4",
@@ -2151,9 +2151,9 @@
} }
}, },
"chromedriver": { "chromedriver": {
"version": "125.0.1", "version": "125.0.3",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-125.0.1.tgz", "resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-125.0.3.tgz",
"integrity": "sha512-8cNZTAZV1posaWzVbC0S9MG+Cf3Dq1oGRnr3pSxuKwhO9Jnjjd4/N71VmkUJq7pqk2IedRStbmlkUM/ACn22XA==", "integrity": "sha512-Qzuk5Wian2o3EVGjtbz6V/jv+pT/AV9246HbG6kUljZXXjsKZLZxqJC+kHR3qEh/wdv4EJD0YwAOWV72v9hogw==",
"requires": { "requires": {
"@testim/chrome-version": "^1.1.4", "@testim/chrome-version": "^1.1.4",
"axios": "^1.6.7", "axios": "^1.6.7",

View File

@@ -9,7 +9,7 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"chromedriver": "^125.0.1", "chromedriver": "^125.0.3",
"expect.js": "^0.3.1", "expect.js": "^0.3.1",
"mocha": "^10.4.0", "mocha": "^10.4.0",
"selenium-webdriver": "^4.21.0", "selenium-webdriver": "^4.21.0",

View File

@@ -77,15 +77,12 @@ describe('Application life cycle test', function () {
async function loginOIDC(username, password) { async function loginOIDC(username, password) {
browser.manage().deleteAllCookies(); browser.manage().deleteAllCookies();
await browser.get(`https://${app.fqdn}/i/`); await browser.get(`https://${app.fqdn}/i/`);
await browser.sleep(6000);
if (!athenticated_by_oidc) { if (!athenticated_by_oidc) {
await waitForElement(By.xpath('//input[@name="username"]')); await waitForElement(By.id('inputUsername'));
await browser.findElement(By.xpath('//input[@name="username"]')).sendKeys(username); await browser.findElement(By.id('inputUsername')).sendKeys(username);
await browser.findElement(By.xpath('//input[@name="password"]')).sendKeys(password); await browser.findElement(By.id('inputPassword')).sendKeys(password);
await browser.sleep(2000); await browser.findElement(By.id('loginSubmitButton')).click();
await browser.findElement(By.xpath('//button[@type="submit" and contains(text(), "Sign in")]')).click();
await browser.sleep(2000);
athenticated_by_oidc = true; athenticated_by_oidc = true;
} }
@@ -173,7 +170,7 @@ describe('Application life cycle test', function () {
it('can get app information', getAppInfo); it('can get app information', getAppInfo);
it('can login OIDC', loginOIDC.bind(null, USERNAME, PASSWORD)); it('can login OIDC', loginOIDC.bind(null, USERNAME, PASSWORD));
it('can make user Administrator', function () { execSync(`cloudron exec --app ${app.id} -- bash -c "php cli/reconfigure.php --default_user ${USERNAME}"`); }); it('can make user Administrator', function () { execSync(`cloudron exec --app ${app.id} -- bash -c "php cli/reconfigure.php --default-user ${USERNAME}"`); });
it('can subscribe', addSubscription); it('can subscribe', addSubscription);
it('can enable API', enableApi); it('can enable API', enableApi);
it('can check configuration', checkApiConfiguration); it('can check configuration', checkApiConfiguration);
@@ -215,9 +212,8 @@ describe('Application life cycle test', function () {
it('can get app information', getAppInfo); it('can get app information', getAppInfo);
it('can login OIDC', loginOIDC.bind(null, USERNAME, PASSWORD)); it('can login OIDC', loginOIDC.bind(null, USERNAME, PASSWORD));
it('can make user Administrator', function () { execSync(`cloudron exec --app ${app.id} -- bash -c "php cli/reconfigure.php --default_user ${USERNAME}"`); }); it('can make user Administrator', function () { execSync(`cloudron exec --app ${app.id} -- bash -c "php cli/reconfigure.php --default-user ${USERNAME}"`); });
it('can subscribe', addSubscription); it('can subscribe', addSubscription);
it('can add users', addUser.bind(null, 'test', admin_password));
it('can update', function () { it('can update', function () {
execSync('cloudron update --app ' + app.id, EXEC_ARGS); execSync('cloudron update --app ' + app.id, EXEC_ARGS);
@@ -226,6 +222,7 @@ describe('Application life cycle test', function () {
expect(app).to.be.an('object'); expect(app).to.be.an('object');
}); });
it('can add users', addUser.bind(null, 'test', admin_password));
it('subscription exists', subscriptionExists); it('subscription exists', subscriptionExists);
it('can get static extension file', getStaticExtensionFile); it('can get static extension file', getStaticExtensionFile);