Wait for the policy to be done in tests

As observed in the amqp job, we sometimes signal scale policy too fast,
without waiting for the medata to be set. It creates a timeout. We can
check the metadata of the policy before signaling again, to make sure
that we can move forward.

Change-Id: I9857803ef960efbd034f05985ec8fcc7272e2f70
4 files changed
tree: f8c8de216cf014158a4ea3ace5028bd76dae1966
  1. api/
  2. common/
  3. functional/
  4. scenario/