def main(): os_options = {'tenant_name': ACCOUNT} url, token = c.get_auth( 'http://' + AUTH_IP + ":" + AUTH_PORT + '/v2.0', ACCOUNT + ':' + USER_NAME, PASSWORD, os_options = os_options, auth_version = '2.0' ) print 'Deploying Identity storlet and dependencies' deploy_storlet(url, token) print "Invoking Identity storlet on PUT" invoke_storlet(url, token,'PUT') progress_msg("Invoking Identity storlet on 1GB file PUT") invoke_storlet_on_1GB_file(url, token) print "Invoking Identity storlet on PUT with execution of dependency" invoke_storlet(url, token,'PUT', {'execute' : 'true'}) print "Invoking Identity storlet on PUT with double" invoke_storlet(url, token,'PUT', {'double' : 'true'}) print "Invoking Identity storlet on GET" invoke_storlet(url, token,'GET') print "Invoking Identity storlet on GET with double" invoke_storlet(url, token,'GET', {'double' : 'true'}) print "Invoking Identity storlet on GET with execution of dependency" invoke_storlet(url, token,'GET',{'execute' : 'true'}) print "Invoking Identity storlet in Task"
def main(): os_options = {'tenant_name': ACCOUNT} url, token = c.get_auth('http://' + AUTH_IP + ":" + AUTH_PORT + '/v2.0', ACCOUNT + ':' + USER_NAME, PASSWORD, os_options=os_options, auth_version='2.0') # print('Creating containers for auxiliary files') create_container(url, token, 'myobjects') create_container(url, token, 'container1') create_container(url, token, 'container2') create_container(url, token, 'container3') # print('Creating Auxiliary files') progress_msg("Creating SLO chunks for upload") create_local_chunks() progress_msg("Uploading SLO chunks and assembly") put_SLO(url, token) progress_msg("Downloading SLO") get_SLO(url, token) progress_msg("Invoking storlet on SLO in GET") invoke_identity_on_get_SLO(url, token) # YM comment out 2 lines - temporary only! progress_msg("Invoking storlet on SLO in GET with double") invoke_identity_on_get_SLO_double(url, token) #progress_msg("Invoking storlet on SLO in partial GET") #invoke_identity_on_partial_get_SLO(url, token) delete_local_chunks()
def main(): os_options = {'tenant_name': ACCOUNT} url, token = c.get_auth( 'http://' + AUTH_IP + ":" + AUTH_PORT + '/v2.0', ACCOUNT + ':' + USER_NAME, PASSWORD, os_options = os_options, auth_version = '2.0' ) # print('Creating containers for auxiliary files') create_container(url, token, 'myobjects') create_container(url, token, 'container1') create_container(url, token, 'container2') create_container(url, token, 'container3') # print('Creating Auxiliary files') progress_msg("Creating SLO chunks for upload") create_local_chunks() progress_msg("Uploading SLO chunks and assembly") put_SLO(url, token) progress_msg("Downloading SLO") get_SLO(url, token) progress_msg("Invoking storlet on SLO in GET") invoke_identity_on_get_SLO(url, token) # YM comment out 2 lines - temporary only! progress_msg("Invoking storlet on SLO in GET with double") invoke_identity_on_get_SLO_double(url, token) #progress_msg("Invoking storlet on SLO in partial GET") #invoke_identity_on_partial_get_SLO(url, token) delete_local_chunks()
def main(): os_options = {'tenant_name': ACCOUNT} url, token = c.get_auth('http://' + AUTH_IP + ":" + AUTH_PORT + '/v2.0', ACCOUNT + ':' + USER_NAME, PASSWORD, os_options=os_options, auth_version='2.0') print 'Deploying Identity storlet and dependencies' deploy_storlet(url, token) print "Invoking Identity storlet on PUT" invoke_storlet(url, token, 'PUT') progress_msg("Invoking Identity storlet on 1GB file PUT") invoke_storlet_on_1GB_file(url, token) print "Invoking Identity storlet on PUT with execution of dependency" invoke_storlet(url, token, 'PUT', {'execute': 'true'}) print "Invoking Identity storlet on PUT with double" invoke_storlet(url, token, 'PUT', {'double': 'true'}) print "Invoking Identity storlet on GET" invoke_storlet(url, token, 'GET') print "Invoking Identity storlet on GET with double" invoke_storlet(url, token, 'GET', {'double': 'true'}) print "Invoking Identity storlet on GET with execution of dependency" invoke_storlet(url, token, 'GET', {'execute': 'true'})