Skip to content

Fixed test cases#26

Open
ansarars wants to merge 1 commit intoHewlettPackard:masterfrom
ansarars:sdk_test
Open

Fixed test cases#26
ansarars wants to merge 1 commit intoHewlettPackard:masterfrom
ansarars:sdk_test

Conversation

@ansarars
Copy link
Copy Markdown
Contributor

@ansarars ansarars commented Jan 9, 2019

No description provided.

Comment thread hpe3par_sdk/client.py
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(
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added http in init since test_HPE3ParClient_retry.py test cases failing

#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:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added these changes to fix test case test_HPE3ParClient_FilePersona.py

pass
#self.cl = file_client.HPE3ParFilePersonaClient(self.flask_url)
# pass
self.cl = file_client.HPE3ParFilePersonaClient(self.flask_url)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added these changes to fix test case test_HPE3ParClient_FilePersona.py

def get_vluns():
debugRequest(flask.request)
resp = flask.make_response(json.dumps(vluns), 200)
query = flask.request.args.get('query')
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added changes to fix the error in test case test_HPE3ParClient_HostSet.py

'copyOfName': None, 'copyRO': None, 'expirationHours': None,
'retentionHours': None}

'retentionHours': None, 'objectKeyValues': None}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added changes to fix the error in test case test_HPE3ParClient_volume.py


resp = self.cl.getRemoteCopyGroup(REMOTE_COPY_GROUP_NAME1)
self.assertEqual(REMOTE_COPY_GROUP_NAME1, resp['name'])
self.assertEqual(REMOTE_COPY_GROUP_NAME1, resp.name)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added changes to fix the error in test case test_HPE3ParClient_volume.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant