Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lines starting with ? being incorrectly interpreted #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 101 additions & 0 deletions testdata/issue-61.parser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[
{
"action": "run",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "pause",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "run",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "pause",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "cont",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "cont",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "pass",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root",
"elapsed": "15.99s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "stdout",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "0s",
"output": "PyAgPz8gICAgICAgID8/Pz8gICAgPz8gID8/Pz8/PyAgICAgICAgICAgICAgICA/Pz8/Pz8/Pz8/Pz9cbj8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/PyAgICA/Pz8/Pz8gICAgICA/PyAgICAgICAgPz8/Pz8/ICAgICAgICAgID8/Pz8/Pz8/XG4/Pz8/Pz8/PyAgICAgICAgICAgICAgPz8gID8/Pz8/PyAgICA/Pz8/ICA/PyAgICAgID8/ICA/PyAgICA/PyAgPz8/Pz8/Pz8/P1xuPz8/Pz8/Pz8gID8/Pz8/Pz8/Pz8gID8/ICA/Pz8/ICAgID8/Pz8/PyAgICA/Pz8/ICA/Pz8/Pz8gICAgPz8gID8/Pz8/Pz8/Pz9cbj8/Pz8/Pz8/ICA/PyAgICAgID8/ICA/Pz8/Pz8gICAgICA/PyAgICA/Pz8/Pz8/PyAgICAgICAgICA/PyAgICAgID8/Pz8/Pz8/XG4/Pz8/Pz8/PyAgPz8gICAgICA/PyAgPz8gICAgPz8/Pz8/Pz8gID8/ICAgID8/Pz8/PyAgPz8gICAgICA/PyAgPz8/Pz8/Pz8/P1xuPz8/Pz8/Pz8gID8/ICAgICAgPz8gID8/ICAgID8/ICA/Pz8/ICAgICAgPz8/PyAgPz8/Pz8/ICA/Pz8/ICA/PyAgPz8/Pz8/Pz9cbj8/Pz8/Pz8/ICA/Pz8/Pz8/Pz8/ICA/Pz8/ICAgID8/Pz8/PyAgPz8gID8/Pz8gICAgPz8gICAgICAgID8/ICA/Pz8/Pz8/Pz8/XG4/Pz8/Pz8/PyAgICAgICAgICAgICAgPz8gICAgPz8gICAgPz8gICAgICAgID8/ICAgICAgICA/Pz8/ICA/PyAgPz8/Pz8/Pz8/P1xuPz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz9cbj8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/XG4/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/P1xuPz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz9cbiAgICAgICAgICAgICAgICAgICAgICAgaHR0cHM6Ly91YnVudHVmb3J1bS1ici5vcmcvIA==",
"cached": false,
"coverage": null,
"json": true
},
{
"action": "pass",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "51.42s",
"output": null,
"cached": false,
"coverage": null,
"json": true
}
]
101 changes: 101 additions & 0 deletions testdata/issue-61.tokenizer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[
{
"action": "run",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "pause",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "run",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "pause",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "cont",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "cont",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "0s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "pass",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root",
"elapsed": "15.99s",
"output": null,
"cached": false,
"coverage": null,
"json": true
},
{
"action": "stdout",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "0s",
"output": "PyAgPz8gICAgICAgID8/Pz8gICAgPz8gID8/Pz8/PyAgICAgICAgICAgICAgICA/Pz8/Pz8/Pz8/Pz9cbj8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/PyAgICA/Pz8/Pz8gICAgICA/PyAgICAgICAgPz8/Pz8/ICAgICAgICAgID8/Pz8/Pz8/XG4/Pz8/Pz8/PyAgICA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z8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/P1xuPz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz8/Pz9cbiAgICAgICAgICAgICAgICAgICAgICAgaHR0cHM6Ly91YnVudHVmb3J1bS1ici5vcmcvIA==",
"cached": false,
"coverage": null,
"json": true
},
{
"action": "pass",
"package": "github.com/ubuntu/authd/pam/integration-tests",
"version": "",
"test": "TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen",
"elapsed": "51.42s",
"output": null,
"cached": false,
"coverage": null,
"json": true
}
]
16 changes: 16 additions & 0 deletions testdata/issue-61.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{"Time":"2024-11-27T11:45:46.804362634Z","Action":"run","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_switching_auth_mode"}
{"Time":"2024-11-27T11:45:46.80435001Z","Action":"output","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen","Output":"=== RUN TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen\n"}
{"Time":"2024-11-27T11:45:46.804354558Z","Action":"output","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen","Output":"=== PAUSE TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen\n"}
{"Time":"2024-11-27T11:45:46.804358115Z","Action":"pause","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen"}
{"Time":"2024-11-27T11:45:46.804378243Z","Action":"run","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root"}
{"Time":"2024-11-27T11:45:46.80438219Z","Action":"output","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root","Output":"=== RUN TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root\n"}
{"Time":"2024-11-27T11:45:46.804386949Z","Action":"output","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root","Output":"=== PAUSE TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root\n"}
{"Time":"2024-11-27T11:45:46.804373875Z","Action":"pause","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_switching_auth_mode"}
{"Time":"2024-11-27T12:03:23.32968147Z","Action":"cont","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root"}
{"Time":"2024-11-27T12:03:23.329687401Z","Action":"output","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root","Output":"=== CONT TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root\n"}
{"Time":"2024-11-27T12:03:39.189892471Z","Action":"cont","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen"}
{"Time":"2024-11-27T12:03:39.189896689Z","Action":"output","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen","Output":"=== CONT TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen\n"}
{"Time":"2024-11-27T12:03:39.319245395Z","Action":"output","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root","Output":"--- PASS: TestNativeAuthenticate/Deny_authentication_if_current_user_is_not_considered_as_root (15.99s)\n"}
{"Time":"2024-11-27T12:04:30.610470288Z","Action":"output","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen","Output":"? ?? ???? ?? ?????? ????????????\\n???????????????????????? ?????? ?? ?????? ????????\\n???????? ?? ?????? ???? ?? ?? ?? ?? ??????????\\n???????? ?????????? ?? ???? ?????? ???? ?????? ?? ??????????\\n???????? ?? ?? ?????? ?? ???????? ?? ????????\\n???????? ?? ?? ?? ???????? ?? ?????? ?? ?? ??????????\\n???????? ?? ?? ?? ?? ???? ???? ?????? ???? ?? ????????\\n???????? ?????????? ???? ?????? ?? ???? ?? ?? ??????????\\n???????? ?? ?? ?? ?? ???? ?? ??????????\\n??????????????????????????????????????????????????????????????????????????\\n??????????????????????????????????????????????????????????????????????????\\n??????????????????????????????????????????????????????????????????????????\\n??????????????????????????????????????????????????????????????????????????\\n https://ubuntuforum-br.org/ "}
{"Time":"2024-11-27T12:04:30.611060693Z","Action":"output","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen","Output":"--- PASS: TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen (51.42s)\n"}
{"Time":"2024-11-27T12:04:31.618971235Z","Action":"pass","Package":"github.com/ubuntu/authd/pam/integration-tests","Test":"TestNativeAuthenticate/Authenticate_user_with_qr_code_in_screen","Elapsed":51.42}
Loading