From c73c962ed2636b97fd3d0a5071fdcda3430e01a4 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 6 Mar 2020 07:52:40 +0100 Subject: [PATCH 1/2] tests_authentic: format test data (#40407) --- .../data_authentic_export_site.json | 932 +++++++++--------- 1 file changed, 466 insertions(+), 466 deletions(-) diff --git a/tests_authentic/data_authentic_export_site.json b/tests_authentic/data_authentic_export_site.json index d55988b..25084d0 100644 --- a/tests_authentic/data_authentic_export_site.json +++ b/tests_authentic/data_authentic_export_site.json @@ -1,480 +1,480 @@ { - "ous": [ - { - "username_is_unique": false, - "validate_emails": false, - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "default": true, - "description": "", - "email_is_unique": false, - "slug": "default", - "name": "Collectivit\u00e9 par d\u00e9faut" - } - ], - "roles": [ - { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "hobo" + "ous" : [ + { + "default" : true, + "description" : "", + "email_is_unique" : false, + "name" : "Collectivité par défaut", + "slug" : "default", + "username_is_unique" : false, + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff", + "validate_emails" : false + } + ], + "roles" : [ + { + "attributes" : [ + { + "kind" : "string", + "name" : "is_superuser", + "value" : "true" + } + ], + "description" : "", + "external_id" : "", + "name" : "Administrateur de Hobo", + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service" : { + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" }, - "name": "Administrateur de Hobo", - "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" + "slug" : "hobo" + }, + "slug" : "_a2-hobo-superuser", + "uuid" : "25f33158b7e2449b9a5b00dbc57bf416" + }, + { + "attributes" : [ + { + "kind" : "string", + "name" : "is_superuser", + "value" : "true" + } + ], + "description" : "", + "external_id" : "", + "name" : "Administrateur de Compte citoyen", + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service" : { + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" }, - "external_id": "", - "slug": "_a2-hobo-superuser", - "uuid": "25f33158b7e2449b9a5b00dbc57bf416" - }, - { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "portal" + "slug" : "portal" + }, + "slug" : "_a2-hobo-superuser", + "uuid" : "84b3b1ba76e44bcdb4fd4437c448a981" + }, + { + "attributes" : [ + { + "kind" : "string", + "name" : "is_superuser", + "value" : "true" + } + ], + "description" : "", + "external_id" : "", + "name" : "Administrateur de Démarches", + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service" : { + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" }, - "name": "Administrateur de Compte citoyen", - "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" + "slug" : "eservices" + }, + "slug" : "_a2-hobo-superuser", + "uuid" : "9054a61ccf684396b38189f1ca1ec087" + }, + { + "attributes" : [ + { + "kind" : "string", + "name" : "is_superuser", + "value" : "true" + } + ], + "description" : "", + "external_id" : "", + "name" : "Administrateur de Portail agent", + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service" : { + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" }, - "external_id": "", - "slug": "_a2-hobo-superuser", - "uuid": "84b3b1ba76e44bcdb4fd4437c448a981" - }, - { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "eservices" + "slug" : "portal-agent" + }, + "slug" : "_a2-hobo-superuser", + "uuid" : "e6e22e5c0ca04ac0bf3b50d88eafe6d5" + }, + { + "attributes" : [ + { + "kind" : "string", + "name" : "is_superuser", + "value" : "true" + } + ], + "description" : "", + "external_id" : "", + "name" : "Administrateur de Passerelle", + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service" : { + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" }, - "name": "Administrateur de D\u00e9marches", - "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" + "slug" : "passerelle" + }, + "slug" : "_a2-hobo-superuser", + "uuid" : "243f58712aa248e9b27aae669341c156" + }, + { + "description" : "", + "external_id" : "", + "name" : "Administrateur du rôle « Debug eo »", + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "permissions" : [ + { + "operation" : { + "slug" : "view" + }, + "ou" : null, + "target" : { + "app_label" : "custom_user", + "model" : "user" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } }, - "external_id": "", - "slug": "_a2-hobo-superuser", - "uuid": "9054a61ccf684396b38189f1ca1ec087" - }, - { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "portal-agent" + { + "operation" : { + "slug" : "admin" + }, + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "target" : { + "name" : "Debug eo", + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service" : null, + "slug" : "debug-eo", + "uuid" : "18e7bf78dc9a432396a99f32060052ec" + }, + "target_ct" : { + "app_label" : "a2_rbac", + "model" : "role" + } }, - "name": "Administrateur de Portail agent", - "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" + { + "operation" : { + "slug" : "change" + }, + "ou" : null, + "target" : { + "name" : "Administrateur du rôle « Debug eo »", + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service" : null, + "slug" : "_a2-managers-of-role-debug-eo", + "uuid" : "3049444b35874b3b9a8377ad2f10b8b6" + }, + "target_ct" : { + "app_label" : "a2_rbac", + "model" : "role" + } + } + ], + "service" : null, + "slug" : "_a2-managers-of-role-debug-eo", + "uuid" : "3049444b35874b3b9a8377ad2f10b8b6" + }, + { + "attributes" : [ + { + "kind" : "json", + "name" : "emails_to_members", + "value" : "false" }, - "external_id": "", - "slug": "_a2-hobo-superuser", - "uuid": "e6e22e5c0ca04ac0bf3b50d88eafe6d5" - }, - { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "passerelle" + { + "kind" : "json", + "name" : "details", + "value" : "\"\"" }, - "name": "Administrateur de Passerelle", - "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" + { + "kind" : "json", + "name" : "emails", + "value" : "[]" + } + ], + "description" : "", + "external_id" : "", + "name" : "Debug eo", + "ou" : { + "name" : "Collectivité par défaut", + "slug" : "default", + "uuid" : "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service" : null, + "slug" : "debug-eo", + "uuid" : "18e7bf78dc9a432396a99f32060052ec" + }, + { + "description" : "", + "external_id" : "", + "name" : "Administrateur", + "ou" : null, + "parents" : [ + { + "name" : "Administrateur des entités", + "ou" : null, + "service" : null, + "slug" : "_a2-administrateur-des-entites", + "uuid" : "a1ff1b3da88f47cea91e344998dfdfbf" }, - "external_id": "", - "slug": "_a2-hobo-superuser", - "uuid": "243f58712aa248e9b27aae669341c156" - }, - { - "description": "", - "service": null, - "name": "Administrateur du r\u00f4le \u00ab\u00a0Debug eo\u00a0\u00bb", - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" + { + "name" : "Administrateur des rôles", + "ou" : null, + "service" : null, + "slug" : "_a2-administrateur-des-roles", + "uuid" : "8dd625b74cff40aa8531d7d72616550e" }, - "permissions": [ - { - "operation": { - "slug": "view" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "user", - "app_label": "custom_user" - } - }, - { - "operation": { - "slug": "admin" - }, - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "target_ct": { - "model": "role", - "app_label": "a2_rbac" - }, - "target": { - "name": "Debug eo", - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "uuid": "18e7bf78dc9a432396a99f32060052ec", - "service": null, - "slug": "debug-eo" - } - }, - { - "operation": { - "slug": "change" - }, - "ou": null, - "target_ct": { - "model": "role", - "app_label": "a2_rbac" - }, - "target": { - "name": "Administrateur du r\u00f4le \u00ab\u00a0Debug eo\u00a0\u00bb", - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "uuid": "3049444b35874b3b9a8377ad2f10b8b6", - "service": null, - "slug": "_a2-managers-of-role-debug-eo" - } - } - ], - "external_id": "", - "slug": "_a2-managers-of-role-debug-eo", - "uuid": "3049444b35874b3b9a8377ad2f10b8b6" - }, - { - "description": "", - "service": null, - "name": "Debug eo", - "attributes": [ - { - "kind": "json", - "name": "emails_to_members", - "value": "false" - }, - { - "kind": "json", - "name": "details", - "value": "\"\"" - }, - { - "kind": "json", - "name": "emails", - "value": "[]" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" + { + "name" : "Administrateur des utilisateurs", + "ou" : null, + "service" : null, + "slug" : "_a2-administrateur-des-utilisateurs", + "uuid" : "4ab5effedc404fb1bcba4d21ee89b719" + } + ], + "permissions" : [ + { + "operation" : { + "slug" : "change" + }, + "ou" : null, + "target" : { + "name" : "Administrateur", + "ou" : null, + "service" : null, + "slug" : "_a2-manager", + "uuid" : "81a8708382bb4e8ea12ed0e172aa48b9" + }, + "target_ct" : { + "app_label" : "a2_rbac", + "model" : "role" + } + } + ], + "service" : null, + "slug" : "_a2-manager", + "uuid" : "81a8708382bb4e8ea12ed0e172aa48b9" + }, + { + "description" : "", + "external_id" : "", + "name" : "Administrateur des entités", + "ou" : null, + "permissions" : [ + { + "operation" : { + "slug" : "view" + }, + "ou" : null, + "target" : { + "app_label" : "a2_rbac", + "model" : "organizationalunit" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } }, - "external_id": "", - "slug": "debug-eo", - "uuid": "18e7bf78dc9a432396a99f32060052ec" - }, - { - "description": "", - "service": null, - "name": "Administrateur", - "parents": [ - { - "name": "Administrateur des entit\u00e9s", - "ou": null, - "uuid": "a1ff1b3da88f47cea91e344998dfdfbf", - "service": null, - "slug": "_a2-administrateur-des-entites" - }, - { - "name": "Administrateur des r\u00f4les", - "ou": null, - "uuid": "8dd625b74cff40aa8531d7d72616550e", - "service": null, - "slug": "_a2-administrateur-des-roles" - }, - { - "name": "Administrateur des utilisateurs", - "ou": null, - "uuid": "4ab5effedc404fb1bcba4d21ee89b719", - "service": null, - "slug": "_a2-administrateur-des-utilisateurs" - } - ], - "ou": null, - "permissions": [ - { - "operation": { - "slug": "change" - }, - "ou": null, - "target_ct": { - "model": "role", - "app_label": "a2_rbac" - }, - "target": { - "name": "Administrateur", - "ou": null, - "uuid": "81a8708382bb4e8ea12ed0e172aa48b9", - "service": null, - "slug": "_a2-manager" - } - } - ], - "external_id": "", - "slug": "_a2-manager", - "uuid": "81a8708382bb4e8ea12ed0e172aa48b9" - }, - { - "description": "", - "service": null, - "name": "Administrateur des entit\u00e9s", - "ou": null, - "permissions": [ - { - "operation": { - "slug": "view" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" - } - }, - { - "operation": { - "slug": "admin" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" - } - }, - { - "operation": { - "slug": "search" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" - } - } - ], - "external_id": "", - "slug": "_a2-administrateur-des-entites", - "uuid": "a1ff1b3da88f47cea91e344998dfdfbf" - }, - { - "description": "", - "service": null, - "name": "Administrateur des r\u00f4les", - "ou": null, - "permissions": [ - { - "operation": { - "slug": "view" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "user", - "app_label": "custom_user" - } - }, - { - "operation": { - "slug": "view" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" - } - }, - { - "operation": { - "slug": "admin" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "role", - "app_label": "a2_rbac" - } - }, - { - "operation": { - "slug": "search" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" - } - } - ], - "external_id": "", - "slug": "_a2-administrateur-des-roles", - "uuid": "8dd625b74cff40aa8531d7d72616550e" - }, - { - "description": "", - "service": null, - "name": "Administrateur des utilisateurs", - "ou": null, - "permissions": [ - { - "operation": { - "slug": "view" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" - } - }, - { - "operation": { - "slug": "admin" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "user", - "app_label": "custom_user" - } - }, - { - "operation": { - "slug": "search" - }, - "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, - "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" - } - } - ], - "external_id": "", - "slug": "_a2-administrateur-des-utilisateurs", - "uuid": "4ab5effedc404fb1bcba4d21ee89b719" - } - ] + { + "operation" : { + "slug" : "admin" + }, + "ou" : null, + "target" : { + "app_label" : "a2_rbac", + "model" : "organizationalunit" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } + }, + { + "operation" : { + "slug" : "search" + }, + "ou" : null, + "target" : { + "app_label" : "a2_rbac", + "model" : "organizationalunit" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } + } + ], + "service" : null, + "slug" : "_a2-administrateur-des-entites", + "uuid" : "a1ff1b3da88f47cea91e344998dfdfbf" + }, + { + "description" : "", + "external_id" : "", + "name" : "Administrateur des rôles", + "ou" : null, + "permissions" : [ + { + "operation" : { + "slug" : "view" + }, + "ou" : null, + "target" : { + "app_label" : "custom_user", + "model" : "user" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } + }, + { + "operation" : { + "slug" : "view" + }, + "ou" : null, + "target" : { + "app_label" : "a2_rbac", + "model" : "organizationalunit" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } + }, + { + "operation" : { + "slug" : "admin" + }, + "ou" : null, + "target" : { + "app_label" : "a2_rbac", + "model" : "role" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } + }, + { + "operation" : { + "slug" : "search" + }, + "ou" : null, + "target" : { + "app_label" : "a2_rbac", + "model" : "organizationalunit" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } + } + ], + "service" : null, + "slug" : "_a2-administrateur-des-roles", + "uuid" : "8dd625b74cff40aa8531d7d72616550e" + }, + { + "description" : "", + "external_id" : "", + "name" : "Administrateur des utilisateurs", + "ou" : null, + "permissions" : [ + { + "operation" : { + "slug" : "view" + }, + "ou" : null, + "target" : { + "app_label" : "a2_rbac", + "model" : "organizationalunit" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } + }, + { + "operation" : { + "slug" : "admin" + }, + "ou" : null, + "target" : { + "app_label" : "custom_user", + "model" : "user" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } + }, + { + "operation" : { + "slug" : "search" + }, + "ou" : null, + "target" : { + "app_label" : "a2_rbac", + "model" : "organizationalunit" + }, + "target_ct" : { + "app_label" : "contenttypes", + "model" : "contenttype" + } + } + ], + "service" : null, + "slug" : "_a2-administrateur-des-utilisateurs", + "uuid" : "4ab5effedc404fb1bcba4d21ee89b719" + } + ] } -- 2.24.0