Skip to content

Commit

Permalink
Update wording
Browse files Browse the repository at this point in the history
  • Loading branch information
gregocgt committed Jun 13, 2019
1 parent e2c7b23 commit c28958b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion SOLIDserverRest/Exception.py
Expand Up @@ -17,7 +17,7 @@ class SDSError(Exception):


class SDSInitError(SDSError):
""" raised when action on non initialized SSD connection """
""" raised when action on non initialized SDS connection """
pass


Expand Down
10 changes: 5 additions & 5 deletions SOLIDserverRest/SOLIDserverRest.py
Expand Up @@ -44,7 +44,7 @@ class SOLIDserverRest:
password = None

def __init__(self, host, debug=False):
""" initialize connection with SSD host,
""" initialize connection with SDS host,
this function is not active,
just set host and parameters
"""
Expand All @@ -68,12 +68,12 @@ def __init__(self, host, debug=False):
self.resp = None

def use_native_sds(self, user, password):
""" propose to use a native EfficientIP SSD connection with Username
""" propose to use a native EfficientIP SDS connection with Username
and password encoded in the headers of each requests
"""
logging.debug("useNativeSDS %s %s", user, password)

# check if SSD connection is established
# check if SDS connection is established
if self.host is None:
raise SDSInitError()

Expand Down Expand Up @@ -159,15 +159,15 @@ def get_headers(self):
return self.headers

def get_status(self):
""" returns status of the SSD connection """
""" returns status of the SDS connection """
_r = {
'host': self.host,
'python_version': self.python_version
}
return _r

def clean(self):
""" clean all status of the SSD connection """
""" clean all status of the SDS connection """
self.headers = None
self.debug = None
self.prefix_url = None
Expand Down
8 changes: 4 additions & 4 deletions tests/test_simple.py
Expand Up @@ -34,9 +34,9 @@ def test_setup_woinit():


def test_setup_simple():
""" simple setup of SSD native connection """
""" simple setup of SDS native connection """
con = SOLIDserverRest(SDS_HOST)
con.use_native_ssd(user=SDS_APIUSER, password=SDS_APIPWD)
con.use_native_sds(user=SDS_APIUSER, password=SDS_APIPWD)

s = con.get_status()
if 'python_version' not in s:
Expand All @@ -50,9 +50,9 @@ def test_setup_simple():


def test_native_simple_call():
""" simple call with SSD native connection """
""" simple call with SDS native connection """
con = SOLIDserverRest(SDS_HOST)
con.use_native_ssd(user=SDS_APIUSER, password=SDS_APIPWD)
con.use_native_sds(user=SDS_APIUSER, password=SDS_APIPWD)

try:
answer = con.query('ip_site_count',
Expand Down

0 comments on commit c28958b

Please sign in to comment.