GithubHelp home page GithubHelp logo

grdumas / ovsqe_results Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amitsupugade/ovsqe_results

0.0 0.0 0.0 30 KB

API to import performance test results to google sheet.

Python 100.00%

ovsqe_results's Introduction

ovsqe_results

  • API to import OVSQE test results to google sheets

  • 'GoogleSheet' class can be used to create, delete, modify, add data to google sheet.

  • 'GoogleDrive' class can be used to search spreadsheet in google drive by its name.

  • 'OffloadResults' can be used to upload results of ovs offload tests to google sheets. It checks to see if result sheet exists in google drive, if exists, it will update results in that sheet if not, it will create new sheet and update results in that sheet.

  • You need to write script similar to OffloadResults.py as per your need to upload test results in Google sheet. Kindly refer wiki page for guidelines.

How to use

  • Run setup script below

  • clone this api repository and cd to the repository

  • Download 'client_secret.json' and 'token.json' files from netqe infra server in bos lab

  • Run script to import results

Examples

To upload OVS OFFLOAD results

result=()
results+=(64 1 164888 22.90 18.80 24.20 164999 33.90 28.80 344.20)
python OffloadResult.py --result "Test Result upload" --ovs "openvswitch-2.9.0-56.el7fdp.x86_64" --topo "1pf2vf" --data "${results[@]}"

Setup script

cat <<'EOT' >> /etc/yum.repos.d/python34.repo
[centos-sclo-rh]
name=CentOS-7 - SCLo rh
baseurl=http://mirror.centos.org/centos/7/sclo/$basearch/rh/
gpgcheck=0
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
EOT

yum -y install $(echo "
rh-python34
rh-python34-python-tkinter
" | grep -v ^#)

yum -y install scl-utils
scl enable rh-python34 bash

pip install --upgrade google-api-python-client oauth2client

Upload your results

  • If you want to use this api to upload your results to Google sheet, you need to write a python script.

  • Kindly refer wiki page for guidelines to write scripts to upload your results

ovsqe_results's People

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.