fgcp.dummy | index dummy.py |
Dummy Fujitsu Global Cloud Platform (FGCP) API Server(s) for local tests
Example: [see tests/test_*.py for more examples]
# Connect without client certificate to region 'test'
from fgcp.resource import FGCPVDataCenter
vdc = FGCPVDataCenter('client.pem', 'test')
# Do typical resource actions - updates are not supported here
vsystem = vdc.get_vsystem('Demo System')
vsystem.show_status()
for vserver in vsystem.vservers:
#result = vserver.backup(wait=True)
...
Note: you need to unzip the file 'fixtures.zip' in tests/fixtures first
Modules | ||||||
|
Classes | ||||||||||||||||||||||
|