def service_create(self, input_params):
        # create instance
        node_instance = node.NodeOperations(self.driver, self.evidence)
        service_instance = service.ServiceOperations(self.driver,
                                                     self.evidence)
        resource_instance = resource.ResourceOperations(
            self.driver, self.evidence)

        # Initialization processing
        service_create_flg = service_instance.initialize_service_create(
            input_params)
        if service_create_flg == False:
            return

        # check operation before
        resource_instance.check_list_resource_before(input_params)
        resource_instance.check_list_resource_admin_before(input_params)

        # get firewall ip
        fw_ip_address = node_instance.get_firewall_ipaddress()
        input_params["fw_ip_address"] = fw_ip_address

        # call operation
        service_instance.list_service()
        service_instance.check_create_service(input_params)

        # check operation after
        resource_instance.check_list_resource_after(input_params)
        resource_instance.check_list_resource_admin_after(input_params)
    def node_create(self, input_params):
        # create instance
        node_instance = node.NodeOperations(self.driver, self.evidence)
        resource_instance = resource.ResourceOperations(
            self.driver, self.evidence)

        # Initialization processing
        node_create_flg = node_instance.initialize_node_create(input_params)
        if node_create_flg == False:
            return

        # check operation before
        resource_instance.check_list_resource_before(input_params)
        resource_instance.check_list_resource_admin_before(input_params)

        # get firewall ip if node is LoadBalancer
        if input_params["type"] == "2":
            fw_ip_address = node_instance.get_firewall_ipaddress()
            input_params["fw_ip_address"] = fw_ip_address

        # call operation
        node_instance.list_node()
        node_instance.check_create_node(input_params)

        # check operation after
        resource_instance.check_list_resource_after(input_params)
        resource_instance.check_list_resource_admin_after(input_params)
 def resource_delete(self, input_params):
     # create instance
     resource_instance = resource.ResourceOperations(
         self.driver, self.evidence)
     # call operation
     resource_instance.list_resource()
     resource_instance.detail_resource(input_params)
     resource_instance.check_delete_resource()
 def resource_detail_admin(self, input_params):
     # create instance
     resource_instance = resource.ResourceOperations(
         self.driver, self.evidence)
     # call operation
     resource_instance.check_detail_resource_admin(input_params)
 def resource_list_admin(self):
     # create instance
     resource_instance = resource.ResourceOperations(
         self.driver, self.evidence)
     # call operation
     resource_instance.check_list_resource_admin()