You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.
This app provides RESTFul APIs to Poseidonos System
Pre-Requisites
go v1.18+
IP Address of Mellanox Port should be set in the file script/run_os.sh (eg: IP=10.100.11.7)
POS
The POS should be installed and running. POS binary is assumed to be available at /usr/local/bin
Config File
config.yaml file should be in the same location as the executable file (e.g src/dagent/bin/). If there is no config file, D-Agent will use default values.
Management applications uses Nginx and it will forward D-Agent API requests to port 3000 port.
All API has common request scheme except GET method.
{
"param":{
// Ref. each API command
}
}
API Spec
src/dagent/doc/api.html
src/dagent/doc/api.md
Error Code
src/dagent/doc/events.yaml
Newman
Installation
Newman is a node.js pkg and distributed by npm so you need to install node.js and npm.
Install a newman using npm. (Install globally)
$npm install newman -g
How to use
$ cd src/dagent
$ newman run postman/D-Agent.postman_collection.json -e postman/D-Agent.postman_environment.json -r junit --reporter-junit-export ./result.xml
You have to prepare collection and environment file which are exported from Postman.
Put a collection file after "run" and add an environment file using option "-e".
You can report the test result with JUnit format and it can be using option "-r junit" and make a specific xml formatted file like "--reporter-junit-export result.xml".