Ejemplo n.º 1
0
def add_host_credentials(host_name):
    '''Add host credentials
    '''
    infra_hosts_pg = navigation.infra_hosts_pg()
    host = get_host_by_name(host_name)
    host_detail_pg = infra_hosts_pg.edit_host_and_save(host)
    assert 'Host "%s" was saved' % host_name in host_detail_pg.flash.message,\
        FLASH_MESSAGE_NOT_MATCHED
    host_detail_pg.flash.click()
    return host_detail_pg
Ejemplo n.º 2
0
def does_host_have_valid_creds(host_name):
    infra_hosts_pg = navigation.infra_hosts_pg()
    return infra_hosts_pg.quadicon_region.get_quadicon_by_title(host_name).valid_credentials