When I was looking at the source code for capability_stub.py in app engine's testbed framework, I saw a comment stating that every service was always enabled. Now, is there a way to simmulate certain outages by disabling certain services, other than writing my own stub?
Asked
Active
Viewed 52 times
1 Answers
3
testbed = testbed.Testbed()
testbed.activate()
testbed.init_capability_stub()
stub = testbed.get_stub('capability_service')
stub.SetPackageEnabled('memcache', False)
from google.appengine.api import capabilities
assert(capabilities.CapabilitySet('memcache').is_enabled() == False)

proppy
- 10,495
- 5
- 37
- 66
-
1I'll give you the bounty as soon as I can, it says I can award it in 4 hours. thx for the answer. – bigblind Sep 06 '12 at 19:26