Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slack-bot: change tests over to use minimal fixtures
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
- Loading branch information
1 parent
0b784b9
commit 7440799
Showing
29 changed files
with
694 additions
and
53 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
pkg/slack/modals/bug/testdata/zz_fixture_TestIssueParameters_custom_component_callback.yaml
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,43 @@ | ||
trigger_id: 1445212076624.1377252349923.6db817174c902b85a7eac0d8f5613d3e | ||
type: view_submission | ||
view: | ||
app_id: A01BJF00CAD | ||
hash: 1602467948.iWjOP1Z9 | ||
id: V01BYJ3JXN3 | ||
private_metadata: bug | ||
root_view_id: V01BYJ3JXN3 | ||
state: | ||
values: | ||
category: | ||
Ceww: | ||
selected_option: | ||
text: | ||
emoji: true | ||
text: Other | ||
type: plain_text | ||
value: Other | ||
type: static_select | ||
expected: | ||
BFSg5: | ||
type: plain_text_input | ||
value: Something right! | ||
impact: | ||
+2dWl: | ||
type: plain_text_input | ||
value: I'm on fire. | ||
optional: | ||
DCgA: | ||
type: plain_text_input | ||
value: My Component | ||
reproduction: | ||
Cv9: | ||
type: plain_text_input | ||
value: Every time, just push the button. | ||
symptom: | ||
G=Vl: | ||
type: plain_text_input | ||
value: Something wrong! | ||
title: | ||
EU7e8: | ||
type: plain_text_input | ||
value: My Title |
43 changes: 43 additions & 0 deletions
43
pkg/slack/modals/bug/testdata/zz_fixture_TestIssueParameters_extant_component_callback.yaml
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,43 @@ | ||
trigger_id: 1445212076624.1377252349923.6db817174c902b85a7eac0d8f5613d3e | ||
type: view_submission | ||
view: | ||
app_id: A01BJF00CAD | ||
hash: 1602467948.iWjOP1Z9 | ||
id: V01BYJ3JXN3 | ||
private_metadata: bug | ||
root_view_id: V01BYJ3JXN3 | ||
state: | ||
values: | ||
category: | ||
Ceww: | ||
selected_option: | ||
text: | ||
emoji: true | ||
text: Release Controller | ||
type: plain_text | ||
value: Release Controller | ||
type: static_select | ||
expected: | ||
BFSg5: | ||
type: plain_text_input | ||
value: Something right! | ||
impact: | ||
+2dWl: | ||
type: plain_text_input | ||
value: I'm on fire. | ||
optional: | ||
DCgA: | ||
type: plain_text_input | ||
value: My Component | ||
reproduction: | ||
Cv9: | ||
type: plain_text_input | ||
value: Every time, just push the button. | ||
symptom: | ||
G=Vl: | ||
type: plain_text_input | ||
value: Something wrong! | ||
title: | ||
EU7e8: | ||
type: plain_text_input | ||
value: My Title |
1 change: 1 addition & 0 deletions
1
...ug/testdata/zz_fixture_TestProcessSubmissionHandler_happy_path_with_custom_component.yaml
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 @@ | ||
{"response_action":"update","view":{"type":"modal","title":{"type":"plain_text","text":"Creating Jira Issue..."},"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"A Jira issue is being filed, please do not close this window..."}}],"private_metadata":"jira_pending"}} |
47 changes: 47 additions & 0 deletions
47
...ta/zz_fixture_TestProcessSubmissionHandler_happy_path_with_custom_component_callback.yaml
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,47 @@ | ||
token: Rn1sVT099UjUeKclB3PkLT8t | ||
trigger_id: 1445212076624.1377252349923.6db817174c902b85a7eac0d8f5613d3e | ||
type: view_submission | ||
user: | ||
id: U01B31ARZDG | ||
view: | ||
app_id: A01BJF00CAD | ||
hash: 1602467948.iWjOP1Z9 | ||
id: V01BYJ3JXN3 | ||
private_metadata: bug | ||
root_view_id: V01BYJ3JXN3 | ||
state: | ||
values: | ||
category: | ||
Ceww: | ||
selected_option: | ||
text: | ||
emoji: true | ||
text: Other | ||
type: plain_text | ||
value: Other | ||
type: static_select | ||
value: Other | ||
expected: | ||
BFSg5: | ||
type: plain_text_input | ||
value: Something right! | ||
impact: | ||
+2dWl: | ||
type: plain_text_input | ||
value: I'm on fire. | ||
optional: | ||
DCgA: | ||
type: plain_text_input | ||
value: My Component | ||
reproduction: | ||
Cv9: | ||
type: plain_text_input | ||
value: Every time, just push the button. | ||
symptom: | ||
G=Vl: | ||
type: plain_text_input | ||
value: Something wrong! | ||
title: | ||
EU7e8: | ||
type: plain_text_input | ||
value: My Title |
1 change: 1 addition & 0 deletions
1
...tValidateSubmissionHandler_invalid_because_other_component_chosen_and_not_written_in.yaml
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 @@ | ||
{"response_action":"errors","errors":{"optional":"Provide a description of the other component."}} |
43 changes: 43 additions & 0 deletions
43
...SubmissionHandler_invalid_because_other_component_chosen_and_not_written_in_callback.yaml
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,43 @@ | ||
trigger_id: 1414625255638.1377252349923.b936c322ff12440681d95c4d9d202a60 | ||
type: view_submission | ||
view: | ||
app_id: A01BJF00CAD | ||
hash: 1602467948.iWjOP1Z9 | ||
id: V01BYJ3JXN3 | ||
private_metadata: bug | ||
root_view_id: V01BYJ3JXN3 | ||
state: | ||
values: | ||
category: | ||
Ceww: | ||
selected_option: | ||
text: | ||
emoji: true | ||
text: Other | ||
type: plain_text | ||
value: Other | ||
type: static_select | ||
expected: | ||
BFSg5: | ||
type: plain_text_input | ||
value: input | ||
impact: | ||
+2dWl: | ||
type: plain_text_input | ||
value: input | ||
optional: | ||
DCgA: | ||
type: plain_text_input | ||
value: "" | ||
reproduction: | ||
Cv9: | ||
type: plain_text_input | ||
value: input | ||
symptom: | ||
G=Vl: | ||
type: plain_text_input | ||
value: input | ||
title: | ||
EU7e8: | ||
type: plain_text_input | ||
value: input |
Empty file.
43 changes: 43 additions & 0 deletions
43
...lidateSubmissionHandler_valid_because_other_component_chosen_and_written_in_callback.yaml
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,43 @@ | ||
trigger_id: 1414625255638.1377252349923.b936c322ff12440681d95c4d9d202a60 | ||
type: view_submission | ||
view: | ||
app_id: A01BJF00CAD | ||
hash: 1602467948.iWjOP1Z9 | ||
id: V01BYJ3JXN3 | ||
private_metadata: bug | ||
root_view_id: V01BYJ3JXN3 | ||
state: | ||
values: | ||
category: | ||
Ceww: | ||
selected_option: | ||
text: | ||
emoji: true | ||
text: Other | ||
type: plain_text | ||
value: Other | ||
type: static_select | ||
expected: | ||
BFSg5: | ||
type: plain_text_input | ||
value: input | ||
impact: | ||
+2dWl: | ||
type: plain_text_input | ||
value: input | ||
optional: | ||
DCgA: | ||
type: plain_text_input | ||
value: component | ||
reproduction: | ||
Cv9: | ||
type: plain_text_input | ||
value: input | ||
symptom: | ||
G=Vl: | ||
type: plain_text_input | ||
value: input | ||
title: | ||
EU7e8: | ||
type: plain_text_input | ||
value: input |
Empty file.
43 changes: 43 additions & 0 deletions
43
...xture_TestValidateSubmissionHandler_valid_because_specific_component_chosen_callback.yaml
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,43 @@ | ||
trigger_id: 1414625255638.1377252349923.b936c322ff12440681d95c4d9d202a60 | ||
type: view_submission | ||
view: | ||
app_id: A01BJF00CAD | ||
hash: 1602467948.iWjOP1Z9 | ||
id: V01BYJ3JXN3 | ||
private_metadata: bug | ||
root_view_id: V01BYJ3JXN3 | ||
state: | ||
values: | ||
category: | ||
Ceww: | ||
selected_option: | ||
text: | ||
emoji: true | ||
text: Release Controller | ||
type: plain_text | ||
value: Release Controller | ||
type: static_select | ||
expected: | ||
BFSg5: | ||
type: plain_text_input | ||
value: input | ||
impact: | ||
+2dWl: | ||
type: plain_text_input | ||
value: input | ||
optional: | ||
DCgA: | ||
type: plain_text_input | ||
value: "" | ||
reproduction: | ||
Cv9: | ||
type: plain_text_input | ||
value: input | ||
symptom: | ||
G=Vl: | ||
type: plain_text_input | ||
value: input | ||
title: | ||
EU7e8: | ||
type: plain_text_input | ||
value: input |
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
...zz_fixture_TestIssueParameters_many_acceptance_criteria__additional_details_callback.yaml
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,32 @@ | ||
trigger_id: 1416756610774.1377252349923.ff1a76bce3db8f1d6f892f75bcb25f58 | ||
type: view_submission | ||
view: | ||
app_id: A01BJF00CAD | ||
hash: 1602538261.7V8X4IBr | ||
id: V01CU3D2A73 | ||
private_metadata: consultation | ||
root_view_id: V01CU3D2A73 | ||
state: | ||
values: | ||
acceptance_criteria: | ||
ec8: | ||
type: plain_text_input | ||
value: |- | ||
something simple is done | ||
I didn't have to do anything to achieve it | ||
additional: | ||
aPFdZ: | ||
type: plain_text_input | ||
value: I'll bug you forever while we work on this. | ||
previous: | ||
XwW0: | ||
type: plain_text_input | ||
value: I have tried nothing and looked at no docs. | ||
requirement: | ||
6v7u: | ||
type: plain_text_input | ||
value: I would like to do something really simple. | ||
title: | ||
xFGTt: | ||
type: plain_text_input | ||
value: Please Help Me |
30 changes: 30 additions & 0 deletions
30
..._fixture_TestIssueParameters_one_acceptance_criteria__no_additional_details_callback.yaml
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,30 @@ | ||
trigger_id: 1429676731732.1377252349923.55259e6c220e0f2b07ab17ced3a30ea7 | ||
type: view_submission | ||
view: | ||
app_id: A01BJF00CAD | ||
hash: 1602539357.f6DHe3XD | ||
id: V01CCCHC7U5 | ||
private_metadata: consultation | ||
root_view_id: V01CCCHC7U5 | ||
state: | ||
values: | ||
acceptance_criteria: | ||
BCC: | ||
type: plain_text_input | ||
value: Dinner is ordered and tasty | ||
additional: | ||
S47AD: | ||
type: plain_text_input | ||
value: "" | ||
previous: | ||
Y4r7m: | ||
type: plain_text_input | ||
value: Dinner has to be tasty and I can't make up my mind. Help? | ||
requirement: | ||
y1+: | ||
type: plain_text_input | ||
value: I need to order dinner. | ||
title: | ||
8YZh: | ||
type: plain_text_input | ||
value: Give Me a Consult |
1 change: 1 addition & 0 deletions
1
.../testdata/zz_fixture_TestProcessSubmissionHandler_happy_path_with_additional_details.yaml
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 @@ | ||
{"response_action":"update","view":{"type":"modal","title":{"type":"plain_text","text":"Creating Jira Issue..."},"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"A Jira issue is being filed, please do not close this window..."}}],"private_metadata":"jira_pending"}} |
34 changes: 34 additions & 0 deletions
34
.../zz_fixture_TestProcessSubmissionHandler_happy_path_with_additional_details_callback.yaml
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,34 @@ | ||
trigger_id: 1416756610774.1377252349923.ff1a76bce3db8f1d6f892f75bcb25f58 | ||
type: view_submission | ||
user: | ||
id: U01B31ARZDG | ||
view: | ||
app_id: A01BJF00CAD | ||
hash: 1602538261.7V8X4IBr | ||
id: V01CU3D2A73 | ||
private_metadata: consultation | ||
root_view_id: V01CU3D2A73 | ||
state: | ||
values: | ||
acceptance_criteria: | ||
ec8: | ||
type: plain_text_input | ||
value: |- | ||
something simple is done | ||
I didn't have to do anything to achieve it | ||
additional: | ||
aPFdZ: | ||
type: plain_text_input | ||
value: I'll bug you forever while we work on this. | ||
previous: | ||
XwW0: | ||
type: plain_text_input | ||
value: I have tried nothing and looked at no docs. | ||
requirement: | ||
6v7u: | ||
type: plain_text_input | ||
value: I would like to do something really simple. | ||
title: | ||
xFGTt: | ||
type: plain_text_input | ||
value: Please Help Me |
Oops, something went wrong.