From d90d6e031fc6380af5407fd6061d10f280893cc2 Mon Sep 17 00:00:00 2001 From: Adam Malone Date: Sun, 24 May 2020 10:44:33 +1000 Subject: [PATCH] Changes the role fixture to an updated one from the API. (#69) --- .../Endpoints/Permissions/getPermissions.json | 353 ++++++++++++++++-- 1 file changed, 316 insertions(+), 37 deletions(-) diff --git a/tests/Fixtures/Endpoints/Permissions/getPermissions.json b/tests/Fixtures/Endpoints/Permissions/getPermissions.json index 588502d9..053b4943 100644 --- a/tests/Fixtures/Endpoints/Permissions/getPermissions.json +++ b/tests/Fixtures/Endpoints/Permissions/getPermissions.json @@ -1,39 +1,318 @@ { - "total": 4, - "_links": { - "self": { - "href": "{baseUri}/permissions" - }, - "parent": { - "href": "{baseUri}" - } - }, - "_embedded": { - "items": [ - { - "name": "administer alerts", - "label": "Manage Insight alerts", - "description": "Grants the ability to ignore alerts and change settings on a Drupal website using the \"Fix it Now\" feature.", - "group_label": "Insight" - }, - { - "name": "deploy to non-prod", - "label": "Pull and deploy code, files, or databases to non-production environments", - "description": "Grants the ability to enable or disable live development and non-production work.", - "group_label": "Workflow" - }, - { - "name": "deploy to prod", - "label": "Deploy code, files, or databases to the production environment", - "description": null, - "group_label": "Workflow" - }, - { - "name": "pull from prod", - "label": "Pull files or databases from the production environment", - "description": null, - "group_label": "Workflow" - } - ] + "total": 53, + "_links": { + "self": { + "href": "https://cloud.acquia.com/api/permissions" } -} \ No newline at end of file + }, + "_embedded": { + "items": [ + { + "name": "administer alerts", + "label": "Manage Insight alerts", + "description": "Grants the ability to ignore alerts and change settings on a Drupal website using the \"Fix it Now\" feature.", + "group_label": "Insight" + }, + { + "name": "revoke insight installs", + "label": "Revoke Insight sites", + "description": "Grants the ability to revoke sites so they can no longer submit data.", + "group_label": "Insight" + }, + { + "name": "deploy to non-prod", + "label": "Pull and deploy code, files, or databases to non-production environments", + "description": "Grants the ability to enable or disable live development and non-production work.", + "group_label": "Workflow" + }, + { + "name": "deploy to prod", + "label": "Deploy code, files, or databases to the production environment", + "description": null, + "group_label": "Workflow" + }, + { + "name": "pull from prod", + "label": "Pull files or databases from the production environment", + "description": null, + "group_label": "Workflow" + }, + { + "name": "move file to non-prod", + "label": "Move files to non-production environments", + "description": null, + "group_label": "Workflow" + }, + { + "name": "move file to prod", + "label": "Move files to the production environment", + "description": null, + "group_label": "Workflow" + }, + { + "name": "move file from prod", + "label": "Move files from production environments", + "description": null, + "group_label": "Workflow" + }, + { + "name": "move file from non-prod", + "label": "Move files from non-production environments", + "description": null, + "group_label": "Workflow" + }, + { + "name": "clear varnish on non-prod", + "label": "Clear Varnish cache for non-production environments", + "description": null, + "group_label": "Workflow" + }, + { + "name": "clear varnish on prod", + "label": "Clear Varnish cache for the production environment", + "description": null, + "group_label": "Workflow" + }, + { + "name": "configure prod env", + "label": "Configure production environment", + "description": null, + "group_label": "Workflow" + }, + { + "name": "configure non-prod env", + "label": "Configure non-production environments", + "description": null, + "group_label": "Workflow" + }, + { + "name": "add an environment", + "label": "Add an environment", + "description": null, + "group_label": "Workflow" + }, + { + "name": "delete an environment", + "label": "Delete an environment", + "description": null, + "group_label": "Workflow" + }, + { + "name": "administer domain non-prod", + "label": "Add or remove domains for non-production environments", + "description": null, + "group_label": "Domains" + }, + { + "name": "administer domain prod", + "label": "Add or remove domains for the production environment", + "description": null, + "group_label": "Domains" + }, + { + "name": "administer ssl prod", + "label": "Add or remove SSL certificates for the production environment", + "description": null, + "group_label": "Domains" + }, + { + "name": "administer ssl non-prod", + "label": "Add or remove SSL certificates for the non-production environments", + "description": null, + "group_label": "Domains" + }, + { + "name": "reboot server", + "label": "Reboot server", + "description": null, + "group_label": "Server administration" + }, + { + "name": "resize server", + "label": "Resize server", + "description": "Increasing the size of your server costs money.", + "group_label": "Server administration" + }, + { + "name": "suspend server", + "label": "Suspend server", + "description": null, + "group_label": "Server administration" + }, + { + "name": "configure server", + "label": "Configure server", + "description": null, + "group_label": "Server administration" + }, + { + "name": "download logs non-prod", + "label": "Download logs for non-production environments", + "description": null, + "group_label": "Logs" + }, + { + "name": "download logs prod", + "label": "Download logs for the production environment", + "description": null, + "group_label": "Logs" + }, + { + "name": "add database", + "label": "Add a database", + "description": null, + "group_label": "Databases" + }, + { + "name": "remove database", + "label": "Remove a database", + "description": null, + "group_label": "Databases" + }, + { + "name": "view database connection", + "label": "View database connection details (username, password, or hostname)", + "description": null, + "group_label": "Databases" + }, + { + "name": "download db backup non-prod", + "label": "Download database backups for non-production environments", + "description": null, + "group_label": "Databases" + }, + { + "name": "download db backup prod", + "label": "Download database backups for the production environment", + "description": null, + "group_label": "Databases" + }, + { + "name": "create db backup non-prod", + "label": "Create database backups for non-production environments", + "description": null, + "group_label": "Databases" + }, + { + "name": "create db backup prod", + "label": "Create database backups for the production environment", + "description": null, + "group_label": "Databases" + }, + { + "name": "restore db backup non-prod", + "label": "Restore database backups for non-production environments", + "description": null, + "group_label": "Databases" + }, + { + "name": "restore db backup prod", + "label": "Restore database backups for the production environment", + "description": null, + "group_label": "Databases" + }, + { + "name": "administer team", + "label": "Add or remove a user of a team", + "description": "Granting this permission will give any user with this role full permissions on this team.", + "group_label": "Administration" + }, + { + "name": "access cloud api", + "label": "Access the Cloud API", + "description": "Grants the ability to use the API and bypass all other permissions via command line tools.", + "group_label": "Administration" + }, + { + "name": "administer cron non-prod", + "label": "Modify cron tasks for non-production environments", + "description": null, + "group_label": "Cron" + }, + { + "name": "administer cron prod", + "label": "Modify cron tasks for the production environment", + "description": null, + "group_label": "Cron" + }, + { + "name": "search limit increase", + "label": "Increase the search index limit for a subscription", + "description": null, + "group_label": "Search" + }, + { + "name": "search schema edit", + "label": "Edit the search schema for a subscription", + "description": null, + "group_label": "Search" + }, + { + "name": "create support ticket", + "label": "Create a support ticket", + "description": null, + "group_label": "Support" + }, + { + "name": "edit any support ticket", + "label": "View and edit any support tickets for a subscription", + "description": null, + "group_label": "Support" + }, + { + "name": "administer ssh keys", + "label": "Manage SSH keys", + "description": "Grants the ability to use SSH and bypass all other permissions via command line tools.", + "group_label": "SSH keys" + }, + { + "name": "view build plans", + "label": "View Build plans", + "description": null, + "group_label": "Build" + }, + { + "name": "edit build plans", + "label": "Edit Build plans", + "description": null, + "group_label": "Build" + }, + { + "name": "run build plans", + "label": "Run Build plans", + "description": null, + "group_label": "Build" + }, + { + "name": "add ssh key to git", + "label": "Add SSH key to git repository", + "description": null, + "group_label": "SSH keys" + }, + { + "name": "add ssh key to non-prod", + "label": "Add SSH key to non-production environments", + "description": null, + "group_label": "SSH keys" + }, + { + "name": "add ssh key to prod", + "label": "Add SSH key to the production environment", + "description": null, + "group_label": "SSH keys" + }, + { + "name": "view remote administration", + "label": "View Remote Administration", + "description": "This permission is only relevant if your subscription has remote administration.", + "group_label": "Administration" + }, + { + "name": "edit remote administration", + "label": "Edit Remote Administration", + "description": "This permission is only relevant if your subscription has remote administration.", + "group_label": "Administration" + } + ] + } +}