# Path: ironicclient/tests/unit/osc/fakes.py
# AUTH_TOKEN = "foobar"
# AUTH_URL = "http://0.0.0.0"
# API_VERSION = '1.6'
# class FakeApp(object):
# class FakeClientManager(object):
# class FakeResource(object):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self, manager, info, loaded=False):
#     def _add_details(self, info):
#     def __repr__(self):


import json
from unittest import mock
from osc_lib.tests import utils
from ironicclient.tests.unit.osc import fakes
baremetal_deploy_template_extra = {'key1': 'value1', 'key2': 'value2'}
DEPLOY_TEMPLATE = {
    'uuid': baremetal_deploy_template_uuid,
    'name': baremetal_deploy_template_name,
    'steps': baremetal_deploy_template_steps,
    'extra': baremetal_deploy_template_extra,
}
NODE_HISTORY = [
    {
        'uuid': 'abcdef1',
        'created_at': 'time',
        'severity': 'info',
        'event': 'meow',
        'event_type': 'purring',
        'conductor': 'lap-conductor',
        'user': '0191',
        'links': {'href': 'url', 'rel': 'self'},
    }
]


class TestBaremetal(utils.TestCommand):

    def setUp(self):
        super(TestBaremetal, self).setUp()

        self.app.client_manager.auth_ref = mock.Mock(auth_token="TOKEN")
        self.app.client_manager.baremetal = mock.Mock()



# Path: ironicclient/tests/unit/osc/fakes.py
# AUTH_TOKEN = "foobar"
# AUTH_URL = "http://0.0.0.0"
# API_VERSION = '1.6'
# class FakeApp(object):
# class FakeClientManager(object):
# class FakeResource(object):
#     def __init__(self):
#     def __init__(self):
#     def __init__(self, manager, info, loaded=False):
#     def _add_details(self, info):
#     def __repr__(self):


# Path: ironicclient/tests/unit/osc/v1/fakes.py
import json
from unittest import mock
from osc_lib.tests import utils
from ironicclient.tests.unit.osc import fakes

baremetal_deploy_template_extra = {'key1': 'value1', 'key2': 'value2'}
DEPLOY_TEMPLATE = {
    'uuid': baremetal_deploy_template_uuid,
    'name': baremetal_deploy_template_name,
    'steps': baremetal_deploy_template_steps,
    'extra': baremetal_deploy_template_extra,
}
NODE_HISTORY = [
    {
        'uuid': 'abcdef1',
        'created_at': 'time',
        'severity': 'info',
        'event': 'meow',
        'event_type': 'purring',
        'conductor': 'lap-conductor',
        'user': '0191',
        'links': {'href': 'url', 'rel': 'self'},
    }
]


class TestBaremetal(utils.TestCommand):

    def setUp(self):
        super(TestBaremetal, self).setUp()

        self.app.client_manager.auth_ref = mock.Mock(auth_token="TOKEN")
        self.app.client_manager.baremetal = mock.Mock()



class FakeBaremetalResource(fakes.FakeResource):