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

Commit

Permalink
fix(CI): fix clapi's acceptance test on new menu (#7323)
Browse files Browse the repository at this point in the history
* fix(TA): fix test json
* fix(TA): removing deleted menu titles
  • Loading branch information
sc979 authored Mar 22, 2019
1 parent 3a245d9 commit fc2b81a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 220 deletions.
2 changes: 0 additions & 2 deletions tests/clapi_export/clapi-configuration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ ACLMENU;GRANTRW;test_access-group;0;Administration;Parameters;LDAP;
ACLMENU;GRANTRW;test_access-group;0;Administration;Parameters;RRDTool;
ACLMENU;GRANTRW;test_access-group;0;Administration;Parameters;Debug;
ACLMENU;GRANTRW;test_access-group;0;Administration;Parameters;Knowledge Base;
ACLMENU;GRANTRW;test_access-group;0;Administration;Parameters;CSS;
ACLMENU;GRANTRW;test_access-group;0;Administration;Parameters;Backup;
ACLMENU;GRANTRW;test_access-group;0;Administration;Parameters;Options;
ACLMENU;GRANTRW;test_access-group;0;Administration;Parameters;Data;
Expand All @@ -75,7 +74,6 @@ ACLMENU;GRANTRW;test_access-group;0;Administration;ACL;Actions Access;
ACLMENU;GRANTRW;test_access-group;0;Administration;ACL;
ACLMENU;GRANTRW;test_access-group;0;Administration;ACL;Reload ACL;
ACLMENU;GRANTRW;test_access-group;0;Administration;Logs;
ACLMENU;GRANTRW;test_access-group;0;Administration;Logs;Visualisation;
ACLMENU;GRANTRW;test_access-group;0;Administration;Sessions;
ACLMENU;GRANTRW;test_access-group;0;Administration;About;
ACLMENU;GRANTRW;test_access-group;0;Administration;Platform Status;Broker Statistics;
Expand Down
220 changes: 2 additions & 218 deletions tests/rest_api/rest_api.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -48068,7 +48068,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"grantrw\",\n \"object\": \"aclmenu\",\n \"values\": \"{{aclmenu_name}};0;monitoring;performances;metrics\"\n}"
"raw": "{\n \"action\": \"grantrw\",\n \"object\": \"aclmenu\",\n \"values\": \"{{aclmenu_name}};0;monitoring;performances;virtual metrics\"\n}"
},
"url": {
"raw": "http://{{url}}/centreon/api/index.php?action=action&object=centreon_clapi",
Expand Down Expand Up @@ -48122,7 +48122,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"revoke\",\n \"object\": \"aclmenu\",\n \"values\": \"{{aclmenu_name}};1;monitoring;performances;metrics\"\n}"
"raw": "{\n \"action\": \"revoke\",\n \"object\": \"aclmenu\",\n \"values\": \"{{aclmenu_name}};1;monitoring;performances;virtual metrics\"\n}"
},
"url": {
"raw": "http://{{url}}/centreon/api/index.php?action=action&object=centreon_clapi",
Expand Down Expand Up @@ -57491,114 +57491,6 @@
},
"response": []
},
{
"name": "Grantrw CSS",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"tests[\"Status code is 200\"] = responseCode.code === 200;"
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "centreon-auth-token",
"value": "{{token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"grantrw\",\n \"object\": \"aclmenu\",\n \"values\": \"{{aclmenu_name}};0;administration;parameters;CSS\"\n}"
},
"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"
},
{
"key": "object",
"value": "centreon_clapi"
}
]
}
},
"response": []
},
{
"name": "Revoke CSS",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"tests[\"Status code is 200\"] = responseCode.code === 200;"
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "centreon-auth-token",
"value": "{{token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"revoke\",\n \"object\": \"aclmenu\",\n \"values\": \"{{aclmenu_name}};1;administration;parameters;CSS\"\n}"
},
"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"
},
{
"key": "object",
"value": "centreon_clapi"
}
]
}
},
"response": []
},
{
"name": "Grantrw backup",
"event": [
Expand Down Expand Up @@ -59111,114 +59003,6 @@
},
"response": []
},
{
"name": "Grantrw visualisation",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"tests[\"Status code is 200\"] = responseCode.code === 200;"
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "centreon-auth-token",
"value": "{{token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"grantrw\",\n \"object\": \"aclmenu\",\n \"values\": \"{{aclmenu_name}};0;administration;logs;visualisation\"\n}"
},
"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"
},
{
"key": "object",
"value": "centreon_clapi"
}
]
}
},
"response": []
},
{
"name": "Revoke visualisation",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"tests[\"Status code is 200\"] = responseCode.code === 200;"
]
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "centreon-auth-token",
"value": "{{token}}"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"action\": \"revoke\",\n \"object\": \"aclmenu\",\n \"values\": \"{{aclmenu_name}};1;administration;logs;visualisation\"\n}"
},
"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"
},
{
"key": "object",
"value": "centreon_clapi"
}
]
}
},
"response": []
},
{
"name": "Grantrw sessions",
"event": [
Expand Down

0 comments on commit fc2b81a

Please sign in to comment.