-
Notifications
You must be signed in to change notification settings - Fork 9
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
dc31cde
commit af29675
Showing
24 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...rnal/brokers/testdata/TestIsAuthorized/golden/denies_authentication_when_broker_times_out
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,4 @@ | ||
FIRST CALL: | ||
access: denied | ||
data: {"mock_answer": "denied by time out"} | ||
err: <nil> |
4 changes: 4 additions & 0 deletions
4
internal/brokers/testdata/TestIsAuthorized/golden/empty_data_gets_json_formatted
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,4 @@ | ||
FIRST CALL: | ||
access: allowed | ||
data: {} | ||
err: <nil> |
8 changes: 8 additions & 0 deletions
8
.../TestIsAuthorized/golden/error_when_calling_isauthorized_a_second_time_without_cancelling
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,8 @@ | ||
FIRST CALL: | ||
access: allowed | ||
data: {"mock_answer": "authentication allowed by timeout"} | ||
err: <nil> | ||
SECOND CALL: | ||
access: | ||
data: | ||
err: Broker "TestIsAuthorized_Error_when_calling_IsAuthorized_a_second_time_without_cancelling": IsAuthorized already running for session "IA_second_call" |
4 changes: 4 additions & 0 deletions
4
internal/brokers/testdata/TestIsAuthorized/golden/successfully_authorize
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,4 @@ | ||
FIRST CALL: | ||
access: allowed | ||
data: {"mock_answer": "authentication allowed by default"} | ||
err: <nil> |
8 changes: 8 additions & 0 deletions
8
...okers/testdata/TestIsAuthorized/golden/successfully_authorize_after_cancelling_first_call
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,8 @@ | ||
FIRST CALL: | ||
access: cancelled | ||
data: {"mock_answer": "cancelled by user"} | ||
err: <nil> | ||
SECOND CALL: | ||
access: allowed | ||
data: {"mock_answer": "authentication allowed by timeout"} | ||
err: <nil> |
1 change: 0 additions & 1 deletion
1
...sfully_create_manager_identifying_brokers → ...rs_when_config_dir_only_has_valid_brokers
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,3 @@ | ||
- local | ||
- Broker | ||
- Broker2 | ||
- Broker3 |
2 changes: 2 additions & 0 deletions
2
...data/TestNewManager/golden/creates_only_correct_brokers_when_config_dir_has_mixed_brokers
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,2 @@ | ||
- local | ||
- Broker |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
...ata/TestNewManager/golden/creates_only_local_broker_when_config_dir_only_has_invalid_ones
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 @@ | ||
- local |
2 changes: 1 addition & 1 deletion
2
internal/brokers/testdata/TestNewSession/golden/successfully_start_a_new_session
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,2 +1,2 @@ | ||
ID: BROKER_ID-TestNewSession_Successfully_start_a_new_session-success_session_id | ||
Encryption Key: success_key | ||
Encryption Key: TestNewSession_Successfully_start_a_new_session_key |
4 changes: 4 additions & 0 deletions
4
...a/TestSelectAuthenticationMode/golden/successfully_select_newpassword_authentication_mode
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,4 @@ | ||
button: "" | ||
entry: chars_password | ||
label: Success newpassword | ||
type: newpassword |
7 changes: 0 additions & 7 deletions
7
internal/brokers/testdata/fixtures/etc/authd/broker.d/valid_3
This file was deleted.
Oops, something went wrong.
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 @@ | ||
This should not be a file. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
badly configured broker |
File renamed without changes.
Empty file.
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,7 @@ | ||
name = Broker | ||
brand_icon = some_icon.png | ||
|
||
[dbus] | ||
name = com.ubuntu.authd.Broker | ||
object = /com/ubuntu/authd/Broker | ||
interface = com.ubuntu.authd.Broker |
File renamed without changes.