#NEWLINE# def create_sliver_core( self , fs_randomness ) : #NEWLINE# #INDENT# '\n        Check that we can create slice on the FV\n        ' #NEWLINE# slices = self . fv_clients [ 0 ] . api . listSlices ( ) #NEWLINE# self . assertEqual ( len ( slices ) , 1 ) #NEWLINE# ( slice_urn , cred ) = self . test_ListResources ( ) #NEWLINE# slice_name = 'SliceNameBla' #NEWLINE# email = 'john.doe@geni.net' #NEWLINE# url = ( 'tcp:%s:%s' % ( test_settings . MININET_VMS [ 0 ] [ 0 ] , 6633 ) ) #NEWLINE# ( resv_rspec , flowspaces ) = create_random_resv ( 2 , self . switches , slice_name = slice_name , email = email , ctrl_url = url , fs_randomness = fs_randomness ) #NEWLINE# users = [ { #NEWLINE# #INDENT# 'key' : '' , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . am_client . CreateSliver ( slice_urn , cred , resv_rspec , users ) #NEWLINE# slices = self . fv_clients [ 0 ] . api . listSlices ( ) #NEWLINE# logger . debug ( slices ) #NEWLINE# self . assertEqual ( len ( slices ) , 2 ) #NEWLINE# fv_slice_name = ( slices [ 1 ] if ( slices [ 0 ] == 'root' ) else slices [ 0 ] ) #NEWLINE# self . assertTrue ( ( slice_name in fv_slice_name ) , ( "Expected to find '%s' in slice name '%s', but didn't" % ( slice_name , fv_slice_name ) ) ) #NEWLINE# slice_info = self . fv_clients [ 0 ] . api . getSliceInfo ( fv_slice_name ) #NEWLINE# logger . debug ( ( 'Slice info is %s' % slice_info ) ) #NEWLINE# self . assertEqual ( slice_info [ 'contact_email' ] , email ) #NEWLINE# self . assertEqual ( slice_info [ 'controller_port' ] , '6633' ) #NEWLINE# self . assertEqual ( slice_info [ 'controller_hostname' ] , test_settings . MININET_VMS [ 0 ] [ 0 ] ) #NEWLINE# return ( slice_urn , cred )