Git Product home page Git Product logo

rport-e2e-tests's Introduction

Initial configuration of the test runner (Ubuntu)

Libs for gmail api:

Configure Lxd and images

  • Initial configuration: sudo lxd init --auto

  • Add user to ldx group: sudo usermod -a -G lxd $userName

  • Login to a group: newgrp lxd or logout/login the current user in order to see the new group added

  • Verify with the following commands: lxc list and lxc info | more

  • List images: lxc image list images:

  • Copy images to the local image store

lxc image copy images:debian/11 local:

lxc image copy ubuntu:20.04 local:

lxc image copy images:centos/8 local:

  • Verify local image store: lxc image list
  • Get fingerprints from the output and set them correctly as env variables: DEBIAN_FINGERPRINT, UBUNTU_FINGERPRINT, CENTOS_FINGERPRINT.

Environment variable

You need to set the following environment variables:

SSH_PATH=/home/rafal/.ssh/scalewaySSHKey
SSH_PWD=scalewaySSHKeypassword 
GODADDY_API_KEY=
GODADDY_SECRET=
SCALEWAY_SECRET_KEY=
PYLXD_WARNINGS=none
DEBIAN_FINGERPRINT=d5cb788898fd
UBUNTU_FINGERPRINT=fab57376cf04
CENTOS_FINGERPRINT=b4d985c8702e
AUTH_INSTALLER=user:password

Execute the script - email2fa.py

  • Run python3 email2fa.py to run a stable release

  • Run python3 email2fa.py --unstable to run an unstable release

  • Use --updates to check if clients updates are collected. Use ANY (default) to wait until any client reports updates, ALL to wait for all clients.

Execute the script - totp2fa.py

  • Run python3 totp2fa.py

Execute the script - onpremise.py

  • Run python3 onpremise.py

Lxc - useful commands

  • List instances: lxc list
  • Log into lxc instance: lxc exec centos -- sudo /bin/bash
  • Execute command on the instance: lxc exec instanceName --verbose -- command ie. lxc exec ubuntu --verbose -- curl -o rport-installer.sh https://pairing.rport.io/EusXB6
  • Stop/delete instance: lxc stop centos, lxc delete centos
  • Copy file onto instance: lxc file push myfile.zip instanceName/root/

rport-e2e-tests's People

Contributors

rafalf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.