[tests-only] [full-ci] removing the setresponse in given/then step in spaces context (#7496)
* refactor given/when/then steps in spaces context * pass the returned response without setting in then step * added the missing when step whose response is checked by the then step * addressed the reviews * changed from decoded body to docoded response
This commit is contained in: