diff --git a/tests_authentic/data_authentic_export_site.json b/tests_authentic/data_authentic_export_site.json index d55988b..edf9004 100644 --- a/tests_authentic/data_authentic_export_site.json +++ b/tests_authentic/data_authentic_export_site.json @@ -1,237 +1,19 @@ { "ous": [ { - "username_is_unique": false, - "validate_emails": false, - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", "default": true, "description": "", "email_is_unique": false, + "name": "Collectivit\u00e9 par d\u00e9faut", "slug": "default", - "name": "Collectivit\u00e9 par d\u00e9faut" + "username_is_unique": false, + "uuid": "69b0a02cf58a4c71b1ae548f1375baff", + "validate_emails": false } ], "roles": [ { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "hobo" - }, - "name": "Administrateur de Hobo", "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "external_id": "", - "slug": "_a2-hobo-superuser", - "uuid": "25f33158b7e2449b9a5b00dbc57bf416" - }, - { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "portal" - }, - "name": "Administrateur de Compte citoyen", - "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "external_id": "", - "slug": "_a2-hobo-superuser", - "uuid": "84b3b1ba76e44bcdb4fd4437c448a981" - }, - { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "eservices" - }, - "name": "Administrateur de D\u00e9marches", - "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "external_id": "", - "slug": "_a2-hobo-superuser", - "uuid": "9054a61ccf684396b38189f1ca1ec087" - }, - { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "portal-agent" - }, - "name": "Administrateur de Portail agent", - "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "external_id": "", - "slug": "_a2-hobo-superuser", - "uuid": "e6e22e5c0ca04ac0bf3b50d88eafe6d5" - }, - { - "description": "", - "service": { - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "slug": "passerelle" - }, - "name": "Administrateur de Passerelle", - "attributes": [ - { - "kind": "string", - "name": "is_superuser", - "value": "true" - } - ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, - "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" - }, - "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", @@ -241,100 +23,229 @@ "kind": "json", "name": "emails", "value": "[]" + }, + { + "kind": "json", + "name": "emails_to_members", + "value": "false" } ], - "ou": { - "slug": "default", - "uuid": "69b0a02cf58a4c71b1ae548f1375baff", - "name": "Collectivit\u00e9 par d\u00e9faut" - }, + "description": "", "external_id": "", + "name": "Debug eo", + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service": null, "slug": "debug-eo", "uuid": "18e7bf78dc9a432396a99f32060052ec" }, { + "attributes": [ + { + "kind": "string", + "name": "is_superuser", + "value": "true" + } + ], "description": "", - "service": null, + "external_id": "", + "name": "Administrateur de Compte citoyen", + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service": { + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "slug": "portal" + }, + "slug": "_a2-hobo-superuser", + "uuid": "84b3b1ba76e44bcdb4fd4437c448a981" + }, + { + "attributes": [ + { + "kind": "string", + "name": "is_superuser", + "value": "true" + } + ], + "description": "", + "external_id": "", + "name": "Administrateur de D\u00e9marches", + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service": { + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "slug": "eservices" + }, + "slug": "_a2-hobo-superuser", + "uuid": "9054a61ccf684396b38189f1ca1ec087" + }, + { + "attributes": [ + { + "kind": "string", + "name": "is_superuser", + "value": "true" + } + ], + "description": "", + "external_id": "", + "name": "Administrateur de Hobo", + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service": { + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "slug": "hobo" + }, + "slug": "_a2-hobo-superuser", + "uuid": "25f33158b7e2449b9a5b00dbc57bf416" + }, + { + "attributes": [ + { + "kind": "string", + "name": "is_superuser", + "value": "true" + } + ], + "description": "", + "external_id": "", + "name": "Administrateur de Passerelle", + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service": { + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "slug": "passerelle" + }, + "slug": "_a2-hobo-superuser", + "uuid": "243f58712aa248e9b27aae669341c156" + }, + { + "attributes": [ + { + "kind": "string", + "name": "is_superuser", + "value": "true" + } + ], + "description": "", + "external_id": "", + "name": "Administrateur de Portail agent", + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service": { + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "slug": "portal-agent" + }, + "slug": "_a2-hobo-superuser", + "uuid": "e6e22e5c0ca04ac0bf3b50d88eafe6d5" + }, + { + "description": "", + "external_id": "", "name": "Administrateur", + "ou": null, "parents": [ { "name": "Administrateur des entit\u00e9s", "ou": null, - "uuid": "a1ff1b3da88f47cea91e344998dfdfbf", "service": null, - "slug": "_a2-administrateur-des-entites" + "slug": "_a2-administrateur-des-entites", + "uuid": "a1ff1b3da88f47cea91e344998dfdfbf" }, { "name": "Administrateur des r\u00f4les", "ou": null, - "uuid": "8dd625b74cff40aa8531d7d72616550e", "service": null, - "slug": "_a2-administrateur-des-roles" + "slug": "_a2-administrateur-des-roles", + "uuid": "8dd625b74cff40aa8531d7d72616550e" }, { "name": "Administrateur des utilisateurs", "ou": null, - "uuid": "4ab5effedc404fb1bcba4d21ee89b719", "service": null, - "slug": "_a2-administrateur-des-utilisateurs" + "slug": "_a2-administrateur-des-utilisateurs", + "uuid": "4ab5effedc404fb1bcba4d21ee89b719" } ], - "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" + "slug": "_a2-manager", + "uuid": "81a8708382bb4e8ea12ed0e172aa48b9" + }, + "target_ct": { + "app_label": "a2_rbac", + "model": "role" } } ], - "external_id": "", + "service": null, "slug": "_a2-manager", "uuid": "81a8708382bb4e8ea12ed0e172aa48b9" }, { "description": "", - "service": null, + "external_id": "", "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" + "app_label": "a2_rbac", + "model": "organizationalunit" + }, + "target_ct": { + "app_label": "contenttypes", + "model": "contenttype" } }, { @@ -342,66 +253,52 @@ "slug": "search" }, "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" + "app_label": "a2_rbac", + "model": "organizationalunit" + }, + "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" } } ], - "external_id": "", + "service": null, "slug": "_a2-administrateur-des-entites", "uuid": "a1ff1b3da88f47cea91e344998dfdfbf" }, { "description": "", - "service": null, + "external_id": "", "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" + "app_label": "a2_rbac", + "model": "role" + }, + "target_ct": { + "app_label": "contenttypes", + "model": "contenttype" } }, { @@ -409,52 +306,66 @@ "slug": "search" }, "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" + "app_label": "a2_rbac", + "model": "organizationalunit" + }, + "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": "view" + }, + "ou": null, + "target": { + "app_label": "custom_user", + "model": "user" + }, + "target_ct": { + "app_label": "contenttypes", + "model": "contenttype" } } ], - "external_id": "", + "service": null, "slug": "_a2-administrateur-des-roles", "uuid": "8dd625b74cff40aa8531d7d72616550e" }, { "description": "", - "service": null, + "external_id": "", "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" + "app_label": "custom_user", + "model": "user" + }, + "target_ct": { + "app_label": "contenttypes", + "model": "contenttype" } }, { @@ -462,19 +373,108 @@ "slug": "search" }, "ou": null, - "target_ct": { - "model": "contenttype", - "app_label": "contenttypes" - }, "target": { - "model": "organizationalunit", - "app_label": "a2_rbac" + "app_label": "a2_rbac", + "model": "organizationalunit" + }, + "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" } } ], - "external_id": "", + "service": null, "slug": "_a2-administrateur-des-utilisateurs", "uuid": "4ab5effedc404fb1bcba4d21ee89b719" + }, + { + "description": "", + "external_id": "", + "name": "Administrateur du r\u00f4le \u00ab\u00a0Debug eo\u00a0\u00bb", + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "permissions": [ + { + "operation": { + "slug": "admin" + }, + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "target": { + "name": "Debug eo", + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service": null, + "slug": "debug-eo", + "uuid": "18e7bf78dc9a432396a99f32060052ec" + }, + "target_ct": { + "app_label": "a2_rbac", + "model": "role" + } + }, + { + "operation": { + "slug": "change" + }, + "ou": null, + "target": { + "name": "Administrateur du r\u00f4le \u00ab\u00a0Debug eo\u00a0\u00bb", + "ou": { + "name": "Collectivit\u00e9 par d\u00e9faut", + "slug": "default", + "uuid": "69b0a02cf58a4c71b1ae548f1375baff" + }, + "service": null, + "slug": "_a2-managers-of-role-debug-eo", + "uuid": "3049444b35874b3b9a8377ad2f10b8b6" + }, + "target_ct": { + "app_label": "a2_rbac", + "model": "role" + } + }, + { + "operation": { + "slug": "view" + }, + "ou": null, + "target": { + "app_label": "custom_user", + "model": "user" + }, + "target_ct": { + "app_label": "contenttypes", + "model": "contenttype" + } + } + ], + "service": null, + "slug": "_a2-managers-of-role-debug-eo", + "uuid": "3049444b35874b3b9a8377ad2f10b8b6" } ] -} +} \ No newline at end of file