mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-13 08:19:12 +00:00
Compare commits
37 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
0f83f74206 | ||
|
6744a8d9fc | ||
|
ddc0135b08 | ||
|
90284553b2 | ||
|
11c5bb051b | ||
|
40f20c384c | ||
|
3ea19664d1 | ||
|
61a3b06dc3 | ||
|
b0dad70e87 | ||
|
fd3dee438d | ||
|
b6fce9a3a7 | ||
|
1a8f99b140 | ||
|
daad5e6942 | ||
|
88340ce812 | ||
|
60ea2849e1 | ||
|
c021c66390 | ||
|
2d9ad57e0b | ||
|
dcd3063a72 | ||
|
597feab31e | ||
|
49ef4e7e7d | ||
|
5e1370d29d | ||
|
092b769513 | ||
|
0775dc3071 | ||
|
151aeec9cd | ||
|
1e85285b69 | ||
|
024836d91c | ||
|
fd100bda55 | ||
|
0a72a3bd3d | ||
|
e16ce9c9ad | ||
|
bc6a5cd7b4 | ||
|
7b14494230 | ||
|
6aba571eb7 | ||
|
2ef9e56703 | ||
|
819c9b1211 | ||
|
2c400adc2a | ||
|
fd01bf3109 | ||
|
4d926a3058 |
146
CHANGELOG
146
CHANGELOG
@@ -2764,3 +2764,149 @@ Improve replication performance. See (#12080, #12054, #12009) for more details.
|
||||
* Correct bucket metrics name by [@​shtripat](https://github.com/shtripat) in https://github.com/minio/minio/pull/20823
|
||||
* update deps by [@​harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/20851
|
||||
|
||||
[4.0.1]
|
||||
* Update minio to RELEASE.2025-01-20T14-49-07Z
|
||||
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-01-20T14-49-07Z)
|
||||
* do not list buckets without local quorum by [@​harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/20852
|
||||
* Add Full Object Checksums and CRC64-NVME by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20855
|
||||
|
||||
[4.1.0]
|
||||
* Update minio to RELEASE.2025-02-03T21-03-04Z
|
||||
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-02-03T21-03-04Z)
|
||||
* do not expose secret-key to lambda event handler by [@​harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/20870
|
||||
* Allow URLs up to 32KB and improve parsing speed by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20874
|
||||
* DeleteObjects: Send delete to all pools ([#​172](https://github.com/minio/minio/issues/172)) by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20821
|
||||
* Check for valid checksum by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20878
|
||||
* Add lock overload protection by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20876
|
||||
* Redact sensitive fields from DescribeBatchJob by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20881
|
||||
* fix: proxy requests to honor global transport by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20889
|
||||
|
||||
[4.1.1]
|
||||
* Update minio to RELEASE.2025-02-07T23-21-09Z
|
||||
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-02-07T23-21-09Z)
|
||||
* replication: default tag timestamps in CopyObject call by [@​poornas](https://github.com/poornas) in https://github.com/minio/minio/pull/20891
|
||||
* sts: allow client-provided intermediate CAs by [@​aead](https://github.com/aead) in https://github.com/minio/minio/pull/20896
|
||||
* Fix multipart replication with 1 part objects by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20895
|
||||
* kms: add `MINIO_KMS_REPLICATE_KEYID` option by [@​aead](https://github.com/aead) in https://github.com/minio/minio/pull/20909
|
||||
|
||||
[4.1.2]
|
||||
* Update minio to RELEASE.2025-02-18T16-25-55Z
|
||||
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-02-18T16-25-55Z)
|
||||
* Fix nil pointer deref in PeerPolicyMappingHandler by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20913
|
||||
* (s)ftp: Enable trailing headers for upload by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20914
|
||||
* Quick patch for Snowball AutoExtract: [#​20883](https://github.com/minio/minio/issues/20883) by [@​mannreis](https://github.com/mannreis) in https://github.com/minio/minio/pull/20885
|
||||
* Update console to 1.7.6 by [@​cesnietor](https://github.com/cesnietor) in https://github.com/minio/minio/pull/20925
|
||||
* Fix missing authorization check for `PutObjectRetentionHandler` by [@​ramondeklein](https://github.com/ramondeklein) in https://github.com/minio/minio/pull/20929
|
||||
* ftp: Enable trailing headers, just like sftp by [@​jkandasa](https://github.com/jkandasa) in https://github.com/minio/minio/pull/20938
|
||||
* fix(docs): update mc admin trace link to MinIO official docs by [@​felixrodrigo19](https://github.com/felixrodrigo19) in https://github.com/minio/minio/pull/20943
|
||||
* Extract all files from encrypted stream with inspect by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20937
|
||||
* Test checksum types for invalid combinations by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20953
|
||||
* tests: Do not allow forced type asserts by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20905
|
||||
* [@​mannreis](https://github.com/mannreis) made their first contribution in https://github.com/minio/minio/pull/20885
|
||||
* [@​jkandasa](https://github.com/jkandasa) made their first contribution in https://github.com/minio/minio/pull/20938
|
||||
* [@​1911860538](https://github.com/1911860538) made their first contribution in https://github.com/minio/minio/pull/20939
|
||||
* [@​felixrodrigo19](https://github.com/felixrodrigo19) made their first contribution in https://github.com/minio/minio/pull/20943
|
||||
|
||||
[4.1.3]
|
||||
* Update minio to RELEASE.2025-02-28T09-55-16Z
|
||||
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-02-28T09-55-16Z)
|
||||
* Fix importIAM issue with importing implied policies by [@​taran-p](https://github.com/taran-p) in https://github.com/minio/minio/pull/20956
|
||||
* Update SRSvcAccCreate with new type by [@​taran-p](https://github.com/taran-p) in https://github.com/minio/minio/pull/20974
|
||||
* build(deps): bump github.com/go-jose/go-jose/v4 from 4.0.4 to 4.0.5 by [@​dependabot](https://github.com/dependabot) in https://github.com/minio/minio/pull/20976
|
||||
* Fix typos by [@​triplechecker-com](https://github.com/triplechecker-com) in https://github.com/minio/minio/pull/20970
|
||||
* Update golang.org/x/crypto to address govulncheck complaint by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20983
|
||||
* Allow disabling of all X-Forwarded-For header processing by [@​marktheunissen](https://github.com/marktheunissen) in https://github.com/minio/minio/pull/20977
|
||||
* check for errors on bitrotWriter Close() by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20982
|
||||
* replication: set checksum type correctly by [@​poornas](https://github.com/poornas) in https://github.com/minio/minio/pull/20985
|
||||
* fix: SFTP auth bypass with no pub key in LDAP by [@​donatello](https://github.com/donatello) in https://github.com/minio/minio/pull/20986
|
||||
* Fix healing probability for skipped folders by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20988
|
||||
* [@​triplechecker-com](https://github.com/triplechecker-com) made their first contribution in https://github.com/minio/minio/pull/20970
|
||||
|
||||
[4.2.0]
|
||||
* Update minio to RELEASE.2025-03-12T18-04-18Z
|
||||
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-03-12T18-04-18Z)
|
||||
* Enforce a bucket limit of 100 to v2 metrics calls by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20761
|
||||
* Update typos config by [@​donatello](https://github.com/donatello) in https://github.com/minio/minio/pull/21018
|
||||
* Update ssh and jws libs for fixed CVEs by [@​donatello](https://github.com/donatello) in https://github.com/minio/minio/pull/21017
|
||||
* Disable unstable test by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20996
|
||||
* decom: Ignore not found buckets ([#​509](https://github.com/minio/minio/issues/509)) by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/21023
|
||||
|
||||
[4.3.0]
|
||||
* Update base image to 5.0.0
|
||||
|
||||
[4.4.0]
|
||||
* Update minio to RELEASE.2025-04-03T14-56-28Z
|
||||
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-04-03T14-56-28Z)
|
||||
* fix(templates): replace dash with underscore by [@itsJohnySmith](https://github.com/itsJohnySmith) in https://github.com/minio/minio/pull/19566
|
||||
* Updating PromQL queries to include tilde needed to work with 'all' variable by [@excircle](https://github.com/excircle) in https://github.com/minio/minio/pull/21054
|
||||
* Add new API endpoint to revoke STS tokens by [@taran-p](https://github.com/taran-p) in https://github.com/minio/minio/pull/21072
|
||||
* fix call toAPIErrorCode with a nil value error after check another err by [@alingse](https://github.com/alingse) in https://github.com/minio/minio/pull/21083
|
||||
* fix: token is invalid for admin heal when minio is distErasure at windows by [@jiuker](https://github.com/jiuker) in https://github.com/minio/minio/pull/21092
|
||||
* internal: add handling of KVS config parse by [@wooffie](https://github.com/wooffie) in https://github.com/minio/minio/pull/21079
|
||||
* Fix anonymous unsigned trailing headers by [@klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/21095
|
||||
* Fix: Change TTFB metric type to histogram by [@iamsagar99](https://github.com/iamsagar99) in https://github.com/minio/minio/pull/20999
|
||||
* 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
|
||||
|
||||
[5.2.0]
|
||||
* Update minio to RELEASE.2025-09-07T16-13-09Z
|
||||
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-09-07T16-13-09Z)
|
||||
* Update console to v2.0.3 by [@bexsoft](https://github.com/bexsoft) in [#21474](https://github.com/minio/minio/pull/21474)
|
||||
* bring more idempotent behavior to AbortMultipartUpload() by [@jiuker](https://github.com/jiuker) in [#21475](https://github.com/minio/minio/pull/21475)
|
||||
* fix: record extral skippedEntry for listObject by [@jiuker](https://github.com/jiuker) in [#21484](https://github.com/minio/minio/pull/21484)
|
||||
* feat: add variable for datasource in grafana dashboards by [@hornjo](https://github.com/hornjo) in [#21470](https://github.com/minio/minio/pull/21470)
|
||||
* imagePullSecrets consistent types for global , local by [@0xMALVEE](https://github.com/0xMALVEE) in [#21500](https://github.com/minio/minio/pull/21500)
|
||||
* Optimize outdated commands in the log by [@dormanze](https://github.com/dormanze) in [#21498](https://github.com/minio/minio/pull/21498)
|
||||
* fix(helm): do not suspend versioning by default for buckets, only set versioning if specified(21349) by [@LOCODAK](https://github.com/LOCODAK) in [#21494](https://github.com/minio/minio/pull/21494)
|
||||
* Check legalHoldPerm by [@klauspost](https://github.com/klauspost) in [#21508](https://github.com/minio/minio/pull/21508)
|
||||
* fix: errUploadIDNotFound will be ignored when err is from peer client by [@jiuker](https://github.com/jiuker) in [#21504](https://github.com/minio/minio/pull/21504)
|
||||
* fix: claim based oidc for official aws libraries by [@0xMALVEE](https://github.com/0xMALVEE) in [#21468](https://github.com/minio/minio/pull/21468)
|
||||
|
||||
|
@@ -5,8 +5,8 @@
|
||||
"description": "file://DESCRIPTION.md",
|
||||
"changelog": "file://CHANGELOG",
|
||||
"tagline": "Distributed object storage",
|
||||
"version": "4.0.0",
|
||||
"upstreamVersion": "RELEASE.2025-01-18T00-31-37Z",
|
||||
"version": "5.2.0",
|
||||
"upstreamVersion": "RELEASE.2025-09-07T16-13-09Z",
|
||||
"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": [
|
||||
|
@@ -1,10 +1,10 @@
|
||||
FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4
|
||||
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
|
||||
|
||||
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-01-18T00-31-37Z
|
||||
ARG MINIO_VERSION=RELEASE.2025-09-07T16-13-09Z
|
||||
|
||||
RUN wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.${MINIO_VERSION} -O /app/code/minio && chmod +x /app/code/minio
|
||||
|
||||
|
@@ -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>
|
||||
|
BIN
logo.png
BIN
logo.png
Binary file not shown.
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 17 KiB |
10
logo.svg
10
logo.svg
@@ -26,22 +26,16 @@
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:zoom="0.98823083"
|
||||
inkscape:cx="221.10219"
|
||||
inkscape:cy="375.92432"
|
||||
inkscape:cx="222.1141"
|
||||
inkscape:cy="376.93623"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1014"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg3" />
|
||||
<path
|
||||
d="m 28.05,3.51 9.44,15.45 a 0.18,0.18 0 0 1 0,0.21 0.17,0.17 0 0 1 -0.25,0 L 25.01,6.42 Z"
|
||||
id="path1" />
|
||||
<path
|
||||
d="m 156.67193,317.75421 a 286.44793,286.44793 0 0 1 56.74397,-80.47822 290.54005,290.54005 0 0 1 28.37199,-24.89369 v 61.3817 z m -49.10536,56.88038 134.22132,-68.20188 v 156.18233 l 30.21344,39.28427 V 290.47346 l 18.3463,-9.48007 a 91.049521,91.049521 0 0 0 25.0301,-144.04238 L 246.28921,64.725212 a 15.345425,15.345425 0 0 1 0.75022,-21.619998 15.413627,15.413627 0 0 1 21.6882,0.750221 l 9.68467,10.093879 20.46057,-19.914953 C 274.38839,2.2522814 244.31136,6.2761929 227.05628,22.167233 a 44.058422,44.058422 0 0 0 -1.90965,62.200124 l 69.83873,72.771413 a 62.336528,62.336528 0 0 1 -13.64038,96.02826 l -9.48006,4.91053 V 159.38943 A 315.97936,315.97936 0 0 0 107.56657,374.29359 Z"
|
||||
id="path2"
|
||||
style="fill:#cf163e;fill-opacity:1;stroke:none;stroke-width:6.82019" />
|
||||
<path
|
||||
d="m 24.11,41.09 v 4.68 l -4.43,2.25 v -4.65 z"
|
||||
id="path3" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.9 KiB |
19
start.sh
19
start.sh
@@ -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
|
||||
|
428
test/package-lock.json
generated
428
test/package-lock.json
generated
@@ -9,11 +9,12 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chromedriver": "^132.0.0",
|
||||
"@eslint/js": "^9.35.0",
|
||||
"chromedriver": "^140.0.0",
|
||||
"expect.js": "^0.3.1",
|
||||
"mocha": "^11.0.1",
|
||||
"selenium-webdriver": "^4.27.0",
|
||||
"superagent": "^10.1.1"
|
||||
"mocha": "^11.7.2",
|
||||
"selenium-webdriver": "^4.35.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.35.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.35.0.tgz",
|
||||
"integrity": "sha512-30iXE9whjlILfWobBkNerJo+TXYsgVM5ERQwMcMKCHckHflCmf7wXDAHlARoWnh0s1U72WqlbeyE7iAcCzuCPw==",
|
||||
"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": "132.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-132.0.0.tgz",
|
||||
"integrity": "sha512-jECVJjty5ypYKptQ/QCf8Q0Iq0qq2eW5x1WnYwlGCgmBBcwDH+XrdjFKc4mA3lFO1p3dpOUgTbayKCiGpMPBjg==",
|
||||
"version": "140.0.0",
|
||||
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-140.0.0.tgz",
|
||||
"integrity": "sha512-mv41C2fi4YX27muRMWP035HJUnKatu7gMJqBcVD1tSmufWDxDy0m38YaieKG3pa2aAIYNVhlXqiOnHkvnqNMcw==",
|
||||
"hasInstallScript": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
@@ -355,18 +334,21 @@
|
||||
"chromedriver": "bin/chromedriver"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/cliui": {
|
||||
"version": "7.0.4",
|
||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
|
||||
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
|
||||
"version": "8.0.1",
|
||||
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
|
||||
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"string-width": "^4.2.0",
|
||||
"strip-ansi": "^6.0.0",
|
||||
"strip-ansi": "^6.0.1",
|
||||
"wrap-ansi": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/cliui/node_modules/ansi-regex": {
|
||||
@@ -576,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"
|
||||
@@ -649,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",
|
||||
@@ -762,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",
|
||||
@@ -836,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": {
|
||||
@@ -850,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",
|
||||
@@ -968,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",
|
||||
@@ -1028,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",
|
||||
@@ -1049,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",
|
||||
@@ -1118,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",
|
||||
@@ -1148,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",
|
||||
@@ -1365,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": {
|
||||
@@ -1386,30 +1302,30 @@
|
||||
}
|
||||
},
|
||||
"node_modules/mocha": {
|
||||
"version": "11.0.1",
|
||||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-11.0.1.tgz",
|
||||
"integrity": "sha512-+3GkODfsDG71KSCQhc4IekSW+ItCK/kiez1Z28ksWvYhKXV/syxMlerR/sC7whDp7IyreZ4YxceMLdTs5hQE8A==",
|
||||
"version": "11.7.2",
|
||||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.2.tgz",
|
||||
"integrity": "sha512-lkqVJPmqqG/w5jmmFtiRvtA2jkDyNVUcefFJKb2uyX4dekk8Okgqop3cgbFiaIvj8uCRJVTP5x9dfxGyXm2jvQ==",
|
||||
"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",
|
||||
"yargs": "^16.2.0",
|
||||
"yargs-parser": "^20.2.9",
|
||||
"workerpool": "^9.2.0",
|
||||
"yargs": "^17.7.2",
|
||||
"yargs-parser": "^21.1.1",
|
||||
"yargs-unparser": "^2.0.0"
|
||||
},
|
||||
"bin": {
|
||||
@@ -1435,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",
|
||||
@@ -1579,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",
|
||||
@@ -1681,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": {
|
||||
@@ -1708,9 +1610,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/selenium-webdriver": {
|
||||
"version": "4.27.0",
|
||||
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.27.0.tgz",
|
||||
"integrity": "sha512-LkTJrNz5socxpPnWPODQ2bQ65eYx9JK+DQMYNihpTjMCqHwgWGYQnQTCAAche2W3ZP87alA+1zYPvgS8tHNzMQ==",
|
||||
"version": "4.35.0",
|
||||
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.35.0.tgz",
|
||||
"integrity": "sha512-Baaeiuyu7BIIsSYf0SI7Mi55gsNmdI00KM0Hcofw1RnAY+0QEVpdh5yAxueDxgTZS8vcbGZFU0NJ6Qc1riIrLg==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
@@ -1726,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": ">= 14.21.0"
|
||||
"node": ">= 20.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/serialize-javascript": {
|
||||
@@ -2024,20 +1926,20 @@
|
||||
}
|
||||
},
|
||||
"node_modules/superagent": {
|
||||
"version": "10.1.1",
|
||||
"resolved": "https://registry.npmjs.org/superagent/-/superagent-10.1.1.tgz",
|
||||
"integrity": "sha512-9pIwrHrOj3uAnqg9gDlW7EA2xv+N5au/dSM0kM22HTqmUu8jBxNT+8uA7tA3UoCnmiqzpSbu8rasIUZvbyamMQ==",
|
||||
"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"
|
||||
@@ -2100,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",
|
||||
@@ -2147,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": {
|
||||
@@ -2247,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"
|
||||
@@ -2277,30 +2167,30 @@
|
||||
}
|
||||
},
|
||||
"node_modules/yargs": {
|
||||
"version": "16.2.0",
|
||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
|
||||
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
|
||||
"version": "17.7.2",
|
||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
||||
"integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"cliui": "^7.0.2",
|
||||
"cliui": "^8.0.1",
|
||||
"escalade": "^3.1.1",
|
||||
"get-caller-file": "^2.0.5",
|
||||
"require-directory": "^2.1.1",
|
||||
"string-width": "^4.2.0",
|
||||
"string-width": "^4.2.3",
|
||||
"y18n": "^5.0.5",
|
||||
"yargs-parser": "^20.2.2"
|
||||
"yargs-parser": "^21.1.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs-parser": {
|
||||
"version": "20.2.9",
|
||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
|
||||
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
|
||||
"version": "21.1.1",
|
||||
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
|
||||
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
|
||||
"license": "ISC",
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs-unparser": {
|
||||
|
@@ -9,10 +9,11 @@
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"chromedriver": "^132.0.0",
|
||||
"@eslint/js": "^9.35.0",
|
||||
"chromedriver": "^140.0.0",
|
||||
"expect.js": "^0.3.1",
|
||||
"mocha": "^11.0.1",
|
||||
"selenium-webdriver": "^4.27.0",
|
||||
"superagent": "^10.1.1"
|
||||
"mocha": "^11.7.2",
|
||||
"selenium-webdriver": "^4.35.0",
|
||||
"superagent": "^10.2.3"
|
||||
}
|
||||
}
|
||||
|
176
test/test.js
176
test/test.js
@@ -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,21 +158,20 @@ 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);
|
||||
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 admin login', login.bind(null, 'minioadmin', 'minioadmin', false));
|
||||
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 change admin credentials', changeAdminCredentials);
|
||||
|
||||
it('can restart app', async function () {
|
||||
execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
@@ -193,42 +182,6 @@ describe('Application life cycle test', function () {
|
||||
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 () {
|
||||
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 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 () {
|
||||
execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS);
|
||||
await timers.setTimeout(10000);
|
||||
});
|
||||
|
||||
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
|
||||
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 () {
|
||||
@@ -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', false));
|
||||
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); });
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user