尻尾を振る(しっぽをふる)

Japanese vocabulary

Meaning: to wag one's tail; to flatter; to butter up; to fawn (on)

See it used in real works