Fixed test cases#26
Open
ansarars wants to merge 1 commit intoHewlettPackard:masterfrom
ansarars:sdk_test
Open
Conversation
ansarars
commented
Jan 9, 2019
| def __init__(self, api_url, app_type = 'python_SDK_3par', debug=False, secure=False, timeout=None, | ||
| suppress_ssl_warnings=False): | ||
| self.api_url = api_url | ||
| self.http = http.HTTPJSONRESTClient( |
Contributor
Author
There was a problem hiding this comment.
Added http in init since test_HPE3ParClient_retry.py test cases failing
ansarars
commented
Jan 9, 2019
| #print port.mode | ||
| ports = [port for port in ports if port.linkState == 4 and ( port.device is not None or not port.device) and port.mode == 2] | ||
| self.port = ports[0].port_pos | ||
| if withFilePersona: |
Contributor
Author
There was a problem hiding this comment.
Added these changes to fix test case test_HPE3ParClient_FilePersona.py
ansarars
commented
Jan 9, 2019
| pass | ||
| #self.cl = file_client.HPE3ParFilePersonaClient(self.flask_url) | ||
| # pass | ||
| self.cl = file_client.HPE3ParFilePersonaClient(self.flask_url) |
Contributor
Author
There was a problem hiding this comment.
Added these changes to fix test case test_HPE3ParClient_FilePersona.py
ansarars
commented
Jan 9, 2019
| def get_vluns(): | ||
| debugRequest(flask.request) | ||
| resp = flask.make_response(json.dumps(vluns), 200) | ||
| query = flask.request.args.get('query') |
Contributor
Author
There was a problem hiding this comment.
Added changes to fix the error in test case test_HPE3ParClient_HostSet.py
ansarars
commented
Jan 9, 2019
| 'copyOfName': None, 'copyRO': None, 'expirationHours': None, | ||
| 'retentionHours': None} | ||
|
|
||
| 'retentionHours': None, 'objectKeyValues': None} |
Contributor
Author
There was a problem hiding this comment.
Added changes to fix the error in test case test_HPE3ParClient_volume.py
ansarars
commented
Jan 9, 2019
|
|
||
| resp = self.cl.getRemoteCopyGroup(REMOTE_COPY_GROUP_NAME1) | ||
| self.assertEqual(REMOTE_COPY_GROUP_NAME1, resp['name']) | ||
| self.assertEqual(REMOTE_COPY_GROUP_NAME1, resp.name) |
Contributor
Author
There was a problem hiding this comment.
Added changes to fix the error in test case test_HPE3ParClient_volume.py
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.