1
0
mirror of https://git.cloudron.io/cloudron/minio-app synced 2025-09-13 08:19:12 +00:00

Compare commits

...

16 Commits

Author SHA1 Message Date
Package Updates
90284553b2 Update package version to 5.1.1 2025-07-24 07:42:07 +00:00
Renovate Bot
11c5bb051b chore(deps): update dependency minio/minio to release.2025-07-23t15-54-02z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-07-18T21-56-31Z | RELEASE.2025-07-23T15-54-02Z |
2025-07-24 11:20:59 +04:00
Package Updates
40f20c384c Update package version to 5.1.0 2025-07-22 09:27:49 +00:00
Renovate Bot
3ea19664d1 chore(deps): update dependency minio/minio to release.2025-07-18t21-56-31z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-05-24T17-08-30Z | RELEASE.2025-07-18T21-56-31Z |
2025-07-22 09:16:43 +00:00
Girish Ramakrishnan
61a3b06dc3 Update documentation url 2025-06-05 10:45:05 +02:00
Package Updates
b0dad70e87 Update package version to 5.0.0 2025-06-02 17:38:31 +00:00
Girish Ramakrishnan
fd3dee438d comment out update tests
won't work since old version has dropdown selector
2025-06-02 19:17:46 +02:00
Girish Ramakrishnan
b6fce9a3a7 every refresh wants license acceptance 2025-06-02 18:45:21 +02:00
Girish Ramakrishnan
1a8f99b140 attempt to fix tests 2025-06-02 17:58:24 +02:00
Girish Ramakrishnan
daad5e6942 remove oidc, it is gone upstream 2025-06-02 17:58:16 +02:00
Renovate Bot
88340ce812 chore(deps): update dependency minio/minio to release.2025-05-24t17-08-30z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-04-22T22-12-26Z | RELEASE.2025-05-24T17-08-30Z |
2025-05-24 23:20:02 +00:00
Package Updates
60ea2849e1 Update package version to 4.4.2 2025-04-23 12:44:45 +00:00
Vladimir D
c021c66390 create bucket test updated 2025-04-23 15:37:51 +04:00
Renovate Bot
2d9ad57e0b chore(deps): update dependency minio/minio to release.2025-04-22t22-12-26z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-04-08T15-41-24Z | RELEASE.2025-04-22T22-12-26Z |
2025-04-22 23:19:40 +00:00
Package Updates
dcd3063a72 Update package version to 4.4.1 2025-04-09 07:56:47 +00:00
Renovate Bot
597feab31e chore(deps): update dependency minio/minio to release.2025-04-08t15-41-24z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-04-03T14-56-28Z | RELEASE.2025-04-08T15-41-24Z |
2025-04-08 23:19:30 +00:00
8 changed files with 253 additions and 417 deletions

View File

