File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
responses/jira/rest/api/2/issue/FOO-123/remotelink Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ responses[
2
+ '{"object": {"url": "https://confluence.atlassian-python.atlassian.net/display/Test", "title": "Unused link text", "status": {"resolved": false}}}'
3
+ ] = {
4
+ "id": 10000,
5
+ "self": "https://atlassian-python.atlassian.net/rest/api/2/issue/FOO-123/remotelink/10000",
6
+ "application": {},
7
+ }
Original file line number Diff line number Diff line change @@ -92,3 +92,16 @@ def test_delete_issue_property_not_found(self):
92
92
self .jira .get_issue_property ("FOO-123" , "NotFoundBar1" )
93
93
with self .assertRaises (HTTPError ):
94
94
self .jira .get_issue_property ("FOONotFound-123" , "NotFoundBar1" )
95
+
96
+ def test_post_issue_remotelink (self ):
97
+ """Create a new remote link"""
98
+ resp = self .jira .create_or_update_issue_remote_links (
99
+ "FOO-123" ,
100
+ "https://confluence.atlassian-python.atlassian.net/display/Test" ,
101
+ "Unused link text" ,
102
+ )
103
+ self .assertEqual (resp ["id" ], 10000 )
104
+ self .assertEqual (
105
+ resp ["self" ], "https://atlassian-python.atlassian.net/rest/api/2/issue/FOO-123/remotelink/10000"
106
+ )
107
+ self .assertDictEqual (resp ['application' ], {})
You can’t perform that action at this time.
0 commit comments