The definition of integrity is the following of moral or ethical principles, and doing the same as what you say.
You will probably be behaving ethically if:
There is no clear answer to what is ethical or to what ethical behavior is. Many turn to religion or to the law to give guidance as to ethical behavior.
(noun)See integrity in Webster's New World College Dictionary
noun
Origin: LME integrite < L integritas < integer: see integer
See integrity in American Heritage Dictionary 4
noun
Origin:
Origin: Middle English integrite
Origin: , from Old French
Origin: , from Latin integritās, soundness
Origin: , from integer, whole, complete; see tag- in Indo-European roots
.Learn more about integrity