Skip to content

Commit

Permalink
update tests related to vrrp_unicast_peers
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Unterkircher committed Jan 27, 2021
1 parent cccdb4c commit 3950c3c
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions spec/defines/keepalived_vrrp_instance_spec.rb
Expand Up @@ -964,12 +964,14 @@
'content' => " }\n\n"
)
is_expected.to \
contain_keepalived__vrrp__unicast_peer('10.0.1.0').with(
'instance' => '_NAME_'
contain_keepalived__vrrp__unicast_peer('_NAME__10.0.1.0').with(
'instance' => '_NAME_',
'ip_address' => '10.0.1.0'
)
is_expected.to \
contain_keepalived__vrrp__unicast_peer('10.0.2.0').with(
'instance' => '_NAME_'
contain_keepalived__vrrp__unicast_peer('_NAME__10.0.2.0').with(
'instance' => '_NAME_',
'ip_address' => '10.0.2.0',
)
}
end
Expand All @@ -996,8 +998,9 @@
'content' => " }\n\n"
)
is_expected.to \
contain_keepalived__vrrp__unicast_peer('10.0.3.0').with(
'instance' => '_NAME_'
contain_keepalived__vrrp__unicast_peer('_NAME__10.0.3.0').with(
'instance' => '_NAME_',
'ip_address' => '10.0.3.0'
)
}
end
Expand Down Expand Up @@ -1030,16 +1033,19 @@
'content' => " }\n\n"
)
is_expected.to \
contain_keepalived__vrrp__unicast_peer('10.2.1.0').with(
'instance' => '_NAME_'
contain_keepalived__vrrp__unicast_peer('_NAME__10.2.1.0').with(
'instance' => '_NAME_',
'ip_address' => '10.2.1.0'
)
is_expected.to \
contain_keepalived__vrrp__unicast_peer('10.2.2.0').with(
'instance' => '_NAME_'
contain_keepalived__vrrp__unicast_peer('_NAME__10.2.2.0').with(
'instance' => '_NAME_',
'ip_address' => '10.2.2.0'
)
expect(exported_resources).to \
contain_keepalived__vrrp__unicast_peer('10.1.1.0').with(
'instance' => '_NAME_'
contain_keepalived__vrrp__unicast_peer('_NAME__10.1.1.0').with(
'instance' => '_NAME_',
'ip_address' => '10.1.1.0'
)
}
end
Expand All @@ -1063,8 +1069,9 @@
'content' => " }\n\n"
)
expect(exported_resources).to \
contain_keepalived__vrrp__unicast_peer('10.0.4.0').with(
'instance' => '_NAME_'
contain_keepalived__vrrp__unicast_peer('_NAME__10.0.4.0').with(
'instance' => '_NAME_',
'ip_address' => '10.0.4.0'
)
}
end
Expand Down

0 comments on commit 3950c3c

Please sign in to comment.