diff --git a/hpOneView/resources/resource.py b/hpOneView/resources/resource.py index 953bc5a5..82032330 100755 --- a/hpOneView/resources/resource.py +++ b/hpOneView/resources/resource.py @@ -159,7 +159,7 @@ def build_query_uri(self, start=0, count=-1, filter='', query='', sort='', view= fields = "&fields=" + quote(fields) if scope_uris: - scope_uris = "&scope_uris=" + quote(scope_uris) + scope_uris = "&scopeUris=" + quote(scope_uris) path = uri if uri else self._uri self.__validate_resource_uri(path) diff --git a/tests/unit/resources/test_resource.py b/tests/unit/resources/test_resource.py index 7607a0c2..94b85448 100644 --- a/tests/unit/resources/test_resource.py +++ b/tests/unit/resources/test_resource.py @@ -108,7 +108,7 @@ def test_get_all_called_once(self, mock_get): '&sort=name%3Aascending' \ '&view=%22%7Bview-name%7D%22' \ '&fields=name%2Cowner%2Cmodified' \ - '&scope_uris=/rest/scopes/cd237b60-09e2-45c4-829e-082e318a6d2a'.format(resource_uri=self.URI) + '&scopeUris=/rest/scopes/cd237b60-09e2-45c4-829e-082e318a6d2a'.format(resource_uri=self.URI) self.assertEqual([{'member': 'member'}], result) mock_get.assert_called_once_with(uri)