# coding: utf-8

"""
    Swaggy Jenkins

    Jenkins API clients generated from Swagger / Open API specification  # noqa: E501

    The version of the OpenAPI document: 1.1.2-pre.0
    Contact: blah@cliffano.com
    Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

import unittest
import datetime

import openapi_client
from openapi_client.models.queue import Queue  # noqa: E501
from openapi_client.rest import ApiException

class TestQueue(unittest.TestCase):
    """Queue unit test stubs"""

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def make_instance(self, include_optional):
        """Test Queue
            include_option is a boolean, when False only required
            params are included, when True both required and
            optional params are included """
        # model = openapi_client.models.queue.Queue()  # noqa: E501
        if include_optional :
            return Queue(
                _class = '', 
                items = [
                    openapi_client.models.queue_blocked_item.QueueBlockedItem(
                        _class = '', 
                        actions = [
                            openapi_client.models.cause_action.CauseAction(
                                _class = '', 
                                causes = [
                                    openapi_client.models.cause_user_id_cause.CauseUserIdCause(
                                        _class = '', 
                                        short_description = '', 
                                        user_id = '', 
                                        user_name = '', )
                                    ], )
                            ], 
                        blocked = True, 
                        buildable = True, 
                        id = 56, 
                        in_queue_since = 56, 
                        params = '', 
                        stuck = True, 
                        task = openapi_client.models.free_style_project.FreeStyleProject(
                            _class = '', 
                            name = '', 
                            url = '', 
                            color = '', 
                            description = '', 
                            display_name = '', 
                            display_name_or_null = '', 
                            full_display_name = '', 
                            full_name = '', 
                            buildable = True, 
                            builds = [
                                openapi_client.models.free_style_build.FreeStyleBuild(
                                    _class = '', 
                                    number = 56, 
                                    url = '', 
                                    building = True, 
                                    description = '', 
                                    display_name = '', 
                                    duration = 56, 
                                    estimated_duration = 56, 
                                    executor = '', 
                                    full_display_name = '', 
                                    id = '', 
                                    keep_log = True, 
                                    queue_id = 56, 
                                    result = '', 
                                    timestamp = 56, 
                                    built_on = '', 
                                    change_set = openapi_client.models.empty_change_log_set.EmptyChangeLogSet(
                                        _class = '', 
                                        kind = '', ), )
                                ], 
                            first_build = openapi_client.models.free_style_build.FreeStyleBuild(
                                _class = '', 
                                number = 56, 
                                url = '', 
                                building = True, 
                                description = '', 
                                display_name = '', 
                                duration = 56, 
                                estimated_duration = 56, 
                                executor = '', 
                                full_display_name = '', 
                                id = '', 
                                keep_log = True, 
                                queue_id = 56, 
                                result = '', 
                                timestamp = 56, 
                                built_on = '', ), 
                            health_report = [
                                openapi_client.models.free_style_projecthealth_report.FreeStyleProjecthealthReport(
                                    description = '', 
                                    icon_class_name = '', 
                                    icon_url = '', 
                                    score = 56, 
                                    _class = '', )
                                ], 
                            in_queue = True, 
                            keep_dependencies = True, 
                            last_build = openapi_client.models.free_style_build.FreeStyleBuild(
                                _class = '', 
                                number = 56, 
                                url = '', 
                                building = True, 
                                description = '', 
                                display_name = '', 
                                duration = 56, 
                                estimated_duration = 56, 
                                executor = '', 
                                full_display_name = '', 
                                id = '', 
                                keep_log = True, 
                                queue_id = 56, 
                                result = '', 
                                timestamp = 56, 
                                built_on = '', ), 
                            last_completed_build = openapi_client.models.free_style_build.FreeStyleBuild(
                                _class = '', 
                                number = 56, 
                                url = '', 
                                building = True, 
                                description = '', 
                                display_name = '', 
                                duration = 56, 
                                estimated_duration = 56, 
                                executor = '', 
                                full_display_name = '', 
                                id = '', 
                                keep_log = True, 
                                queue_id = 56, 
                                result = '', 
                                timestamp = 56, 
                                built_on = '', ), 
                            last_failed_build = '', 
                            last_stable_build = openapi_client.models.free_style_build.FreeStyleBuild(
                                _class = '', 
                                number = 56, 
                                url = '', 
                                building = True, 
                                description = '', 
                                display_name = '', 
                                duration = 56, 
                                estimated_duration = 56, 
                                executor = '', 
                                full_display_name = '', 
                                id = '', 
                                keep_log = True, 
                                queue_id = 56, 
                                result = '', 
                                timestamp = 56, 
                                built_on = '', ), 
                            last_successful_build = openapi_client.models.free_style_build.FreeStyleBuild(
                                _class = '', 
                                number = 56, 
                                url = '', 
                                building = True, 
                                description = '', 
                                display_name = '', 
                                duration = 56, 
                                estimated_duration = 56, 
                                executor = '', 
                                full_display_name = '', 
                                id = '', 
                                keep_log = True, 
                                queue_id = 56, 
                                result = '', 
                                timestamp = 56, 
                                built_on = '', ), 
                            last_unstable_build = '', 
                            last_unsuccessful_build = '', 
                            next_build_number = 56, 
                            queue_item = '', 
                            concurrent_build = True, 
                            scm = openapi_client.models.null_scm.NullSCM(
                                _class = '', ), ), 
                        url = '', 
                        why = '', 
                        buildable_start_milliseconds = 56, )
                    ]
            )
        else :
            return Queue(
        )

    def testQueue(self):
        """Test Queue"""
        inst_req_only = self.make_instance(include_optional=False)
        inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
    unittest.main()
