class rsa_keypair(Tab, BeforeFillMixin):  # NOQA
        TAB_NAME = 'RSA key pair'

        username = Input('ssh_keypair_userid')
        private_key = FileInput(locator='.//input[@id="ssh_keypair_password"]')
        change_key = Text(
            locator='.//a[normalize-space(.)="Change stored private key"]')
    class custom_image_file(View):    # noqa
        file = FileInput(name='generic_object_definition_image_file')
        upload_chosen_file = Button('Upload chosen File')

        def after_fill(self, was_change):
            if was_change:
                self.custom_image_file.upload_chosen_file.click()
class AddDeploymentForm(View):
    """Entities on the Add Deployment widget"""
    title = Text('//div[@id="ds_add_div"]//h4')
    file_select = FileInput("upload[file]")
    enable_deployment = BootstrapSwitch(id="enable_deployment_cb")
    runtime_name = TextInput(id="runtime_name_input")
    force_deployment = BootstrapSwitch(id="force_deployment_cb")
    deploy_button = Button(title="Deploy")
    cancel_button = Button(title="Cancel")
Esempio n. 4
0
class ProviderRegisterNodesView(View):
    """
     represents Register Nodes view
    """
    file = FileInput(locator='//input[@id="nodes_json_file"]')
    register = Button(value='Register')
    cancel = Button(value='Cancel')

    is_displayed = displayed_not_implemented
class ProviderRegisterNodesView(View):
    """
     represents Register Nodes view
    """
    file = FileInput(locator='//input[@id="nodes_json_file"]')
    register = Button(value='Register')
    cancel = Button(value='Cancel')

    @property
    def is_displayed(self):
        return False
Esempio n. 6
0
class AddJDBCDriverForm(View):
    """Entities on the Add JDBC Driver widget"""
    title = Text('//div[@id="jdbc_add_div"]//h4')
    file_select = FileInput("jdbc_driver[file]")
    jdbc_driver_name = TextInput("jdbc_driver_name_input")
    jdbc_module_name = TextInput("jdbc_module_name_input")
    jdbc_driver_class = TextInput("jdbc_driver_class_input")
    driver_xa_datasource_class = TextInput("driver_xa_datasource_class_name_input")
    major_version = TextInput("major_version_input")
    minor_version = TextInput("minor_version_input")
    deploy_button = Button(title="Deploy")
    cancel_button = Button(title="Cancel")
class ProviderRegisterNodesView(View):
    """
     represents Register Nodes view
    """
    file = FileInput(locator='//input[@id="nodes_json_file"]')
    register = Button(value='Register')
    cancel = Button(value='Cancel')

    @property
    def is_displayed(self):
        raise NotImplementedError(
            "This view has no unique markers for is_displayed check")
Esempio n. 8
0
class DetailsEntitiesAnsibleCatalogItemView(View):
    title = Text(".//span[@id='explorer_title_text']")
    basic_information = SummaryForm("Basic Information")
    custom_image = FileInput("upload_image")
    upload = Button("Upload")
    smart_management = SummaryTable("Smart Management")

    @View.nested
    class provisioning(Tab):  # noqa
        info = SummaryForm("Provisioning Info")
        variables_and_default_values = Table(".//div[@id='provisioning']//table")

    @View.nested
    class retirement(Tab):  # noqa
        info = SummaryForm("Retirement Info")
        variables_and_default_values = Table(".//div[@id='retirement']//table")
class DetailsAnsibleCatalogItemView(ServicesCatalogView):
    title = Text(".//span[@id='explorer_title_text']")
    basic_information = SummaryForm("Basic Information")
    custom_image = FileInput("upload_image")
    upload = Button("Upload")
    smart_management = SummaryTable("Smart Management")

    @View.nested
    class provisioning(Tab):  # noqa
        info = SummaryForm("Provisioning Info")
        variables_and_default_values = Table(".//div[@id='provisioning']//table")

    @View.nested
    class retirement(Tab):  # noqa
        info = SummaryForm("Retirement Info")
        variables_and_default_values = Table(".//div[@id='retirement']//table")

    @property
    def is_displayed(self):
        return (
            self.in_explorer() and
            self.title.text == 'Service Catalog Item "{}"'.format(self.context["object"].name)
        )
Esempio n. 10
0
class DetailsEntitiesCatalogItemView(View):
    custom_image = FileInput("upload_image")
    smart_management = SummaryTable("Smart Management")
Esempio n. 11
0
class DetailsEntitiesCatalogItemView(View):
    upload_image = FileInput(id="upload_image")
    upload_button = InputButton("commit")
    remove = Button(title="Remove this Custom Image")
    smart_management = SummaryTable("Smart Management")