def test_volume_snapshot_policies( self ): cg_name = 'cg-0000123' httpretty.register_uri( httpretty.GET, '%s/api/consistency_groups/%s/snapshot_policies.json' % ( rest_service_url, cg_name ), body=get_json_snapshot_policies_list_response( 6 ) ) response = VolumeEndpoint.snapshot_policies( self.c, cg_name ) len( response ).should.be.equal( 6 ) response[4].keys().should.contain('display_name') response[4]['display_name'].should_not.be.different_of('Hourly Snapshots for a Day')
def test_volume_snapshot_policies(self): cg_name = 'cg-0000123' httpretty.register_uri( httpretty.GET, '%s/api/consistency_groups/%s/snapshot_policies.json' % (rest_service_url, cg_name), body=get_json_snapshot_policies_list_response(6)) response = VolumeEndpoint.snapshot_policies(self.c, cg_name) len(response).should.be.equal(6) response[4].keys().should.contain('display_name') response[4]['display_name'].should_not.be.different_of( 'Hourly Snapshots for a Day')