def test_volume_snapshots( self ): cg_name = 'cg-00004321' httpretty.register_uri( httpretty.GET, '%s/api/consistency_groups/%s/snapshots.json' % ( rest_service_url, cg_name ), body=get_json_snapshot_list_response( 5 ) ) response = VolumeEndpoint.snapshots( self.c, cg_name ) len( response ).should.be.equal( 5 ) response[2].keys().should.contain('name') response[2]['name'].should_not.be.different_of('snap-00000002')
def test_volume_snapshots(self): cg_name = 'cg-00004321' httpretty.register_uri(httpretty.GET, '%s/api/consistency_groups/%s/snapshots.json' % (rest_service_url, cg_name), body=get_json_snapshot_list_response(5)) response = VolumeEndpoint.snapshots(self.c, cg_name) len(response).should.be.equal(5) response[2].keys().should.contain('name') response[2]['name'].should_not.be.different_of('snap-00000002')