コード例 #1
0
ファイル: verify.py プロジェクト: anjoah/platform
def test_local_upgrade(app_archive_path, installer, device_host):
    if installer == 'sam':
        local_remove(device_host, DEVICE_PASSWORD, installer, 'platform')
        time.sleep(3)
        local_install(device_host, DEVICE_PASSWORD, app_archive_path, installer)
    else:
        local_install(device_host, DEVICE_PASSWORD, app_archive_path, installer)
コード例 #2
0
ファイル: test-upgrade.py プロジェクト: syncloud/rocketchat
def test_upgrade(device, arch, selenium, device_user, device_password,
                 device_host, app_archive_path, app_domain, app_dir):
    if arch == "arm64":
        return

    device.run_ssh('snap remove rocketchat')
    device.run_ssh('snap install rocketchat')

    wait_for_rest(requests.session(), "https://{0}".format(app_domain), 200,
                  10)
    login(selenium, device_user, device_password)

    selenium.driver.get("https://{0}/channel/general".format(app_domain))
    # v3 selenium.find_by_xpath("//div[text()='Start of conversation']")
    selenium.find_by_xpath("//*[text()='Start of conversation']")

    selenium.find_by_xpath("//textarea[@placeholder='Message']").send_keys(
        'test message')
    selenium.find_by_xpath("//textarea[@placeholder='Message']").send_keys(
        Keys.RETURN)
    selenium.find_by_xpath("//div[@dir='auto' and contains(.,'test message')]")

    device.run_ssh(
        '{0}/mongodb/bin/mongo.sh /mongodb.config.dump.js > {1}/mongo.config.old.dump.log'
        .format(app_dir, TMP_DIR),
        throw=False)

    device.run_ssh(
        'wget https://github.com/syncloud/3rdparty/releases/download/mongo-4.4/mongodb-amd64-4.4.tar.gz --progress dot:giga'
    )
    device.run_ssh('tar xf mongodb-amd64-4.4.tar.gz')
    device.run_ssh(
        './mongodb/bin/mongodump.sh --archive=/var/snap/rocketchat/current/database.dump.gzip --gzip'
    )

    local_install(device_host, device_password, app_archive_path)
    device.run_ssh(
        '{0}/mongodb/bin/mongo.sh /mongodb.config.dump.js > {1}/mongo.config.refresh.dump.log'
        .format(app_dir, TMP_DIR),
        throw=False)
    wait_for_rest(requests.session(), "https://{0}".format(app_domain), 200,
                  10)
    #login(selenium, device_user, device_password)
    selenium.driver.get("https://{0}/channel/general".format(app_domain))
    #v3 selenium.find_by_xpath("//div[text()='Start of conversation']")
    selenium.find_by_xpath("//*[text()='Start of conversation']")
    selenium.find_by_xpath("//div[@dir='auto' and contains(.,'test message')]")
    selenium.screenshot('refresh-channel')
コード例 #3
0
ファイル: verify.py プロジェクト: elmergonzalezb/platform-4
def test_install(app_archive_path, device_host):
    local_install(device_host, DEFAULT_LOGS_SSH_PASSWORD, app_archive_path)
コード例 #4
0
ファイル: verify.py プロジェクト: elmergonzalezb/platform-4
def test_reinstall_local_after_upgrade(app_archive_path, device_host):
    local_install(device_host, LOGS_SSH_PASSWORD, app_archive_path)
コード例 #5
0
def test_upgrade_from_store(device, app, app_archive_path, device_host, device_password):
    response = device.app_remove(app)
    assert response.status_code == 200, response.text
    response = device.app_install(app)
    assert response.status_code == 200, response.text
    local_install(device_host, device_password, app_archive_path)
コード例 #6
0
ファイル: verify.py プロジェクト: genothomas/platform
def test_install_testapp(device_host):
    local_install(device_host, DEFAULT_LOGS_SSH_PASSWORD, join(DIR, 'testapp', 'testapp.snap'))
コード例 #7
0
ファイル: verify.py プロジェクト: bmorelax/platform
def test_local_upgrade(app_archive_path, device_host):
    local_install(device_host, DEVICE_PASSWORD, app_archive_path)
コード例 #8
0
def test_install(app_archive_path, installer, device_host):
    local_install(device_host, DEFAULT_DEVICE_PASSWORD, app_archive_path,
                  installer)
コード例 #9
0
ファイル: verify.py プロジェクト: syncloud/mail
def test_upgrade(device_host, app_archive_path, user_domain):
    local_remove(device_host, DEVICE_PASSWORD, 'mail')
    local_install(device_host, DEVICE_PASSWORD, app_archive_path)
コード例 #10
0
ファイル: verify.py プロジェクト: syncloud/files
def test_reinstall(app_archive_path, device_domain, installer):
    local_install(device_domain, DEVICE_PASSWORD, app_archive_path, installer)
コード例 #11
0
def test_install(app_archive_path, device_host, app_domain):
    local_install(device_host, DEVICE_PASSWORD, app_archive_path)
コード例 #12
0
ファイル: verify.py プロジェクト: syncloud/syncthing
def test_install(app_archive_path, device_host, device_password,
                 device_session):
    local_install(device_host, device_password, app_archive_path)
コード例 #13
0
ファイル: verify.py プロジェクト: syncloud/wordpress
def test_upgrade(app_archive_path, device_host, device_password,
                 device_session):
    local_install(device_host, device_password, app_archive_path)
    wait_for_installer(device_session, device_host)
コード例 #14
0
def test_upgrade(device, device_user, device_password, device_host, app_archive_path, app_domain, app_dir):
    device.run_ssh('snap remove nextcloud')
    device.run_ssh('snap install nextcloud')
    local_install(device_host, device_password, app_archive_path)
    wait_for_rest(requests.session(), "https://{0}".format(app_domain), 200, 10)
コード例 #15
0
def test_reinstall(app_archive_path, device_host, device_password):
    local_install(device_host, device_password, app_archive_path)
コード例 #16
0
def test_reinstall_local_after_upgrade(app_archive_path, installer,
                                       device_host):
    local_install(device_host, DEVICE_PASSWORD, app_archive_path, installer)
コード例 #17
0
def test_install(device_session, app_archive_path, device_host, app_domain,
                 device_password):
    local_install(device_host, device_password, app_archive_path)
    wait_for_installer(device_session, device_host)
コード例 #18
0
ファイル: verify.py プロジェクト: syncloud/mail
def test_install(app_archive_path, device_host):
    local_install(device_host, DEVICE_PASSWORD, app_archive_path)