k1LoW / awspec

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

Feature/issue 407 #543

Closed glasswalk3r closed 3 years ago

glasswalk3r commented 3 years ago

Implements the requested features on issue #407.

Here is a sample (edited) from the implemented spec:

$ bundle exec rspec -f d spec/type/eks_nodegroup_spec.rb 

eks_nodegroup 'my-eks-nodegroup'
  is expected to be ready
  is expected to belong to subnets "subnet-1234a567"
  is expected not to belong to subnets "subnet-1234a567YYY" and "subnet-1234a567ZZZ"
  is expected to have security group "sg-1a2b3cd4"
  is expected to have security group "my-security-group-name"
  is expected not to have security group "sg-zyx"
  is expected not to have security group "my-other-security-group-name"

Finished in 0.01994 seconds (files took 2.53 seconds to load)

In others words, this PR implements the following matchers:

Also the spec/type/eks_nodegroup_spec.rb was extended and the stub it requires as well.

k1LoW commented 3 years ago

@glasswalk3r GREAT!!! THANK YOU!!!

k1LoW commented 3 years ago

Released as v1.24.4.