| | 26 | === organisations === |
| | 27 | {{{<template_name>/organisations.xml}}}[[BR]] |
| | 28 | This file will specify which organisations & branches data & users are created for. |
| | 29 | |
| | 30 | |
| | 31 | === data === |
| | 32 | {{{<template_name>/data.xml}}}[[BR]] |
| | 33 | This file will define the data that will be created for the user's roles will be tested against. See existing examples and [wiki:S3XML#XMLFormat] for how to format this file. This file will include the string {{{%(org)s}}} which will be replaced with the name of the organisation/branch. |
| | 34 | |
| | 35 | === users template === |
| | 36 | {{{<template_name>/users_template.csv}}}[[BR]] |
| | 37 | A file template for the users and roles which will be tested. See existing examples for how to format this file. This file will include the string {{{%(org)s}}} which will be replaced with the name of the organisation/branch. To assign a role for an organisation, using this syntax: {{{<role_name>/org_organisation.name=%(org)s}}}. |
| | 38 | |
| | 39 | === Test Users (optional) === |
| | 40 | {{{<template_name>/test_users.csv}}}[[BR]] |
| | 41 | An optional file which is used to create users - handy for debugging. |
| | 42 | |
| | 43 | === Permission Matrix === |
| | 44 | {{{<template_name>/Org-A_permission_matrix.csv}}}[[BR]] |
| | 45 | The permissions declared in this file are tested upon. Currently permissions are only tested for users from Org-A, but you can test their access to data from other Organisations. |
| | 46 | |
| | 47 | == Role Test Documentation == |
| 34 | | * It depends on the following for creating the data - |
| 35 | | * {{{org_organisation.xml}}} - A generic file for all templates. It is used for importing the organisation. |
| 36 | | * {{{org_organisation_branch.xml}}} - A generic file for all templates. It is used for importing the organisation branches, if the template uses branches. |
| 37 | | * {{{<template_name>/data.xml}}} - A file template for the data which the user's roles will be tested against. |
| 38 | | * {{{<template_name>/users_template.csv}}} - A file template for the users and roles which will be tested. |
| 39 | | * {{{<template_name>/test_users.csv}}} - An optional file which is used to create users - handy for debugging. |
| 40 | | * The user permissions are defined in {{{<template_name>/Org-A_permission_matrix.csv}}}. The permissions declared in this file are tested upon. |