-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd_jobs.sh
executable file
·11 lines (11 loc) · 1.04 KB
/
add_jobs.sh
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
PORT='5000'
curl http://localhost:${PORT}/environments/ -H "Content-Type:application/json" -d '{"hostname": "foo.bar.com", "operating_system": "CentOS"}' -X POST -v
curl http://localhost:${PORT}/environments/ -H "Content-Type:application/json" -d '{"hostname": "baz.bar.com", "operating_system": "Debian"}' -X POST -v
curl http://localhost:${PORT}/environments/ -H "Content-Type:application/json" -d '{"hostname": "boo.bar.com", "operating_system": "Fedora"}' -X POST -v
curl http://localhost:${PORT}/environments/3 -X DELETE -v
curl http://localhost:${PORT}/jobs/ -H "Content-Type:application/json" -d '{"requester": "lmr", "environment": 1, "test": "gdbtest.py"}' -X POST -v
curl http://localhost:${PORT}/jobs/ -H "Content-Type:application/json" -d '{"requester": "lmr", "environment": 1, "test": "gdbtest.py"}' -X POST -v
curl http://localhost:${PORT}/jobs/ -H "Content-Type:application/json" -d '{"requester": "lmr", "environment": 2, "test": "gdbtest.py"}' -X POST -v
curl http://localhost:${PORT}/jobs/
curl http://localhost:${PORT}/environments/