-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e674f21
commit de66860
Showing
28 changed files
with
91 additions
and
38 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.../cache/testdata/TestAllGroups/golden/get_groups_rely_on_groupbyid,_grouptousers,_userbyid
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,17 +1,21 @@ | ||
- name: group1 | ||
gid: 11111 | ||
ugid: "" | ||
users: | ||
- user1 | ||
- name: group2 | ||
gid: 22222 | ||
ugid: "" | ||
users: | ||
- user2 | ||
- name: group3 | ||
gid: 33333 | ||
ugid: "" | ||
users: | ||
- user3 | ||
- name: commongroup | ||
gid: 99999 | ||
ugid: "" | ||
users: | ||
- user2 | ||
- user3 |
5 changes: 5 additions & 0 deletions
5
internal/users/cache/testdata/TestAllGroups/golden/get_multiple_groups
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,21 +1,26 @@ | ||
- name: group1 | ||
gid: 11111 | ||
ugid: "" | ||
users: | ||
- user1 | ||
- name: group2 | ||
gid: 22222 | ||
ugid: "" | ||
users: | ||
- user2 | ||
- name: group3 | ||
gid: 33333 | ||
ugid: "" | ||
users: | ||
- user3 | ||
- name: group4 | ||
gid: 44444 | ||
ugid: "" | ||
users: | ||
- userwithoutbroker | ||
- name: commongroup | ||
gid: 99999 | ||
ugid: "" | ||
users: | ||
- user2 | ||
- user3 |
1 change: 1 addition & 0 deletions
1
internal/users/cache/testdata/TestAllGroups/golden/get_one_group
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,4 +1,5 @@ | ||
- name: group1 | ||
gid: 11111 | ||
ugid: "" | ||
users: | ||
- user1 |
1 change: 1 addition & 0 deletions
1
internal/users/cache/testdata/TestDeleteUser/golden/delete_existing_user
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,5 +1,6 @@ | ||
GroupByID: {} | ||
GroupByName: {} | ||
GroupByUGID: {} | ||
GroupToUsers: {} | ||
UserByID: {} | ||
UserByName: {} | ||
|
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
1 change: 1 addition & 0 deletions
1
internal/users/cache/testdata/TestGroupByID/golden/get_existing_group
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,4 +1,5 @@ | ||
name: group1 | ||
gid: 11111 | ||
ugid: "" | ||
users: | ||
- user1 |
1 change: 1 addition & 0 deletions
1
internal/users/cache/testdata/TestGroupByName/golden/get_existing_group
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,4 +1,5 @@ | ||
name: group1 | ||
gid: 11111 | ||
ugid: "" | ||
users: | ||
- user1 |
1 change: 1 addition & 0 deletions
1
...users/cache/testdata/TestNew/golden/new_recreates_any_missing_buckets_and_delete_unknowns
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
1 change: 1 addition & 0 deletions
1
...sers/cache/testdata/TestNew/golden/new_removes_orphaned_user_records_from_userbyid_bucket
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,5 +1,6 @@ | ||
GroupByID: {} | ||
GroupByName: {} | ||
GroupByUGID: {} | ||
GroupToUsers: {} | ||
UserByID: {} | ||
UserByName: {} | ||
|
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
1 change: 1 addition & 0 deletions
1
internal/users/cache/testdata/TestNew/golden/new_without_any_initialized_database
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,5 +1,6 @@ | ||
GroupByID: {} | ||
GroupByName: {} | ||
GroupByUGID: {} | ||
GroupToUsers: {} | ||
UserByID: {} | ||
UserByName: {} | ||
|
11 changes: 7 additions & 4 deletions
11
internal/users/cache/testdata/TestUpdateUserEntry/golden/add_user_to_group_from_another_user
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
6 changes: 4 additions & 2 deletions
6
internal/users/cache/testdata/TestUpdateUserEntry/golden/insert_new_user
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
6 changes: 4 additions & 2 deletions
6
...rs/cache/testdata/TestUpdateUserEntry/golden/insert_new_user_without_optional_gecos_field
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
10 changes: 6 additions & 4 deletions
10
...rEntry/golden/invalid_value_entries_in_other_user_and_groups_don't_impact_current_request
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
6 changes: 4 additions & 2 deletions
6
.../testdata/TestUpdateUserEntry/golden/invalid_value_entry_in_groupbyname_recreates_entries
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
6 changes: 4 additions & 2 deletions
6
...e/testdata/TestUpdateUserEntry/golden/invalid_value_entry_in_userbyname_recreates_entries
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
6 changes: 4 additions & 2 deletions
6
internal/users/cache/testdata/TestUpdateUserEntry/golden/remove_group_from_user
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
6 changes: 4 additions & 2 deletions
6
...testdata/TestUpdateUserEntry/golden/remove_user_from_a_group_still_part_from_another_user
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
6 changes: 4 additions & 2 deletions
6
internal/users/cache/testdata/TestUpdateUserEntry/golden/update_last_login_time_for_user
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
6 changes: 4 additions & 2 deletions
6
...che/testdata/TestUpdateUserEntry/golden/update_only_user_even_if_we_have_multiple_of_them
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
11 changes: 7 additions & 4 deletions
11
...users/cache/testdata/TestUpdateUserEntry/golden/update_user_by_adding_a_new_default_group
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
11 changes: 7 additions & 4 deletions
11
internal/users/cache/testdata/TestUpdateUserEntry/golden/update_user_by_adding_a_new_group
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
6 changes: 4 additions & 2 deletions
6
internal/users/cache/testdata/TestUpdateUserEntry/golden/update_user_by_changing_attributes
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
6 changes: 4 additions & 2 deletions
6
...stdata/TestUpdateUserEntry/golden/update_user_by_removing_optional_gecos_field_if_not_set
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
6 changes: 4 additions & 2 deletions
6
...ache/testdata/TestUpdateUserEntry/golden/update_user_does_not_change_homedir_if_it_exists
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
1 change: 1 addition & 0 deletions
1
...sers/testdata/TestNewManager/golden/new_recreates_any_missing_buckets_and_delete_unknowns
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