# Path: networking_odl/journal/base_driver.py
# LOG = logging.getLogger(__name__)
# ALL_RESOURCES = {}
#     RESOURCES = {}
# def get_driver(resource_type):
#     def __init__(self, *args, **kwargs):
#     def _get_resource_getter(self, method_suffix):
#     def get_resources_for_full_sync(self, context, resource_type):
#     def plugin(self):
#     def get_resource_for_recovery(self, context, obj):
# class ResourceBaseDriver(object):


from networking_odl.journal import base_driver
#    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.



TEST_UUID = 'bd8db3a8-2b30-4083-a8b3-b3fd46401142'
TEST_PLUGIN = 'test_plugin'
TEST_RESOURCE1 = 'test_resource1'
TEST_RESOURCE2 = 'test_resource2'
TEST_RESOURCE1_SUFFIX = 'test_resource1s'
TEST_RESOURCE2_SUFFIX = 'test_resource2s'
INVALID_RESOURCE = 'invalid_resource'
INVALID_PLUGIN = 'invalid_plugin'
INVALID_METHOD = 'invalid_method_name'


class TestPlugin(object):
    def get_test_resource1s(self, context):
        return [{'id': 'test_id1'}, {'id': 'test_id2'}]

    def get_test_resource2s(self, context):
        return [{'id': 'test_id3'}, {'id': 'test_id4'}]

    def get_test_resource1(self, context, id_):
        return {'id': id_}


class TestDriver(base_driver.ResourceBaseDriver):

# Path: networking_odl/journal/base_driver.py
# LOG = logging.getLogger(__name__)
# ALL_RESOURCES = {}
#     RESOURCES = {}
# def get_driver(resource_type):
#     def __init__(self, *args, **kwargs):
#     def _get_resource_getter(self, method_suffix):
#     def get_resources_for_full_sync(self, context, resource_type):
#     def plugin(self):
#     def get_resource_for_recovery(self, context, obj):
# class ResourceBaseDriver(object):


# Path: networking_odl/tests/unit/journal/helper.py
from networking_odl.journal import base_driver

#    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.



TEST_UUID = 'bd8db3a8-2b30-4083-a8b3-b3fd46401142'
TEST_PLUGIN = 'test_plugin'
TEST_RESOURCE1 = 'test_resource1'
TEST_RESOURCE2 = 'test_resource2'
TEST_RESOURCE1_SUFFIX = 'test_resource1s'
TEST_RESOURCE2_SUFFIX = 'test_resource2s'
INVALID_RESOURCE = 'invalid_resource'
INVALID_PLUGIN = 'invalid_plugin'
INVALID_METHOD = 'invalid_method_name'


class TestPlugin(object):
    def get_test_resource1s(self, context):
        return [{'id': 'test_id1'}, {'id': 'test_id2'}]

    def get_test_resource2s(self, context):
        return [{'id': 'test_id3'}, {'id': 'test_id4'}]

    def get_test_resource1(self, context, id_):
        return {'id': id_}


class TestDriver(base_driver.ResourceBaseDriver):

    RESOURCES = {