Exemplo n.º 1
0
def test_public_web_platform_upgrade(public_web_session, device_host,
                                     installer):
    if installer == 'snapd':
        run_ssh(device_host, 'snap remove platform', password=DEVICE_PASSWORD)
        run_ssh(device_host,
                'snap install platform --channel=master',
                password=DEVICE_PASSWORD)
        run_ssh(device_host, 'snap refresh platform', password=DEVICE_PASSWORD)

    public_web_session.get(
        'https://{0}/rest/settings/system_upgrade'.format(device_host),
        verify=False)
    wait_for_sam(public_web_session, device_host)
Exemplo n.º 2
0
def test_installer_upgrade(public_web_session, device_host):
    public_web_session.get('https://{0}/rest/upgrade?app_id=sam'.format(device_host), verify=False)
    wait_for_sam(public_web_session, device_host)
Exemplo n.º 3
0
def test_install_app(public_web_session, device_host):
    public_web_session.get('https://{0}/rest/install?app_id={1}'.format(device_host, 'files'), verify=False)
    wait_for_sam(public_web_session, device_host)
Exemplo n.º 4
0
def test_remove(syncloud_session, device_domain):
    response = syncloud_session.get('https://{0}/rest/remove?app_id=files'.format(device_domain),
                                    allow_redirects=False,
                                    verify=False)
    assert response.status_code == 200, response.text
    wait_for_sam(syncloud_session, device_domain)
Exemplo n.º 5
0
def __upgrade(public_web_session, upgrade_type, device_host):

    public_web_session.get('https://{0}/rest/settings/{1}_upgrade'.format(
        device_host, upgrade_type),
                           verify=False)
    wait_for_sam(public_web_session, device_host)