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

ALB Listener have_rule doesn't process actions #419

Open
martyna-autumn opened this issue Nov 26, 2018 · 1 comment
Open

ALB Listener have_rule doesn't process actions #419

martyna-autumn opened this issue Nov 26, 2018 · 1 comment

Comments

@martyna-autumn
Copy link

Hello,

I'm using awspec to test created ALB with Target Groups. When I tried to test listener rules I end with error if I try to test actions. In this case below doesn't work

it do
  should have_rule.priority('1')
  .conditions(field: 'host-header', values: ['tests-hostname.com'])
  .actions(target_group_name: 'test-targetgroup', type: 'forward')
end

However if I remove actions, I get proper result

it do
  should have_rule.priority('1')
  .conditions(field: 'host-header', values: ['tests-hostname.com'])
end

I'm sure that test is constructed correctly so that specific rule exists and forwards to that specific target group.

@naoki0130
Copy link

I am facing the same problem. I really want to know the solution...

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