Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EMA1201 opened this issue Mar 27, 2024 · 5 comments

Comments

@EMA1201
Copy link

EMA1201 commented Mar 27, 2024

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
Copy link
Owner

k1LoW commented Apr 1, 2024

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
Copy link
Author

EMA1201 commented Apr 1, 2024

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
Copy link
Owner

k1LoW commented Apr 1, 2024

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
Copy link
Author

EMA1201 commented Apr 3, 2024

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
Copy link
Owner

k1LoW commented Apr 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants