Revision bd1f667b snf-astakos-app/astakos/im/tests/projects.py
b/snf-astakos-app/astakos/im/tests/projects.py | ||
---|---|---|
1 |
# Copyright 2011 GRNET S.A. All rights reserved. |
|
1 |
# Copyright 2011, 2012, 2013 GRNET S.A. All rights reserved.
|
|
2 | 2 |
# |
3 | 3 |
# Redistribution and use in source and binary forms, with or |
4 | 4 |
# without modification, are permitted provided that the following |
... | ... | |
40 | 40 |
""" |
41 | 41 |
def setUp(self): |
42 | 42 |
# astakos resources |
43 |
self.astakos_service = Service.objects.create(name="astakos", |
|
44 |
api_url="/astakos/api/") |
|
45 | 43 |
self.resource = Resource.objects.create(name="astakos.pending_app", |
46 | 44 |
uplimit=0, |
47 | 45 |
allow_in_projects=False, |
48 |
service=self.astakos_service)
|
|
46 |
service_type="astakos")
|
|
49 | 47 |
|
50 | 48 |
# custom service resources |
51 |
self.service = Service.objects.create(name="service1", |
|
52 |
api_url="http://service.api") |
|
53 | 49 |
self.resource = Resource.objects.create(name="service1.resource", |
54 | 50 |
uplimit=100, |
55 |
service=self.service)
|
|
51 |
service_type="service1")
|
|
56 | 52 |
self.admin = get_local_user("projects-admin@synnefo.org") |
57 | 53 |
self.admin.uuid = 'uuid1' |
58 | 54 |
self.admin.save() |
Also available in: Unified diff