-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feature/use-only-us…
…er.name#2336
- Loading branch information
Showing
13 changed files
with
83 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
id;name;password;role;source;avatar;email;company;location;linkedin;git_hub;twitter;is_active;rating | ||
1;"admin";"{bcrypt}$2a$12$7jB6.fJ/uHZiti94w0.QOu0M/lPzKU1lvX9TLL3uZHFjLGIfz1gHq";"ROLE_SUPER_ADMIN";"basic";;;;;;;;true;999 | ||
2;"JohnDoe";"{bcrypt}$2a$12$zjCjULtsSvapH5kt6KUq4eyTx3WluDwB3GepcbLA.mf/NcGZCLuvi";"ROLE_VIEWER";"basic";;;;;;;;false;-37 | ||
3;"user";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;0 | ||
4;"user1";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;-3 | ||
5;"user2";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;0 | ||
6;"user3";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;15 | ||
7;"user4";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;34 | ||
8;"user5";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;0 | ||
9;"user6";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;54 | ||
10;"user7";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;86 | ||
11;"user8";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;0 | ||
12;"user9";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;12 | ||
13;"user10";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;false;24 | ||
id;name;password;role;source;avatar;email;company;location;linkedin;git_hub;twitter;rating;status | ||
1;"admin";"{bcrypt}$2a$12$7jB6.fJ/uHZiti94w0.QOu0M/lPzKU1lvX9TLL3uZHFjLGIfz1gHq";"ROLE_SUPER_ADMIN";"basic";;;;;;;;999;"ACTIVE" | ||
2;"JohnDoe";"{bcrypt}$2a$12$zjCjULtsSvapH5kt6KUq4eyTx3WluDwB3GepcbLA.mf/NcGZCLuvi";"ROLE_VIEWER";"basic";;;;;;;;-37;"CREATED" | ||
3;"user";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;0;"CREATED" | ||
4;"user1";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;-3;"CREATED" | ||
5;"user2";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;0;"CREATED" | ||
6;"user3";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;15;"CREATED" | ||
7;"user4";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;34;"CREATED" | ||
8;"user5";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;0;"CREATED" | ||
9;"user6";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;54;"CREATED" | ||
10;"user7";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;86;"CREATED" | ||
11;"user8";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;0;"CREATED" | ||
12;"user9";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;12;"CREATED" | ||
13;"user10";"noop{123}";"ROLE_VIEWER";"basic";;;;;;;;24;"CREATED" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ import com.saveourtool.save.backend.SaveApplication | |
import com.saveourtool.save.backend.utils.InfraExtension | ||
import com.saveourtool.save.backend.utils.mutateMockedUser | ||
import com.saveourtool.save.info.UserInfo | ||
import com.saveourtool.save.info.UserStatus | ||
import com.saveourtool.save.v1 | ||
import org.junit.jupiter.api.Test | ||
import org.junit.jupiter.api.extension.ExtendWith | ||
|
@@ -34,7 +35,7 @@ class UsersDetailsControllerTest { | |
source = "basic", | ||
email = "[email protected]", | ||
company = "Example", | ||
isActive = true, | ||
status = UserStatus.ACTIVE, | ||
) | ||
|
||
webClient.post() | ||
|
@@ -58,7 +59,7 @@ class UsersDetailsControllerTest { | |
oldName = "admin", | ||
email = "[email protected]", | ||
company = "Example", | ||
isActive = true, | ||
status = UserStatus.ACTIVE, | ||
) | ||
|
||
webClient.post() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
save-cloud-common/src/commonMain/kotlin/com/saveourtool/save/info/UserStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.saveourtool.save.info | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* Enum of user status | ||
* | ||
* The order of the elements is used for sorting | ||
*/ | ||
@Serializable | ||
@Suppress("WRONG_DECLARATIONS_ORDER") | ||
enum class UserStatus { | ||
/** | ||
* User created | ||
*/ | ||
CREATED, | ||
|
||
/** | ||
* User active | ||
*/ | ||
ACTIVE, | ||
|
||
/** | ||
* User deleted | ||
*/ | ||
DELETED, | ||
; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters