Skip to content

Commit

Permalink
Add more tests to config backup. rockstor#1014
Browse files Browse the repository at this point in the history
  • Loading branch information
Mchakravartula committed Nov 20, 2015
1 parent 1878389 commit 7156de1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 111 deletions.
10 changes: 9 additions & 1 deletion src/rockstor/storageadmin/tests/test_config_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,12 @@ def test_valid_requests(self):
# Happy path DELETE
response = self.client.delete('%s/1' % self.BASE_URL)
self.assertEqual(response.status_code,
status.HTTP_200_OK, msg=response.data)
status.HTTP_200_OK, msg=response.data)

def test_config_upload_file(self):
# happy path POST
data = {'file-name':'file1', 'file':'file1 txt'}
response = self.client.post('%s/file-upload' % self.BASE_URL, data=data)
self.assertEqual(response.status_code,
status.HTTP_200_OK, msg=response.data)

110 changes: 0 additions & 110 deletions src/rockstor/storageadmin/views/support.py

This file was deleted.

0 comments on commit 7156de1

Please sign in to comment.