mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 02:08:10 +03:00
Compare commits
3
Commits
415df400f4
...
c687cacb6b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c687cacb6b | ||
|
|
8b56926077 | ||
|
|
de6d2066b3 |
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
This allows running integration tests using [Playwright](https://playwright.dev/).
|
This allows running integration tests using [Playwright](https://playwright.dev/).
|
||||||
\
|
\
|
||||||
It usse its own [test.env](/test/scenarios/test.env) with different ports to not collide with a running dev instance.
|
It uses its own [test.env](./test.env) with different ports to not collide with a running dev instance.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ DOCKER_BUILDKIT=1 docker compose --profile playwright --env-file test.env run Pl
|
|||||||
|
|
||||||
### Keep services running
|
### Keep services running
|
||||||
|
|
||||||
If you want you can keep the DB and Keycloak runnning (states are not impacted by the tests):
|
If you want you can keep the DB and Keycloak running (states are not impacted by the tests):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
PW_KEEP_SERVICE_RUNNING=true npx playwright test
|
PW_KEEP_SERVICE_RUNNING=true npx playwright test
|
||||||
|
|||||||
@@ -137,9 +137,13 @@ async fn ldap_import(data: Json<OrgImportData>, token: PublicToken, conn: DbConn
|
|||||||
|
|
||||||
if CONFIG.org_groups_enabled() {
|
if CONFIG.org_groups_enabled() {
|
||||||
for group_data in &data.groups {
|
for group_data in &data.groups {
|
||||||
let group_uuid = if let Some(group) =
|
let group_uuid = if let Some(mut group) =
|
||||||
Group::find_by_external_id_and_org(&group_data.external_id, &org_id, &conn).await
|
Group::find_by_external_id_and_org(&group_data.external_id, &org_id, &conn).await
|
||||||
{
|
{
|
||||||
|
if group.name != group_data.name {
|
||||||
|
group.name = group_data.name.clone();
|
||||||
|
group.save(&conn).await?;
|
||||||
|
}
|
||||||
group.uuid
|
group.uuid
|
||||||
} else {
|
} else {
|
||||||
let mut group =
|
let mut group =
|
||||||
|
|||||||
Reference in new issue
Block a user