// there are some tables we know won't be rewrapped
for_,table:=rangetables{
// oplog entries cannot be rewrapped at this time
iftable=="oplog_entry"{
continue
}
// kms_data_key_version_destruction_job does not contain encrypted data, only a reference to the key versions
iftable=="kms_data_key_version_destruction_job"{
continue
}
// all other tables should be registered
filteredTables=append(filteredTables,table)
}
assert.Empty(t,cmp.Diff(filteredTables,kms.ListTablesSupportingRewrap(),cmpopts.SortSlices(func(i,jstring)bool{returni<j})),"At least one table referencing a data key does not have a rewrapping function registered")