source: tests/scaling_tests/haystack/fruit_python/base/SETUP.py @ 6cd69a0

abac0-leakabac0-mei
Last change on this file since 6cd69a0 was ec550f7, checked in by Mei <mei@…>, 11 years ago

1) reworked how API doc is generated
2) tweak top level Makefile.am
3) loading issuer principal as side-effect of loading

an attribute credentials

4) add examples of GENI specific attribute credentials

and principal certificates into the regression testing

5) rename examples to tests

  • Property mode set to 100755
File size: 716 bytes
Line 
1#!/usr/bin/env python
2
3"""
4See README for the semantics.  This creates principals
5used by the example.
6"""
7import os
8import ABAC
9
10ctxt = ABAC.Context()
11
12ralphsID=ABAC.ID("Ralphs", 0)
13ralphsID.id_write_cert("Ralphs_ID.pem")
14ralphsID.id_write_privkey("Ralphs_private.pem")
15
16bobID=ABAC.ID("Bob", 0)
17bobID.id_write_cert("Bob_ID.pem")
18bobID.id_write_privkey("Bob_private.pem")
19
20maryID=ABAC.ID("Mary", 0)
21maryID.id_write_cert("Mary_ID.pem")
22maryID.id_write_privkey("Mary_private.pem")
23
24######## NOISE ##################################
25
26i=1
27while i <= #VAL#:
28     n="john%s"%i
29     nid="%s_ID.pem"%n
30     np="%s_private.pem"%n
31     aD=ABAC.ID(n, 0)
32     aD.id_write_cert(nid)
33     aD.id_write_privkey(np)
34     i = i+1
35
36
37
Note: See TracBrowser for help on using the repository browser.