mei_rt2mei_rt2_fix_1
Last change
on this file since a0c1772 was
f824a9e,
checked in by Mei <mei@…>, 12 years ago
|
1) add more doc to python_tests
|
-
Property mode set to
100755
|
File size:
1.2 KB
|
Rev | Line | |
---|
[5f551d3] | 1 | # |
---|
| 2 | #Acme runs a testbed. They've delegated the authority to create |
---|
| 3 | #experiments to all their partners. The Globotron company is one such |
---|
| 4 | #partner. |
---|
| 5 | # |
---|
| 6 | # Acme.experiment_create <- Acme.partner.experiment_create |
---|
| 7 | # |
---|
| 8 | #Globotron has delegated the authority to anyone an admin thinks is a |
---|
| 9 | #'power user'. |
---|
| 10 | # |
---|
| 11 | # Globotron.experiment_create <- Globotron.admin.power_user |
---|
| 12 | # |
---|
| 13 | #Alice is an admin, and her friend Bob is a power user: |
---|
| 14 | # |
---|
| 15 | # Globotron.admin <- Alice |
---|
| 16 | # Alice.power_user <- Bob |
---|
| 17 | # |
---|
[f824a9e] | 18 | #From these credentials, it is possible to show that |
---|
| 19 | # Acme.experiment_create <- Bob. |
---|
[5f551d3] | 20 | # |
---|
[f824a9e] | 21 | #In query.py, it checks if Alice is a admin of Globotron which is true; |
---|
| 22 | #and if Bob is an admin of Globotron which is not true; and also show |
---|
| 23 | # that Bob can create experiment at Acme |
---|
[5f551d3] | 24 | # |
---|
[f824a9e] | 25 | # experiment_create_rt0 |
---|
[5f551d3] | 26 | |
---|
[f824a9e] | 27 | # Credential 1 |
---|
| 28 | #[keyid:Acme].role:experiment_create |
---|
| 29 | # <- [keyid:Acme].role:partner.role:experiment_create |
---|
[5f551d3] | 30 | |
---|
[f824a9e] | 31 | # Credential 2 |
---|
[5f551d3] | 32 | #[keyid:Acme].role:partner <- [keyid:Globotron] |
---|
| 33 | |
---|
[f824a9e] | 34 | # Credential 3 |
---|
| 35 | #[keyid:Globotron].role:expriment_create |
---|
| 36 | <- [keyid:Globotron].role:admin.role:power_user |
---|
[5f551d3] | 37 | |
---|
[f824a9e] | 38 | # Credential 4 |
---|
[5f551d3] | 39 | #[keyid:Globotron].role:admin <- [keyid:Alice] |
---|
| 40 | |
---|
[f824a9e] | 41 | # Credential 5 |
---|
[5f551d3] | 42 | #[keyid:Alice].role:power_user <- [keyid:Bob] |
---|
| 43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.