@@ -2848,3 +2848,51 @@ Improve replication performance. See (#12080, #12054, #12009) for more details.
* Try reconnect IAM systems if failed initially by [@shtripat](https://github.com/shtripat) in https://github.com/minio/minio/pull/20333
* Fix evaluation of NewerNoncurrentVersions by [@krisis](https://github.com/krisis) in https://github.com/minio/minio/pull/21096
[4.4.1]
* Update minio to RELEASE.2025-04-08T15-41-24Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-04-08T15-41-24Z)
* decom: Ignore orphan delete markers in verification stage by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/21106
* ilm: Expect objects with only free versions when scanning by [@​krisis](https://github.com/krisis) in https://github.com/minio/minio/pull/21112
[4.4.2]
* Update minio to RELEASE.2025-04-22T22-12-26Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-04-22T22-12-26Z)
* move to go1.24 by [@harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/21114
* Fix buffered streams missing final entries by [@klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/21122
* typo: fix error msg for decoding XL headers by [@wooffie](https://github.com/wooffie) in https://github.com/minio/minio/pull/21120
* typo: fix return of checkDiskFatalErrs by [@wooffie](https://github.com/wooffie) in https://github.com/minio/minio/pull/21121
* Fix shared error buffer by [@klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/21203
* support autogenerated credentials for KMS_SECRET_KEY properly by [@harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/21223
* fix: batch expiry job doesn't report delete marker in batch-status me by [@jiuker](https://github.com/jiuker) in https://github.com/minio/minio/pull/21183
* Nats tls handshake first by [@matthewdavidlloyd](https://github.com/matthewdavidlloyd) in https://github.com/minio/minio/pull/21008
[5.0.0]
* Update minio to RELEASE.2025-05-24T17-08-30Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-05-24T17-08-30Z)
* **BREAKING RELEASE:** Embedded UI Console is now deprecated and moved to object-browser
* **IMPORTANT:** MinIO has decided to [remove all administration features](https://github.com/minio/object-browser/pull/3509) from the console. The UI now only has an object browser. You must now use the `mc` CLI tool for creating keys and setting up permissions.
* **IMPORANT**: OIDC Auth has been removed upstream as well. You can only access MinIO using admin credentials after this update. [Access key creation is no longer possible](https://github.com/minio/minio/issues/21344) .
[5.1.0]
* Update minio to RELEASE.2025-07-18T21-56-31Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-07-18T21-56-31Z)
* Update Console to latest version by [@bexsoft](https://github.com/bexsoft) in https://github.com/minio/minio/pull/21397
* CopyObject must preserve checksums and encrypt them if required by [@marktheunissen](https://github.com/marktheunissen) in https://github.com/minio/minio/pull/21399
* fix: admin api - SetPolicyForUserOrGroup avoid nil deref by [@wooffie](https://github.com/wooffie) in https://github.com/minio/minio/pull/21400
* fix: lambda handler response to match the lambda return status by [@harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/21436
* s3: Fix early listing stopping when ILM is enabled ([#472](https://github.com/minio/minio/issues/472)) by [@vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/21246
* Update README.md by [@varun28sharma](https://github.com/varun28sharma) in https://github.com/minio/minio/pull/21125
* fix: empty fileName cause Reader nil for PostPolicyBucketHandler by [@jiuker](https://github.com/jiuker) in https://github.com/minio/minio/pull/21323
* fix: panic for TestListObjectsWithILM by [@jiuker](https://github.com/jiuker) in https://github.com/minio/minio/pull/21322
* modernizes for loop in cmd/, internal/ by [@12ya](https://github.com/12ya) in https://github.com/minio/minio/pull/21309
* Add `targetArn` label for bucket replication metrics by [@shtripat](https://github.com/shtripat) in https://github.com/minio/minio/pull/21354
[5.1.1]
* Update minio to RELEASE.2025-07-23T15-54-02Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-07-23T15-54-02Z)
* Add support for X25519MLKEM768 by [@loganaden](https://github.com/loganaden) in https://github.com/minio/minio/pull/21435
* fix: restrict SinglePool by the minimum free drive threshold by [@jiuker](https://github.com/jiuker) in https://github.com/minio/minio/pull/21115
* wait for metadata reads on minDisks+1 for HEAD/GET when data==parity by [@harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/21449
* fix boundary value bug when objTime ends in whole seconds (without sub-second) by [@supermp](https://github.com/supermp) in https://github.com/minio/minio/pull/21419
* simplify validating policy mapping by [@0xMALVEE](https://github.com/0xMALVEE) in https://github.com/minio/minio/pull/21450

View File

@@ -5,8 +5,8 @@
"description": "file://DESCRIPTION.md",
"changelog": "file://CHANGELOG",
"tagline": "Distributed object storage",
"version": "4.4.0",
"upstreamVersion": "RELEASE.2025-04-03T14-56-28Z",
"version": "5.1.1",
"upstreamVersion": "RELEASE.2025-07-23T15-54-02Z",
"healthCheckPath": "/minio/login",
"memoryLimit": 2147483648,
"httpPort": 8000,
@@ -19,15 +19,11 @@
}
},
"addons": {
"localstorage": {},
"oidc": {
"loginRedirectUri": "/oauth_callback"
}
"localstorage": {}
},
"optionalSso": true,
"checklist": {
"change-default-password": {
"sso": false,
"message": "Change the default admin credentials by following this [guide](https://cloudron.io/documentation/apps/minio/#admin-credentials)"
}
},
@@ -35,7 +31,7 @@
"website": "http://www.minio.io",
"minBoxVersion": "8.1.0",
"forumUrl": "https://forum.cloudron.io/category/69/minio",
"documentationUrl": "https://docs.cloudron.io/apps/minio/",
"documentationUrl": "https://docs.cloudron.io/packages/minio/",
"contactEmail": "support@cloudron.io",
"icon": "logo.png",
"tags": [

View File

@@ -4,7 +4,7 @@ RUN mkdir -p /app/code
WORKDIR /app/code
# renovate: datasource=github-releases depName=minio/minio versioning=regex:^RELEASE\.(?<major>\d{4})-(?<minor>\d{2})-(?<patch>\d{2})T(?<build>.+)
ARG MINIO_VERSION=RELEASE.2025-04-03T14-56-28Z
ARG MINIO_VERSION=RELEASE.2025-07-23T15-54-02Z
RUN wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.${MINIO_VERSION} -O /app/code/minio && chmod +x /app/code/minio

View File

@@ -1,18 +1,5 @@
<nosso>
Please use the following credentials to login:
**Username**: minioadmin<br/>
**Password**: minioadmin<br/>
</nosso>
<sso>
Please use the following credentials to login via 'Other Authentication Methods' -> 'Use Credentials':
**Username**: minioadmin<br/>
**Password**: See `MINIO_ROOT_PASSWORD` in `/app/data/env.sh` <a href="/frontend/filemanager.html#/viewer/app/$CLOUDRON-APP-ID/env.sh">Open File Manager</a><br/>
Cloudron users have `readwrite` access policy. See the [docs](https://cloudron.io/documentation/apps/minio/#admin-credentials) on how to change it.
</nosso>

View File

@@ -8,13 +8,7 @@ mkdir -p /app/data/data /run/minio/config /run/minio/certs
if [[ ! -f /app/data/env.sh ]]; then
echo "=> First run"
cp /app/code/env.sh.template /app/data/env.sh
# minio does not show the password login by default when OIDC is setup (https://github.com/minio/minio/discussions/16928)
# we generate a dynamic password because users might forget to change the admin password (with the oidc login being so click friendly)
if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
echo -e "export MINIO_ROOT_USER=minioadmin\nexport MINIO_ROOT_PASSWORD=$(pwgen -1s 20)\n\n" >> /app/data/env.sh
else
echo -e "export MINIO_ROOT_USER=minioadmin\nexport MINIO_ROOT_PASSWORD=minioadmin\n\n" >> /app/data/env.sh
fi
fi
source /app/data/env.sh
@@ -28,19 +22,6 @@ if [[ ! -d /app/data/mc_config ]]; then
/app/code/mc --config-dir /app/data/mc_config &> /dev/null || true
fi
if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
export MINIO_IDENTITY_OPENID_DISPLAY_NAME="${CLOUDRON_OIDC_PROVIDER_NAME:-Cloudron}"
export MINIO_IDENTITY_OPENID_CONFIG_URL="${CLOUDRON_OIDC_DISCOVERY_URL}"
export MINIO_IDENTITY_OPENID_CLIENT_ID="${CLOUDRON_OIDC_CLIENT_ID}"
export MINIO_IDENTITY_OPENID_CLIENT_SECRET="${CLOUDRON_OIDC_CLIENT_SECRET}"
export MINIO_IDENTITY_OPENID_SCOPES="openid profile email"
if [[ -z "${MINIO_IDENTITY_OPENID_ROLE_POLICY:-}" ]]; then
export MINIO_IDENTITY_OPENID_ROLE_POLICY="readwrite"
fi
export MINIO_IDENTITY_OPENID_COMMENT="Cloudron OIDC"
fi
# minio is used for backups at times and has a large number of files. optimize by checking if files are actually in correct chown state
echo "==> Changing ownership"
[[ $(stat --format '%U' /app/data/data) != "cloudron" ]] && chown -R cloudron:cloudron /app/data

391
test/package-lock.json generated
View File

@@ -9,11 +9,12 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"chromedriver": "^135.0.0",
"@eslint/js": "^9.31.0",
"chromedriver": "^138.0.3",
"expect.js": "^0.3.1",
"mocha": "^11.1.0",
"selenium-webdriver": "^4.30.0",
"superagent": "^10.2.0"
"mocha": "^11.7.1",
"selenium-webdriver": "^4.34.0",
"superagent": "^10.2.3"
}
},
"node_modules/@bazel/runfiles": {
@@ -22,6 +23,18 @@
"integrity": "sha512-1uLNT5NZsUVIGS4syuHwTzZ8HycMPyr6POA3FCE4GbMtc4rhoJk8aZKtNIRthJYfL+iioppi+rTfH3olMPr9nA==",
"license": "Apache-2.0"
},
"node_modules/@eslint/js": {
"version": "9.31.0",
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.31.0.tgz",
"integrity": "sha512-LOm5OVt7D4qiKCqoiPbA7LWmI+tbw1VbTUowBcUMgQSuM6poJufkFkYDcQpo5KfgD39TnNySV26QjOh7VFpSyw==",
"license": "MIT",
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
"url": "https://eslint.org/donate"
}
},
"node_modules/@isaacs/cliui": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
@@ -39,6 +52,27 @@
"node": ">=12"
}
},
"node_modules/@noble/hashes": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
"integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
"license": "MIT",
"engines": {
"node": "^14.21.3 || >=16"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/@paralleldrive/cuid2": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/@paralleldrive/cuid2/-/cuid2-2.2.2.tgz",
"integrity": "sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==",
"license": "MIT",
"dependencies": {
"@noble/hashes": "^1.1.5"
}
},
"node_modules/@pkgjs/parseargs": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
@@ -90,15 +124,6 @@
"node": ">= 14"
}
},
"node_modules/ansi-colors": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",
"integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/ansi-regex": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",
@@ -126,19 +151,6 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/anymatch": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
"license": "ISC",
"dependencies": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
@@ -195,18 +207,6 @@
"node": ">=10.0.0"
}
},
"node_modules/binary-extensions": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
"integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
"license": "MIT",
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/brace-expansion": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
@@ -216,18 +216,6 @@
"balanced-match": "^1.0.0"
}
},
"node_modules/braces": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
"license": "MIT",
"dependencies": {
"fill-range": "^7.1.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/browser-stdout": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
@@ -313,33 +301,24 @@
}
},
"node_modules/chokidar": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
"integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
"license": "MIT",
"dependencies": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
"glob-parent": "~5.1.2",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
"normalize-path": "~3.0.0",
"readdirp": "~3.6.0"
"readdirp": "^4.0.1"
},
"engines": {
"node": ">= 8.10.0"
"node": ">= 14.16.0"
},
"funding": {
"url": "https://paulmillr.com/funding/"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
}
},
"node_modules/chromedriver": {
"version": "135.0.0",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-135.0.0.tgz",
"integrity": "sha512-ilE3cIrIieiRU/a6MNpt0CL0UZs2tu0lQAes+el5SV03MB1zYIEXy+dDeueid/g8AmT1loy7TB2fjWwcHLY8lg==",
"version": "138.0.3",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-138.0.3.tgz",
"integrity": "sha512-RKcfzbUthmQzFmy91F9StQQwNZ72khp3febF/RntpkDKhhCkwor0cgop00diwzAVSUq1s2e8B54Iema9FQnynw==",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
@@ -355,7 +334,7 @@
"chromedriver": "bin/chromedriver"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
},
"node_modules/cliui": {
@@ -579,9 +558,9 @@
}
},
"node_modules/diff": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz",
"integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==",
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz",
"integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==",
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.3.1"
@@ -652,6 +631,21 @@
"node": ">= 0.4"
}
},
"node_modules/es-set-tostringtag": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
"integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.6",
"has-tostringtag": "^1.0.2",
"hasown": "^2.0.2"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/escalade": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
@@ -765,18 +759,6 @@
"pend": "~1.2.0"
}
},
"node_modules/fill-range": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
"license": "MIT",
"dependencies": {
"to-regex-range": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/find-up": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
@@ -839,13 +821,15 @@
}
},
"node_modules/form-data": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz",
"integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==",
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
"license": "MIT",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
"es-set-tostringtag": "^2.1.0",
"hasown": "^2.0.2",
"mime-types": "^2.1.12"
},
"engines": {
@@ -853,33 +837,22 @@
}
},
"node_modules/formidable": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.2.tgz",
"integrity": "sha512-Jqc1btCy3QzRbJaICGwKcBfGWuLADRerLzDqi2NwSt/UkXLsHJw2TVResiaoBufHVHy9aSgClOHCeJsSsFLTbg==",
"version": "3.5.4",
"resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.4.tgz",
"integrity": "sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==",
"license": "MIT",
"dependencies": {
"@paralleldrive/cuid2": "^2.2.2",
"dezalgo": "^1.0.4",
"hexoid": "^2.0.0",
"once": "^1.4.0"
},
"engines": {
"node": ">=14.0.0"
},
"funding": {
"url": "https://ko-fi.com/tunnckoCore/commissions"
}
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
@@ -971,33 +944,6 @@
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"license": "ISC",
"dependencies": {
"is-glob": "^4.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/glob/node_modules/minimatch": {
"version": "9.0.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
"license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
"node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/gopd": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
@@ -1031,6 +977,21 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/has-tostringtag": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
"license": "MIT",
"dependencies": {
"has-symbols": "^1.0.3"
},
"engines": {
"node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/hasown": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
@@ -1052,15 +1013,6 @@
"he": "bin/he"
}
},
"node_modules/hexoid": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/hexoid/-/hexoid-2.0.0.tgz",
"integrity": "sha512-qlspKUK7IlSQv2o+5I7yhUd7TxlOG2Vr5LTa3ve2XSNVKAL/n/u/7KLvKmFNimomDIKvZFXWHv0T12mv7rT8Aw==",
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/http-proxy-agent": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
@@ -1121,27 +1073,6 @@
"node": ">=8"
}
},
"node_modules/is-binary-path": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"license": "MIT",
"dependencies": {
"binary-extensions": "^2.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
@@ -1151,27 +1082,6 @@
"node": ">=8"
}
},
"node_modules/is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"license": "MIT",
"dependencies": {
"is-extglob": "^2.1.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"license": "MIT",
"engines": {
"node": ">=0.12.0"
}
},
"node_modules/is-plain-obj": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",
@@ -1368,15 +1278,18 @@
}
},
"node_modules/minimatch": {
"version": "5.1.6",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
"integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
"version": "9.0.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
"license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
"node": ">=10"
"node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/minipass": {
@@ -1389,28 +1302,28 @@
}
},
"node_modules/mocha": {
"version": "11.1.0",
"resolved": "https://registry.npmjs.org/mocha/-/mocha-11.1.0.tgz",
"integrity": "sha512-8uJR5RTC2NgpY3GrYcgpZrsEd9zKbPDpob1RezyR2upGHRQtHWofmzTMzTMSV6dru3tj5Ukt0+Vnq1qhFEEwAg==",
"version": "11.7.1",
"resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.1.tgz",
"integrity": "sha512-5EK+Cty6KheMS/YLPPMJC64g5V61gIR25KsRItHw6x4hEKT6Njp1n9LOlH4gpevuwMVS66SXaBBpg+RWZkza4A==",
"license": "MIT",
"dependencies": {
"ansi-colors": "^4.1.3",
"browser-stdout": "^1.3.1",
"chokidar": "^3.5.3",
"chokidar": "^4.0.1",
"debug": "^4.3.5",
"diff": "^5.2.0",
"diff": "^7.0.0",
"escape-string-regexp": "^4.0.0",
"find-up": "^5.0.0",
"glob": "^10.4.5",
"he": "^1.2.0",
"js-yaml": "^4.1.0",
"log-symbols": "^4.1.0",
"minimatch": "^5.1.6",
"minimatch": "^9.0.5",
"ms": "^2.1.3",
"picocolors": "^1.1.1",
"serialize-javascript": "^6.0.2",
"strip-json-comments": "^3.1.1",
"supports-color": "^8.1.1",
"workerpool": "^6.5.1",
"workerpool": "^9.2.0",
"yargs": "^17.7.2",
"yargs-parser": "^21.1.1",
"yargs-unparser": "^2.0.0"
@@ -1438,15 +1351,6 @@
"node": ">= 0.4.0"
}
},
"node_modules/normalize-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/object-inspect": {
"version": "1.13.3",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz",
@@ -1582,17 +1486,11 @@
"integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
"license": "MIT"
},
"node_modules/picomatch": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
"license": "MIT",
"engines": {
"node": ">=8.6"
},
"funding": {
"url": "https://github.com/sponsors/jonschlinkert"
}
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
"license": "ISC"
},
"node_modules/process-nextick-args": {
"version": "2.0.1",
@@ -1684,15 +1582,16 @@
}
},
"node_modules/readdirp": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
"integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
"license": "MIT",
"dependencies": {
"picomatch": "^2.2.1"
},
"engines": {
"node": ">=8.10.0"
"node": ">= 14.18.0"
},
"funding": {
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/require-directory": {
@@ -1711,9 +1610,9 @@
"license": "MIT"
},
"node_modules/selenium-webdriver": {
"version": "4.30.0",
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.30.0.tgz",
"integrity": "sha512-3DGtQI/xyAg05SrqzzpFaXRWYL+Kku3fsikCoBaxApKzhBMUX5UiHdPb2je2qKMf2PjJiEFaj0L5xELHYRbYMA==",
"version": "4.34.0",
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.34.0.tgz",
"integrity": "sha512-zGfQFcsASAv3KrYzYh+iw4fFqB7iZAgHW7BU6rRz7isK1i1X4x3LvjmZad4bUUgHDwTnAhlqTzDh21byB+zHMg==",
"funding": [
{
"type": "github",
@@ -1729,10 +1628,10 @@
"@bazel/runfiles": "^6.3.1",
"jszip": "^3.10.1",
"tmp": "^0.2.3",
"ws": "^8.18.0"
"ws": "^8.18.2"
},
"engines": {
"node": ">= 18.20.5"
"node": ">= 20.0.0"
}
},
"node_modules/serialize-javascript": {
@@ -2027,20 +1926,20 @@
}
},
"node_modules/superagent": {
"version": "10.2.0",
"resolved": "https://registry.npmjs.org/superagent/-/superagent-10.2.0.tgz",
"integrity": "sha512-IKeoGox6oG9zyDeizaezkJ2/aK0wc5la9st7WsAKyrAkfJ56W3whVbVtF68k6wuc87/y9T85NyON5FLz7Mrzzw==",
"version": "10.2.3",
"resolved": "https://registry.npmjs.org/superagent/-/superagent-10.2.3.tgz",
"integrity": "sha512-y/hkYGeXAj7wUMjxRbB21g/l6aAEituGXM9Rwl4o20+SX3e8YOSV6BxFXl+dL3Uk0mjSL3kCbNkwURm8/gEDig==",
"license": "MIT",
"dependencies": {
"component-emitter": "^1.3.0",
"component-emitter": "^1.3.1",
"cookiejar": "^2.1.4",
"debug": "^4.3.4",
"debug": "^4.3.7",
"fast-safe-stringify": "^2.1.1",
"form-data": "^4.0.0",
"formidable": "^3.5.2",
"form-data": "^4.0.4",
"formidable": "^3.5.4",
"methods": "^1.1.2",
"mime": "2.6.0",
"qs": "^6.11.0"
"qs": "^6.11.2"
},
"engines": {
"node": ">=14.18.0"
@@ -2103,18 +2002,6 @@
"node": ">=14.14"
}
},
"node_modules/to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"license": "MIT",
"dependencies": {
"is-number": "^7.0.0"
},
"engines": {
"node": ">=8.0"
}
},
"node_modules/tslib": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
@@ -2150,9 +2037,9 @@
}
},
"node_modules/workerpool": {
"version": "6.5.1",
"resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz",
"integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==",
"version": "9.3.3",
"resolved": "https://registry.npmjs.org/workerpool/-/workerpool-9.3.3.tgz",
"integrity": "sha512-slxCaKbYjEdFT/o2rH9xS1hf4uRDch1w7Uo+apxhZ+sf/1d9e0ZVkn42kPNGP2dgjIx6YFvSevj0zHvbWe2jdw==",
"license": "Apache-2.0"
},
"node_modules/wrap-ansi": {
@@ -2250,9 +2137,9 @@
"license": "ISC"
},
"node_modules/ws": {
"version": "8.18.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz",
"integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==",
"version": "8.18.3",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",
"integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
"license": "MIT",
"engines": {
"node": ">=10.0.0"

View File

@@ -9,10 +9,11 @@
"author": "",
"license": "ISC",
"dependencies": {
"chromedriver": "^135.0.0",
"@eslint/js": "^9.31.0",
"chromedriver": "^138.0.3",
"expect.js": "^0.3.1",
"mocha": "^11.1.0",
"selenium-webdriver": "^4.30.0",
"superagent": "^10.2.0"
"mocha": "^11.7.1",
"selenium-webdriver": "^4.34.0",
"superagent": "^10.2.3"
}
}

View File

@@ -35,7 +35,8 @@ describe('Application life cycle test', function () {
const password = process.env.PASSWORD;
before(function () {
const chromeOptions = new Options().windowSize({ width: 1280, height: 1024 });
const chromeOptions = new Options().windowSize({ width: 1600, height: 1024 });
chromeOptions.addArguments('guest'); // disable password checks
if (process.env.CI) chromeOptions.addArguments('no-sandbox', 'disable-dev-shm-usage', 'headless');
browser = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build();
if (!fs.existsSync('./screenshots')) fs.mkdirSync('./screenshots');
@@ -67,72 +68,61 @@ describe('Application life cycle test', function () {
expect(app).to.be.an('object');
}
async function login(username, password, expandLoginForm=true) {
async function confirmLicense() {
await timers.setTimeout(5000);
await waitForElement(By.id('acknowledge-confirm'));
const button = await browser.findElement(By.id('acknowledge-confirm'));
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
await browser.sleep(4000);
await button.click();
await browser.sleep(4000);
}
async function login(username, password, acceptLicense=false) {
await browser.manage().deleteAllCookies();
await browser.get('about:blank');
await browser.sleep(2000);
await browser.get(`https://${app.fqdn}/login`);
await browser.sleep(2000);
if (expandLoginForm) {
await waitForElement(By.xpath('//div[@id="alternativeMethods-select"]/div[contains(., "Other Authentication Methods")]'));
await browser.findElement(By.xpath('//div[@id="alternativeMethods-select"]/div[contains(., "Other Authentication Methods")]')).click();
await browser.sleep(2000);
await browser.findElement(By.xpath('//li[contains(., "Use Credentials")] | //div[@label="Use Credentials"]')).click();
await browser.sleep(2000);
}
await waitForElement(By.id('accessKey'));
await browser.findElement(By.id('accessKey')).sendKeys(username);
await browser.findElement(By.id('secretKey')).sendKeys(password);
await browser.findElement(By.xpath('//button[@id="do-login"]')).click();
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
if (acceptLicense) await confirmLicense();
await waitForElement(By.xpath('//button[contains(., "Create Bucket")]'));
await timers.setTimeout(5000);
}
async function loginOIDC(username, password, alreadyAuthenticated = true) {
browser.manage().deleteAllCookies();
await browser.get(`https://${app.fqdn}/login`);
await browser.sleep(10000);
await waitForElement(By.xpath('//button[contains(., "iam")]'));
await browser.findElement(By.xpath('//button[contains(., "iam")]')).click();
await browser.sleep(10000);
if (!alreadyAuthenticated) {
await waitForElement(By.id('inputUsername'));
await browser.findElement(By.id('inputUsername')).sendKeys(username);
await browser.findElement(By.id('inputPassword')).sendKeys(password);
await browser.findElement(By.id('loginSubmitButton')).click();
await browser.sleep(2000);
}
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
}
async function logout() {
await browser.get(`https://${app.fqdn}/`);
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
await browser.sleep(10000);
// await browser.get(`https://${app.fqdn}/`);
await waitForElement(By.xpath('//button[contains(., "Create Bucket")]'));
const button = await browser.findElement(By.xpath('//button[@id="sign-out"]'));
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
await button.click();
await browser.sleep(10000); // needed!
await waitForElement(By.xpath('//*[@id="accessKey"] | //button[contains(., "Cloudron")]'));
await waitForElement(By.xpath('//*[@id="accessKey"]'));
}
async function addBucket() {
await browser.get(`https://${app.fqdn}/buckets`);
await waitForElement(By.xpath('//button[@id="create-bucket"]'));
await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
await browser.sleep(2000);
// await browser.get(`https://${app.fqdn}/buckets`);
await waitForElement(By.xpath('//button[contains(., "Create Bucket")]'));
await browser.findElement(By.xpath('//button[contains(., "Create Bucket")]')).click();
await browser.sleep(1000);
await waitForElement(By.xpath('//input[@id="bucket-name"]'));
await browser.findElement(By.xpath('//input[@id="bucket-name"]')).sendKeys(BUCKET);
await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
// await browser.get(`https://${app.fqdn}/buckets`);
await waitForElement(By.xpath(`//h1[contains(text(), "${BUCKET}")]`));
await timers.setTimeout(5000);
}
async function checkBucket() {
await browser.get(`https://${app.fqdn}/buckets`);
await browser.sleep(10000);
// await browser.get(`https://${app.fqdn}/buckets`);
await waitForElement(By.xpath(`//h1[contains(text(), "${BUCKET}")]`));
}
@@ -168,51 +158,18 @@ describe('Application life cycle test', function () {
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
// // no SSO
it('install app (no SSO)', async function () {
execSync(`cloudron install --no-sso --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
await timers.setTimeout(10000);
});
it('can get app information', getAppInfo);
it('can admin login', login.bind(null, 'minioadmin', 'minioadmin', false));
it('can add bucket', addBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('can change admin credentials', changeAdminCredentials);
it('can restart app', async function () {
execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS);
await timers.setTimeout(10000);
});
it('can admin login', login.bind(null, 'minioakey', 'minioskey', false));
it('has bucket', checkBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
// SSO
it('install app (SSO)', async function () {
it('install app', async function () {
execSync(`cloudron install --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
await timers.setTimeout(10000);
});
it('can get app information', getAppInfo);
it('can get admin credentials', getAdminCredentials);
it('can admin login', async function () { await login('minioadmin', rootPassword); });
it('can admin login', login.bind(null, 'minioadmin', 'minioadmin', true));
it('can add bucket', addBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('can OIDC login', loginOIDC.bind(null, username, password, false));
it('has bucket', checkBucket);
it('can logout', logout);
it('can change admin credentials', changeAdminCredentials);
it('can restart app', async function () {
@@ -220,16 +177,12 @@ describe('Application life cycle test', function () {
await timers.setTimeout(10000);
});
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
it('can admin login', login.bind(null, 'minioakey', 'minioskey', true));
it('has bucket', checkBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('has bucket', checkBucket);
it('can logout', logout);
it('backup app', function () { execSync('cloudron backup create --app ' + app.id, EXEC_ARGS); });
it('restore app', async function () {
const backups = JSON.parse(execSync(`cloudron backup list --raw --app ${app.id}`));
@@ -241,11 +194,7 @@ describe('Application life cycle test', function () {
});
it('can get app information', getAppInfo);
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
it('has bucket', checkBucket);
it('can logout', logout);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('can admin login', login.bind(null, 'minioakey', 'minioskey', true));
it('has bucket', checkBucket);
it('can logout', logout);
@@ -259,11 +208,7 @@ describe('Application life cycle test', function () {
});
it('can get app information', getAppInfo);
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
it('has bucket', checkBucket);
it('can logout', logout);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('can admin login', login.bind(null, 'minioakey', 'minioskey', true));
it('has bucket', checkBucket);
it('can logout', logout);
@@ -273,33 +218,24 @@ describe('Application life cycle test', function () {
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
// test update
it('can install app for update', function () { execSync('cloudron install --appstore-id io.minio.cloudronapp --location ' + LOCATION, EXEC_ARGS); });
it('can get app information', getAppInfo);
it('can get admin credentials', getAdminCredentials);
it('can admin login', async function () { await login('minioadmin', rootPassword); });
it('can add buckets', addBucket);
it('can logout', logout);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('has bucket', checkBucket);
it('can logout', logout);
it('can update', function () { execSync(`cloudron update --app ${LOCATION}`, EXEC_ARGS); });
it('can configure', function () { execSync(`cloudron configure --app ${LOCATION} --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS); });
it('can get app information', getAppInfo);
it('can admin login', async function () { await login('minioadmin', rootPassword); });
it('has bucket', checkBucket);
it('can logout', logout);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('has bucket', checkBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
// it('can install app for update', function () { execSync('cloudron install --appstore-id io.minio.cloudronapp --location ' + LOCATION, EXEC_ARGS); });
// it('can get app information', getAppInfo);
//
// it('can get admin credentials', getAdminCredentials);
// it('can admin login', async () => await login('minioadmin', rootPassword, true));
// it('can add buckets', addBucket);
// it('can logout', logout);
//
// it('can update', function () { execSync(`cloudron update --app ${LOCATION}`, EXEC_ARGS); });
// it('can configure', function () { execSync(`cloudron configure --app ${LOCATION} --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS); });
// it('can get app information', getAppInfo);
//
// it('can admin login', async () => await login('minioadmin', rootPassword, true));
// it('has bucket', checkBucket);
// it('can logout', logout);
//
// it('does redirect', checkRedirect);
// it('check api', checkApi);
//
// it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
});