Coder Social home page Coder Social logo

telemetry's Introduction

telemetry

This repository is the test scripts for Openbmc telemetry service. The original script is developed by Postman, but Postman free plan have test run limitation. After I try the postman alternatives, all of them get cost which have test script function. So I deside move to python script, some of the alternative like HTTPie or Postcode can convert requests to python code easily. This repo shows move test scripts from Postman to Python is not hard thing.

Files

  • metric.postman_collection2.json, the collection export data from Postman
  • env.py, the utils for read data from collection export data. Include variables and request item.
  • myhttp.py, the python request helper for Openbmc. Disable SSL certificate verify fail as default.
  • test.py, unit test script for env module.
  • add_metric_report.py, test script for add metric report definition via redfish API.
  • del_metric_report.py, test script for delete metric report definition via redfish API.

Environment setup

You need an Arbel EVB and run Openbmc on it. And configure DUT IP address to 192.168.56.168 or change the IP address via set url in script.

Usage

python3 add_metric_report.py
python3 del_metric_report.py

Note. Set the metricReportN value in json file to change the add report number.

telemetry's People

Contributors

minimada avatar

Watchers

 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.