k1LoW / awspec

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

Differences between resource type on the website and resource type that appears when generating #588

Open EMA1201 opened 5 months ago

EMA1201 commented 5 months ago

I'd like to use awspec for testing AWS. I checked awspec resource type on the website. Then there is ecs resource, but when I generated, no ecs resource was available even though awspec version was latest 1.29.3. Is there any reason why the resources on the website are not generated?

k1LoW commented 5 months ago

https://github.com/k1LoW/awspec/blob/master/doc/resource_types.md lists the resource types that can be tested.

The generate command needs to be implemented separately.

EMA1201 commented 5 months ago

What do you mean that "the generate command needs to be implemented separately."? I've already tried to do this command "$ bundle exec awspec generate" and it did not result in the exact same resource type as the website. If there is another way to do this, please let me know.

k1LoW commented 5 months ago

What do you mean that "the generate command needs to be implemented separately."?

It means that testing by awspec and test case generation by awspec are completely different implementations.

Generation is only a convenience command, not an all-inclusive one.

If there is another way to do this, please let me know.

If you want to increase the number of resource types you support for generation, please consider contributing to awspec 👍

https://github.com/k1LoW/awspec/tree/master/lib/awspec/generator/doc/type

EMA1201 commented 5 months ago

lib/awspec/generator/doc/type/ecs_cluster.rb Do you mean that I have to add this file by myself? I'd like to know how to test the ECS, what to add, which commands to type, and the procedure.

k1LoW commented 5 months ago

At this time awspec does not have that functionality, so we will have to add it.