Skip to content

Commit

Permalink
Update golden files and fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
denisonbarbosa committed Aug 11, 2023
1 parent dc31cde commit af29675
Show file tree
Hide file tree
Showing 24 changed files with 45 additions and 9 deletions.
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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FIRST CALL:
access: allowed
data: {}
err: <nil>
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"
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>
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>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
- local
- Broker
- Broker2
- Broker3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- local
- Broker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- local
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
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 internal/brokers/testdata/fixtures/etc/authd/broker.d/valid_3

This file was deleted.

1 change: 1 addition & 0 deletions internal/brokers/testdata/fixtures/file_config_dir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This should not be a file.
1 change: 1 addition & 0 deletions internal/brokers/testdata/fixtures/mixed_brokers/invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
badly configured broker
Empty file.
7 changes: 7 additions & 0 deletions internal/brokers/testdata/fixtures/valid_brokers/valid
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

0 comments on commit af29675

Please sign in to comment.