Discussion:
Fog.mock for aws objects
JayP
2013-01-23 18:42:42 UTC
Permalink
Hi,

I have a rails application that uses Fog down at the model level and to
actually do request tests I'd like to work with data being returned. I'm
finding it difficult to create all the test data and pumping it into Fog so
that when I make calls real information is returned rather than empty
objects. I am working auto scaling groups, instances, and launch
configurations. I feel in order to test auto scaling groups I have to find
a way to create all that test data. Should it be pretty straight forward
or would it just be better to use VCR.

Thanks,
Jay
geemus (Wesley Beary)
2013-01-23 20:37:27 UTC
Permalink
Good question, hard to answer off hand as I don't have much experience with
auto scaling.

Are there particular mocks that aren't filling in as much data as you would
expect? Do you have example usage to clarify?

It may be that we need to update/extend the mocks around auto-scaling to
better reflect reality, but ideally the mocks would give you enough that
VCR wouldn't also be needed.
Post by JayP
Hi,
I have a rails application that uses Fog down at the model level and to
actually do request tests I'd like to work with data being returned. I'm
finding it difficult to create all the test data and pumping it into Fog so
that when I make calls real information is returned rather than empty
objects. I am working auto scaling groups, instances, and launch
configurations. I feel in order to test auto scaling groups I have to find
a way to create all that test data. Should it be pretty straight forward
or would it just be better to use VCR.
Thanks,
Jay
JayP
2013-01-23 21:13:48 UTC
Permalink
Hi geemus,

I'm seeing how much work it is to create the mocks by saving the models, it
may give me enough information. I'll probably have it just create those
fog mock objects before each test and store all the inputs in fabricators.
I'll file issues in github if the mock objects are missing stuff.

Thanks,
Jay
geemus (Wesley Beary)
2013-01-23 21:56:17 UTC
Permalink
Sounds good, I think that sounds pretty inline with what I have done (and
seen others do).
Thanks!
wes
Post by JayP
Hi geemus,
I'm seeing how much work it is to create the mocks by saving the models,
it may give me enough information. I'll probably have it just create those
fog mock objects before each test and store all the inputs in fabricators.
I'll file issues in github if the mock objects are missing stuff.
Thanks,
Jay
Loading...