k1LoW / awspec

RSpec tests for your AWS resources.
MIT License
1.17k stars 193 forks source link

The format of stub files #515

Open MufuHan opened 4 years ago

MufuHan commented 4 years ago

Hi,

I am developing to support aws msk. I got a problem on recording stub responses. Both of the response format from aws-cli and aws-sdk are slightly different from your stub file. How do you write stub file? Which source should I use?

Thank you

glasswalk3r commented 3 years ago

Generally, you should make the stub match the Awspec::Type you're creating. The best way I was able to find for that is to copycat the available stubs that are around the project. I also find myself struggling with that, you might want to take a look at #445 .