Skip to content

Commit

Permalink
improve coverage. rockstor#1014
Browse files Browse the repository at this point in the history
  • Loading branch information
Mchakravartula committed Nov 20, 2015
1 parent 7ef3d0f commit ff7be05
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rockstor/storageadmin/tests/test_appliances.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ def test_post_requests(self):

def test_delete_requests(self):


# add appliance
data = {'ip': '1.1.1.1', 'mgmt_port': '443', 'client_id':'', 'client_secret':'', 'current_appliance': False }
response = self.client.post(self.BASE_URL, data=data)
self.assertEqual(response.status_code,
status.HTTP_200_OK, msg=response.data)

# delete appliance that does not exists
app_id = 11
response = self.client.delete('%s/%d' % (self.BASE_URL, app_id))
Expand Down

0 comments on commit ff7be05

Please sign in to comment.