a_frame/utils/action_providers/GitAction.py
def connect_to_ruckus(self):
        """
        connects to Ruckus REST server to get a Cookie with the specified user and password

        :return: boolean if successful

        """

        _auth_json = """
           {
            "username" : "%s",
            "password" : "%s"
            }
            """ % (self.username, self.password)

        full_url = self.protocol + "://" + self.host + self._ruckus_auth_path
        print full_url
        request = urllib2.Request(full_url)

        print "Ruckus Rest Cookie using username/password: %s %s" % (self.username, self.password)
        request.add_header("Content-Type", "application/json")

        if hasattr(ssl, 'SSLContext'):
            context = ssl.create_default_context()  # disables SSL cert checking!
            context.check_hostname = False
            context.verify_mode = ssl.CERT_NONE
            result = urllib2.urlopen(request, _auth_json, context=context).read()
        else:
            result = urllib2.urlopen(request, _auth_json).read()

        auth_token_string = result.info().getheader('Set-cookie')
        self._auth_token = auth_token_string.split(';')[0]

        return True

        connects to Ruckus REST server to get a Cookie with the specified user and password

        :return: boolean if successful

        
connects to Ruckus REST server to get a Cookie with the specified user and password
connects to Ruckus REST server to get a Cookie with the specified user and password
def connect_to_ruckus(self):
        _auth_json = """
           {
            "username" : "%s",
            "password" : "%s"
            }
            """ % (self.username, self.password)
        full_url = self.protocol + "://" + self.host + self._ruckus_auth_path
        print full_url
        request = urllib2.Request(full_url)
        print "Ruckus Rest Cookie using username/password: %s %s" % (self.username, self.password)
        request.add_header("Content-Type", "application/json")
        if hasattr(ssl, 'SSLContext'):
            context = ssl.create_default_context()  
            context.check_hostname = False
            context.verify_mode = ssl.CERT_NONE
            result = urllib2.urlopen(request, _auth_json, context=context).read()
        else:
            result = urllib2.urlopen(request, _auth_json).read()
        auth_token_string = result.info().getheader('Set-cookie')
        self._auth_token = auth_token_string.split(';')[0]
        return True
def connect_to_ruckus ( self ) : _auth_json = """
           {
            "username" : "%s",
            "password" : "%s"
            }
            """ % ( self . username , self . password ) full_url = self . protocol + "://" + self . host + self . _ruckus_auth_path print full_url request = urllib2 . Request ( full_url ) print "Ruckus Rest Cookie using username/password: %s %s" % ( self . username , self . password ) request . add_header ( "Content-Type" , "application/json" ) if hasattr ( ssl , 'SSLContext' ) : context = ssl . create_default_context ( ) context . check_hostname = False context . verify_mode = ssl . CERT_NONE result = urllib2 . urlopen ( request , _auth_json , context = context ) . read ( ) else : result = urllib2 . urlopen ( request , _auth_json ) . read ( ) auth_token_string = result . info ( ) . getheader ( 'Set-cookie' ) self . _auth_token = auth_token_string . split ( ';' ) [ 0 ] return True
connects to Ruckus REST server to get a Cookie with the specified user and password
connects to Ruckus REST server to get a Cookie with the specified user and password
"""
        connects to Ruckus REST server to get a Cookie with the specified user and password

        :return: boolean if successful

        """ # disables SSL cert checking!
boolean if successful
boolean if successful
self