예제 #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
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
def test_install(app_archive_path, device_host):
    local_install(device_host, DEFAULT_LOGS_SSH_PASSWORD, app_archive_path)
예제 #4
0
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
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
def test_install(app_archive_path, device_host, device_password,
                 device_session):
    local_install(device_host, device_password, app_archive_path)
예제 #13
0
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)