# Path: acos_client/client.py
# VERSION_IMPORTS = {
#     '21': {
#         'DNS': v21_DNS,
#         'http': v21_http,
#         'HA': v21_HA,
#         'Interface': v21_Interface,
#         'LicenseManager': v21_LicenseManager,
#         'Nat': v21_Nat,
#         'Network': v21_Network,
#         'Session': v21_Session,
#         'SFlow': v21_SFlow,
#         'SLB': v21_SLB,
#         'System': v21_System,
#         'Vlan': None,
#         'VRRPA': v21_VRRPA
#     },
#     '30': {
#         'DNS': v30_DNS,
#         'http': v30_http,
#         'Interface': v30_Interface,
#         'HA': v30_HA,
#         'LicenseManager': v30_LicenseManager,
#         'Nat': v30_Nat,
#         'Network': v30_Network,
#         'Overlay': v30_Overlay,
#         'RIB': v30_RIB,
#         'Session': v30_Session,
#         'SFlow': v30_SFlow,
#         'SLB': v30_SLB,
#         'System': v30_System,
#         'File': v30_File,
#         'Vlan': v30_Vlan,
#         'VRRPA': v30_VRRPA,
#         'DeviceContext': v30_DeviceContext,
#         'Flexpool': Flexpool,
#         'Delete': Delete,
#     },
# }
# LOG = logging.getLogger(__name__)
# class Client(object):
#     def __init__(
#             self,
#             host,              # ip address or name of the A10 device
#             version,           # either 21 or 30
#             username,          # username to use for authenticating to the A10 device
#             password,          # password to use for authenticating to the A10 device
#             max_retries=3,     # number of times to retry a connection before giving up
#             port=None,         # TCP port to use for connecting to the A10 device
#             protocol="https",  # transport protocol - http or https, encryption recommended
#             timeout=5          # seconds to wait for return data before giving up
#     ):
#     def _just_digits(self, s):
#     def dns(self):
#     def ha(self):
#     def interface(self):
#     def system(self):
#     def slb(self):
#     def network(self):
#     def nat(self):
#     def file(self):
#     def sflow(self):
#     def license_manager(self):
#     def glm(self):
#     def overlay(self):
#     def vlan(self):
#     def route(self):
#     def vrrpa(self):
#     def device_context(self):
#     def delete(self):
#     def wait_for_connect(self, max_timeout=60):


import json
import responses
    import unittest
    import unittest2 as unittest
from acos_client import client
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.
from __future__ import absolute_import
from __future__ import unicode_literals

try:
except ImportError:


HOSTNAME = 'fake_a10'
BASE_URL = 'https://{}:443/axapi/v3'.format(HOSTNAME)
AUTH_URL = '{}/auth'.format(BASE_URL)
MEM_NAME = 'fake-server'
SG_NAME = 'fake-sg'
CREATE_URL = '{}/slb/service-group/{}/member/'.format(BASE_URL, SG_NAME)
OBJECT_URL = '{}/slb/service-group/{}/member/{}+{}/'
OK_RESP = {'response': {'status': 'OK'}}


class TestMember(unittest.TestCase):

    def setUp(self):

# Path: acos_client/client.py
# VERSION_IMPORTS = {
#     '21': {
#         'DNS': v21_DNS,
#         'http': v21_http,
#         'HA': v21_HA,
#         'Interface': v21_Interface,
#         'LicenseManager': v21_LicenseManager,
#         'Nat': v21_Nat,
#         'Network': v21_Network,
#         'Session': v21_Session,
#         'SFlow': v21_SFlow,
#         'SLB': v21_SLB,
#         'System': v21_System,
#         'Vlan': None,
#         'VRRPA': v21_VRRPA
#     },
#     '30': {
#         'DNS': v30_DNS,
#         'http': v30_http,
#         'Interface': v30_Interface,
#         'HA': v30_HA,
#         'LicenseManager': v30_LicenseManager,
#         'Nat': v30_Nat,
#         'Network': v30_Network,
#         'Overlay': v30_Overlay,
#         'RIB': v30_RIB,
#         'Session': v30_Session,
#         'SFlow': v30_SFlow,
#         'SLB': v30_SLB,
#         'System': v30_System,
#         'File': v30_File,
#         'Vlan': v30_Vlan,
#         'VRRPA': v30_VRRPA,
#         'DeviceContext': v30_DeviceContext,
#         'Flexpool': Flexpool,
#         'Delete': Delete,
#     },
# }
# LOG = logging.getLogger(__name__)
# class Client(object):
#     def __init__(
#             self,
#             host,              # ip address or name of the A10 device
#             version,           # either 21 or 30
#             username,          # username to use for authenticating to the A10 device
#             password,          # password to use for authenticating to the A10 device
#             max_retries=3,     # number of times to retry a connection before giving up
#             port=None,         # TCP port to use for connecting to the A10 device
#             protocol="https",  # transport protocol - http or https, encryption recommended
#             timeout=5          # seconds to wait for return data before giving up
#     ):
#     def _just_digits(self, s):
#     def dns(self):
#     def ha(self):
#     def interface(self):
#     def system(self):
#     def slb(self):
#     def network(self):
#     def nat(self):
#     def file(self):
#     def sflow(self):
#     def license_manager(self):
#     def glm(self):
#     def overlay(self):
#     def vlan(self):
#     def route(self):
#     def vrrpa(self):
#     def device_context(self):
#     def delete(self):
#     def wait_for_connect(self, max_timeout=60):


# Path: acos_client/tests/unit/v30/test_member.py
import json
import responses
    import unittest
    import unittest2 as unittest
from acos_client import client

#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.
from __future__ import absolute_import
from __future__ import unicode_literals

try:
except ImportError:


HOSTNAME = 'fake_a10'
BASE_URL = 'https://{}:443/axapi/v3'.format(HOSTNAME)
AUTH_URL = '{}/auth'.format(BASE_URL)
MEM_NAME = 'fake-server'
SG_NAME = 'fake-sg'
CREATE_URL = '{}/slb/service-group/{}/member/'.format(BASE_URL, SG_NAME)
OBJECT_URL = '{}/slb/service-group/{}/member/{}+{}/'
OK_RESP = {'response': {'status': 'OK'}}


class TestMember(unittest.TestCase):

    def setUp(self):

        self.client = client.Client(HOSTNAME, '30', 'fake_username', 'fake_password')