use choice type in file_integrity

(cherry picked from a32f8d9065185dab264ee7b1a5a406ff80dff522)