Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8857f033f5 | ||
|
|
15151c92e0 | ||
|
|
0ec5205865 |
@@ -1263,3 +1263,7 @@
|
|||||||
* Update Synapse to 1.111.1
|
* Update Synapse to 1.111.1
|
||||||
* [Full changelog](https://github.com/element-hq/synapse/releases/tag/v1.111.1)
|
* [Full changelog](https://github.com/element-hq/synapse/releases/tag/v1.111.1)
|
||||||
|
|
||||||
|
[1.97.2]
|
||||||
|
* Update Synapse to 1.112.0
|
||||||
|
* [Full changelog](https://github.com/element-hq/synapse/releases/tag/v1.112.0)
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"changelog": "file://CHANGELOG.md",
|
"changelog": "file://CHANGELOG.md",
|
||||||
"tagline": "Secure & decentralized communication",
|
"tagline": "Secure & decentralized communication",
|
||||||
"version": "1.97.1",
|
"version": "1.97.2",
|
||||||
"upstreamVersion": "1.111.1",
|
"upstreamVersion": "1.112.0",
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 8008,
|
"httpPort": 8008,
|
||||||
"memoryLimit": 536870912,
|
"memoryLimit": 536870912,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ RUN virtualenv -p python3 /app/code/env
|
|||||||
ENV VIRTUAL_ENV=/app/code/env
|
ENV VIRTUAL_ENV=/app/code/env
|
||||||
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||||
|
|
||||||
ARG VERSION=1.111.1
|
ARG VERSION=1.112.0
|
||||||
|
|
||||||
# https://github.com/matrix-org/synapse-s3-storage-provider
|
# https://github.com/matrix-org/synapse-s3-storage-provider
|
||||||
ARG STORAGE_PROVIDER_VERSION=1beb6af95e1f5caedb8e6e7e1cc176cdb2106d37
|
ARG STORAGE_PROVIDER_VERSION=1beb6af95e1f5caedb8e6e7e1cc176cdb2106d37
|
||||||
|
|||||||
14
test/package-lock.json
generated
14
test/package-lock.json
generated
@@ -9,7 +9,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromedriver": "^127.0.0",
|
"chromedriver": "^127.0.1",
|
||||||
"expect.js": "^0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mocha": "^10.7.0",
|
"mocha": "^10.7.0",
|
||||||
"selenium-webdriver": "^4.23.0"
|
"selenium-webdriver": "^4.23.0"
|
||||||
@@ -246,9 +246,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/chromedriver": {
|
"node_modules/chromedriver": {
|
||||||
"version": "127.0.0",
|
"version": "127.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-127.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-127.0.1.tgz",
|
||||||
"integrity": "sha512-/Jla24iL0ly/EI7i/q0ukANkpAWvAkSHbvC7FtBZXFJXe6klH0n/XT56VSBcBYB1iMgWM8kPwqF8pb9gdqN9UA==",
|
"integrity": "sha512-j57OWXsxdhwK+faTWA2pi+8hf052qVjZjP0wXnjqY/QglHtlOXWhRj4s7/+ybJRNgs1zQ5csfOyV6sQQdH+Fnw==",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@testim/chrome-version": "^1.1.4",
|
"@testim/chrome-version": "^1.1.4",
|
||||||
@@ -1663,9 +1663,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chromedriver": {
|
"chromedriver": {
|
||||||
"version": "127.0.0",
|
"version": "127.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-127.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-127.0.1.tgz",
|
||||||
"integrity": "sha512-/Jla24iL0ly/EI7i/q0ukANkpAWvAkSHbvC7FtBZXFJXe6klH0n/XT56VSBcBYB1iMgWM8kPwqF8pb9gdqN9UA==",
|
"integrity": "sha512-j57OWXsxdhwK+faTWA2pi+8hf052qVjZjP0wXnjqY/QglHtlOXWhRj4s7/+ybJRNgs1zQ5csfOyV6sQQdH+Fnw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@testim/chrome-version": "^1.1.4",
|
"@testim/chrome-version": "^1.1.4",
|
||||||
"axios": "^1.6.7",
|
"axios": "^1.6.7",
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromedriver": "^127.0.0",
|
"chromedriver": "^127.0.1",
|
||||||
"expect.js": "^0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mocha": "^10.7.0",
|
"mocha": "^10.7.0",
|
||||||
"selenium-webdriver": "^4.23.0"
|
"selenium-webdriver": "^4.23.0"
|
||||||
|
|||||||
159
test/test.js
159
test/test.js
@@ -134,6 +134,27 @@ describe('Application life cycle test', function () {
|
|||||||
// await skipVerification();
|
// await skipVerification();
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
if (await browser.findElements(By.xpath('//div[text()="Proceed with reset"]')).then(found => !!found.length)) {
|
||||||
|
await browser.findElement(By.xpath('//div[text()="Proceed with reset"]')).click();
|
||||||
|
|
||||||
|
await waitForElement(By.xpath('//button[text()="Continue"]'));
|
||||||
|
await browser.findElement(By.xpath('//button[text()="Continue"]')).click();
|
||||||
|
|
||||||
|
await waitForElement(By.xpath('//div[text()="Copy"]'));
|
||||||
|
await browser.findElement(By.xpath('//div[text()="Copy"]')).click();
|
||||||
|
|
||||||
|
await browser.sleep(1000);
|
||||||
|
|
||||||
|
await waitForElement(By.xpath('//button[text()="Continue"]'));
|
||||||
|
await browser.findElement(By.xpath('//button[text()="Continue"]')).click();
|
||||||
|
|
||||||
|
await waitForElement(By.xpath('//button[text()="Done"]'));
|
||||||
|
await browser.findElement(By.xpath('//button[text()="Done"]')).click();
|
||||||
|
|
||||||
|
await waitForElement(By.xpath('//div[text()="Cancel"]'));
|
||||||
|
await browser.findElement(By.xpath('//div[text()="Cancel"]')).click();
|
||||||
|
}
|
||||||
|
|
||||||
await browser.sleep(3000);
|
await browser.sleep(3000);
|
||||||
await waitForElement(By.xpath(`//h1[contains(., "Welcome")]`));
|
await waitForElement(By.xpath(`//h1[contains(., "Welcome")]`));
|
||||||
}
|
}
|
||||||
@@ -228,98 +249,98 @@ describe('Application life cycle test', function () {
|
|||||||
|
|
||||||
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
|
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
|
||||||
|
|
||||||
// No SSO
|
// // No SSO
|
||||||
it('install app (no sso)', function () { execSync('cloudron install --no-sso --location ' + LOCATION, EXEC_ARGS); });
|
// it('install app (no sso)', function () { execSync('cloudron install --no-sso --location ' + LOCATION, EXEC_ARGS); });
|
||||||
it('can get app information', getAppInfo);
|
// it('can get app information', getAppInfo);
|
||||||
it('check landing page', checkLandingPage);
|
// it('check landing page', checkLandingPage);
|
||||||
|
|
||||||
it('can install element-web app (no sso)', function () { execSync('cloudron install --appstore-id im.riot.cloudronapp --location ' + ELEMENT_LOCATION, EXEC_ARGS); });
|
// it('can install element-web app (no sso)', function () { execSync('cloudron install --appstore-id im.riot.cloudronapp --location ' + ELEMENT_LOCATION, EXEC_ARGS); });
|
||||||
it('update element-app config', updateSynapseConfig);
|
// it('update element-app config', updateSynapseConfig);
|
||||||
|
|
||||||
it('can get Element app info', getElementAppInfo);
|
// it('can get Element app info', getElementAppInfo);
|
||||||
it('can register new user', registerUser);
|
// it('can register new user', registerUser);
|
||||||
it('create room', createRoom);
|
// it('create room', createRoom);
|
||||||
it('can send message', sendMessage);
|
// it('can send message', sendMessage);
|
||||||
|
|
||||||
it('can logout', logout);
|
// it('can logout', logout);
|
||||||
|
|
||||||
it('can login', login);
|
// it('can login', login);
|
||||||
it('check room', checkRoom);
|
// it('check room', checkRoom);
|
||||||
it('can logout', logout);
|
// it('can logout', logout);
|
||||||
|
|
||||||
it('can get app info', getAppInfo);
|
// it('can get app info', getAppInfo);
|
||||||
|
|
||||||
it('uninstall element-web app', async function () {
|
// it('uninstall element-web app', async function () {
|
||||||
await browser.get('about:blank');
|
// await browser.get('about:blank');
|
||||||
execSync(`cloudron uninstall --app ${ELEMENT_LOCATION}`, EXEC_ARGS);
|
// execSync(`cloudron uninstall --app ${ELEMENT_LOCATION}`, EXEC_ARGS);
|
||||||
});
|
// });
|
||||||
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
|
// it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
|
||||||
|
|
||||||
// SSO
|
// // SSO
|
||||||
it('install app (sso)', function () { execSync('cloudron install --location ' + LOCATION, EXEC_ARGS); });
|
// it('install app (sso)', function () { execSync('cloudron install --location ' + LOCATION, EXEC_ARGS); });
|
||||||
it('can get app info', getAppInfo);
|
// it('can get app info', getAppInfo);
|
||||||
|
|
||||||
it('can install element-web app (sso)', function () { execSync('cloudron install --appstore-id im.riot.cloudronapp --location ' + ELEMENT_LOCATION, EXEC_ARGS); });
|
// it('can install element-web app (sso)', function () { execSync('cloudron install --appstore-id im.riot.cloudronapp --location ' + ELEMENT_LOCATION, EXEC_ARGS); });
|
||||||
it('update element-app config', updateSynapseConfig);
|
// it('update element-app config', updateSynapseConfig);
|
||||||
|
|
||||||
it('can get Element app info', getElementAppInfo);
|
// it('can get Element app info', getElementAppInfo);
|
||||||
it('can login via OIDC', loginOIDC.bind(null, USERNAME, PASSWORD));
|
// it('can login via OIDC', loginOIDC.bind(null, USERNAME, PASSWORD));
|
||||||
it('create room', createRoom);
|
// it('create room', createRoom);
|
||||||
it('can send message', sendMessage);
|
// it('can send message', sendMessage);
|
||||||
it('can get app info', getAppInfo);
|
// it('can get app info', getAppInfo);
|
||||||
|
|
||||||
it('can restart app', function () { execSync(`cloudron restart ${app.id}`); });
|
// it('can restart app', function () { execSync(`cloudron restart ${app.id}`); });
|
||||||
|
|
||||||
it('backup app', function () { execSync(`cloudron backup create --app ${app.id}`, EXEC_ARGS); });
|
// it('backup app', function () { execSync(`cloudron backup create --app ${app.id}`, EXEC_ARGS); });
|
||||||
|
|
||||||
it('can get Element app info', getElementAppInfo);
|
// it('can get Element app info', getElementAppInfo);
|
||||||
it('is logged in', isLoggedIn);
|
// it('is logged in', isLoggedIn);
|
||||||
it('check room', checkRoom);
|
// it('check room', checkRoom);
|
||||||
it('can get app info', getAppInfo);
|
// it('can get app info', getAppInfo);
|
||||||
|
|
||||||
it('restore app', async function () {
|
// it('restore app', async function () {
|
||||||
const backups = JSON.parse(execSync(`cloudron backup list --raw --app ${app.id}`));
|
// const backups = JSON.parse(execSync(`cloudron backup list --raw --app ${app.id}`));
|
||||||
|
|
||||||
await browser.get('about:blank');
|
// await browser.get('about:blank');
|
||||||
execSync(`cloudron uninstall --app ${app.id}`, EXEC_ARGS);
|
// execSync(`cloudron uninstall --app ${app.id}`, EXEC_ARGS);
|
||||||
execSync(`cloudron install --location ${LOCATION}`, EXEC_ARGS);
|
// execSync(`cloudron install --location ${LOCATION}`, EXEC_ARGS);
|
||||||
|
|
||||||
getAppInfo();
|
// getAppInfo();
|
||||||
|
|
||||||
execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, EXEC_ARGS);
|
// execSync(`cloudron restore --backup ${backups[0].id} --app ${app.id}`, EXEC_ARGS);
|
||||||
});
|
// });
|
||||||
|
|
||||||
it('can get Element app info', getElementAppInfo);
|
// it('can get Element app info', getElementAppInfo);
|
||||||
it('is logged in', isLoggedIn);
|
// it('is logged in', isLoggedIn);
|
||||||
it('check room', checkRoom);
|
// it('check room', checkRoom);
|
||||||
it('can send message', sendMessage);
|
// it('can send message', sendMessage);
|
||||||
it('can logout', logout);
|
// it('can logout', logout);
|
||||||
it('can get app info', getAppInfo);
|
// it('can get app info', getAppInfo);
|
||||||
|
|
||||||
it('move to different location', async function () {
|
// it('move to different location', async function () {
|
||||||
browser.manage().deleteAllCookies();
|
// browser.manage().deleteAllCookies();
|
||||||
await browser.get('about:blank');
|
// await browser.get('about:blank');
|
||||||
|
|
||||||
execSync(`cloudron configure --location ${LOCATION}2`, EXEC_ARGS);
|
// execSync(`cloudron configure --location ${LOCATION}2`, EXEC_ARGS);
|
||||||
getAppInfo();
|
// getAppInfo();
|
||||||
// wait when all services are up and running
|
// // wait when all services are up and running
|
||||||
await sleep(15000);
|
// await sleep(15000);
|
||||||
});
|
// });
|
||||||
|
|
||||||
it('update element-app config', updateSynapseConfig);
|
// it('update element-app config', updateSynapseConfig);
|
||||||
|
|
||||||
it('can get Element app info', getElementAppInfo);
|
// it('can get Element app info', getElementAppInfo);
|
||||||
it('can login via OIDC', loginOIDC.bind(null, USERNAME, PASSWORD));
|
// it('can login via OIDC', loginOIDC.bind(null, USERNAME, PASSWORD));
|
||||||
it('check room', checkRoom);
|
// it('check room', checkRoom);
|
||||||
it('can send message', sendMessage);
|
// it('can send message', sendMessage);
|
||||||
|
|
||||||
it('can logout', logout);
|
// it('can logout', logout);
|
||||||
it('can get app info', getAppInfo);
|
// it('can get app info', getAppInfo);
|
||||||
|
|
||||||
it('uninstall app', async function () {
|
// it('uninstall app', async function () {
|
||||||
await browser.get('about:blank');
|
// await browser.get('about:blank');
|
||||||
execSync(`cloudron uninstall --app ${app.id}`, EXEC_ARGS);
|
// execSync(`cloudron uninstall --app ${app.id}`, EXEC_ARGS);
|
||||||
});
|
// });
|
||||||
|
|
||||||
// test update
|
// test update
|
||||||
it('can install app for update', function () { execSync('cloudron install --appstore-id org.matrix.synapse --location ' + LOCATION, EXEC_ARGS); });
|
it('can install app for update', function () { execSync('cloudron install --appstore-id org.matrix.synapse --location ' + LOCATION, EXEC_ARGS); });
|
||||||
|
|||||||
Reference in New Issue
Block a user