diff env/lib/python3.7/site-packages/boto/manage/test_manage.py @ 0:26e78fe6e8c4 draft

"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
author shellac
date Sat, 02 May 2020 07:14:21 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/env/lib/python3.7/site-packages/boto/manage/test_manage.py	Sat May 02 07:14:21 2020 -0400
@@ -0,0 +1,34 @@
+from boto.manage.server import Server
+from boto.manage.volume import Volume
+import time
+
+print('--> Creating New Volume')
+volume = Volume.create()
+print(volume)
+
+print('--> Creating New Server')
+server_list = Server.create()
+server = server_list[0]
+print(server)
+
+print('----> Waiting for Server to start up')
+while server.status != 'running':
+    print('*')
+    time.sleep(10)
+print('----> Server is running')
+
+print('--> Run "df -k" on Server')
+status = server.run('df -k')
+print(status[1])
+
+print('--> Now run volume.make_ready to make the volume ready to use on server')
+volume.make_ready(server)
+
+print('--> Run "df -k" on Server')
+status = server.run('df -k')
+print(status[1])
+
+print('--> Do an "ls -al" on the new filesystem')
+status = server.run('ls -al %s' % volume.mount_point)
+print(status[1])
+