Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Host group services postman tests updated (#5425)
Browse files Browse the repository at this point in the history
* Host group services postman tests updated

* Error cleaned
  • Loading branch information
mariegallardo authored and loiclau committed Jul 10, 2017
1 parent 592cceb commit 579c4fe
Show file tree
Hide file tree
Showing 2 changed files with 272 additions and 0 deletions.
248 changes: 248 additions & 0 deletions tests/rest_api/rest_api.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -35427,6 +35427,130 @@
},
"response": []
},
{
"name": "Setparam contact_additive_inheritance",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"tests[\"Status code is 200\"] = responseCode.code === 200;"
]
}
}
],
"request": {
"url": {
"raw": "http://{{url}}/centreon/api/index.php?action=action&object=centreon_clapi",
"protocol": "http",
"host": [
"{{url}}"
],
"path": [
"centreon",
"api",
"index.php"
],
"query": [
{
"key": "action",
"value": "action",
"equals": true,
"description": ""
},
{
"key": "object",
"value": "centreon_clapi",
"equals": true,
"description": ""
}
],
"variable": []
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
},
{
"key": "centreon-auth-token",
"value": "{{token}}",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"setparam\",\n \"object\": \"service\",\n \"values\": \"{{host_name}};{{service_description}};contact_additive_inheritance;{{service_contact_additive_inheritance}}\"\n}"
},
"description": ""
},
"response": []
},
{
"name": "Setparam cg_additive_inheritance",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"tests[\"Status code is 200\"] = responseCode.code === 200;"
]
}
}
],
"request": {
"url": {
"raw": "http://{{url}}/centreon/api/index.php?action=action&object=centreon_clapi",
"protocol": "http",
"host": [
"{{url}}"
],
"path": [
"centreon",
"api",
"index.php"
],
"query": [
{
"key": "action",
"value": "action",
"equals": true,
"description": ""
},
{
"key": "object",
"value": "centreon_clapi",
"equals": true,
"description": ""
}
],
"variable": []
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
},
{
"key": "centreon-auth-token",
"value": "{{token}}",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"setparam\",\n \"object\": \"service\",\n \"values\": \"{{host_name}};{{service_description}};cg_additive_inheritance;{{service_cg_additive_inheritance}}\"\n}"
},
"description": ""
},
"response": []
},
{
"name": "Setparam notifications_enabled",
"event": [
Expand Down Expand Up @@ -39608,6 +39732,130 @@
},
"response": []
},
{
"name": "Setparam contact_additive_inheritance",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"tests[\"Status code is 200\"] = responseCode.code === 200;"
]
}
}
],
"request": {
"url": {
"raw": "http://{{url}}/centreon/api/index.php?action=action&object=centreon_clapi",
"protocol": "http",
"host": [
"{{url}}"
],
"path": [
"centreon",
"api",
"index.php"
],
"query": [
{
"key": "action",
"value": "action",
"equals": true,
"description": ""
},
{
"key": "object",
"value": "centreon_clapi",
"equals": true,
"description": ""
}
],
"variable": []
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
},
{
"key": "centreon-auth-token",
"value": "{{token}}",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"setparam\",\n \"object\": \"hgservice\",\n \"values\": \"{{hg_name}};{{hgservice_description}};contact_additive_inheritance;{{hgservice_contact_additive_inheritance}}\"\n}"
},
"description": ""
},
"response": []
},
{
"name": "Setparam cg_additive_inheritance",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"tests[\"Status code is 200\"] = responseCode.code === 200;"
]
}
}
],
"request": {
"url": {
"raw": "http://{{url}}/centreon/api/index.php?action=action&object=centreon_clapi",
"protocol": "http",
"host": [
"{{url}}"
],
"path": [
"centreon",
"api",
"index.php"
],
"query": [
{
"key": "action",
"value": "action",
"equals": true,
"description": ""
},
{
"key": "object",
"value": "centreon_clapi",
"equals": true,
"description": ""
}
],
"variable": []
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
},
{
"key": "centreon-auth-token",
"value": "{{token}}",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"setparam\",\n \"object\": \"hgservice\",\n \"values\": \"{{hg_name}};{{hgservice_description}};cg_additive_inheritance;{{hgservice_cg_additive_inheritance}}\"\n}"
},
"description": ""
},
"response": []
},
{
"name": "Setparam notifications_enabled",
"event": [
Expand Down
24 changes: 24 additions & 0 deletions tests/rest_api/rest_api.postman_environment.json
Original file line number Diff line number Diff line change
Expand Up @@ -3085,6 +3085,30 @@
"key": "mib_path",
"value": "/usr/share/centreon/IF-MIB.txt",
"type": "text"
},
{
"enabled": true,
"key": "service_contact_additive_inheritance",
"value": "1",
"type": "text"
},
{
"enabled": true,
"key": "service_cg_additive_inheritance",
"value": "1",
"type": "text"
},
{
"enabled": true,
"key": "hgservice_contact_additive_inheritance",
"value": "1",
"type": "text"
},
{
"enabled": true,
"key": "hgservice_cg_additive_inheritance",
"value": "1",
"type": "text"
}
],
"timestamp": 1497354245340,
Expand Down

0 comments on commit 579c4fe

Please sign in to comment.