Skip to content

Commit cdbae97

Browse files
Merge pull request #1148 from acamacho82/issues1147
Remove contents from the new_ticket object and unittests
2 parents 931ec07 + a8baf6b commit cdbae97

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

SoftLayer/managers/ticket.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def create_ticket(self, title=None, body=None, subject=None, priority=None):
6868
current_user = self.account.getCurrentUser()
6969
new_ticket = {
7070
'subjectId': subject,
71-
'contents': body,
7271
'assignedUserId': current_user['id'],
7372
'title': title,
7473
}

tests/CLI/modules/ticket_tests.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def test_create(self):
5555
self.assert_no_fail(result)
5656

5757
args = ({'subjectId': 1000,
58-
'contents': 'ticket body',
5958
'assignedUserId': 12345,
6059
'title': 'Test'}, 'ticket body')
6160

@@ -70,7 +69,6 @@ def test_create_with_priority(self):
7069
self.assert_no_fail(result)
7170

7271
args = ({'subjectId': 1000,
73-
'contents': 'ticket body',
7472
'assignedUserId': 12345,
7573
'title': 'Test',
7674
'priority': 1}, 'ticket body')
@@ -87,7 +85,6 @@ def test_create_and_attach(self):
8785
self.assert_no_fail(result)
8886

8987
args = ({'subjectId': 1000,
90-
'contents': 'ticket body',
9188
'assignedUserId': 12345,
9289
'title': 'Test'}, 'ticket body')
9390

@@ -108,7 +105,6 @@ def test_create_no_body(self, edit_mock):
108105
self.assert_no_fail(result)
109106

110107
args = ({'subjectId': 1000,
111-
'contents': 'ticket body',
112108
'assignedUserId': 12345,
113109
'title': 'Test'}, 'ticket body')
114110

tests/managers/ticket_tests.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def test_create_ticket(self):
7272
subject=1004)
7373

7474
args = ({"assignedUserId": 12345,
75-
"contents": "body",
7675
"subjectId": 1004,
7776
"title": "Cloud Instance Cancellation - 08/01/13"},
7877
"body")

0 commit comments

Comments
 (0)