<div dir="ltr">Fuelers<div><br></div><div>It seems that this change [0] into Fuel came unnoticed, but it may help you in testing your puppet catalogues. </div><div><br></div><div>I was refactoring our code pieces that actually wait for Load Balancer to be ready to serve requests. I ended putting things into a special define called `wait_for_backend`. This broke direct dependencies between resources as there was only transitive order between them (e.g. A->B->C) instead of direct (A->C). And this broke our noop tests as they were expecting to see the latter ordering. This in turn required me to write an additional matcher based on puppet source code.</div><div><br></div><div>[0] <a href="https://review.openstack.org/#/c/272702/">https://review.openstack.org/#/c/272702/</a><br></div><div><br></div><div>Here is an example of the code you might want to use in your rspecs:</div><div><br></div><div><span style="color:rgb(44,45,48);font-family:Slack-Lato,appleLogo,sans-serif;font-size:15px;line-height:22px">`expect(graph).to ensure_transitive_dependency("Class[openstack::galera::status]", "Haproxy_backend_status[mysql]")`</span><br></div><div><span style="color:rgb(44,45,48);font-family:Slack-Lato,appleLogo,sans-serif;font-size:15px;line-height:22px">graph is lazy calculated within noop tests shared_examples.</span><br></div><div><span style="color:rgb(44,45,48);font-family:Slack-Lato,appleLogo,sans-serif;font-size:15px;line-height:22px"><br></span></div><div><font color="#2c2d30" face="Slack-Lato, appleLogo, sans-serif"><span style="line-height:22px">So, if you need to just check if one resource will execute after the another, you do not need 'that_comes_[before|after]' anymore.</span></font></div><div><br></div><div><div>Puppeters</div><div><br></div><div>Folks, this may be also interesting for you.</div><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">Yours Faithfully,<br>Vladimir Kuklin,<br>Fuel Library Tech Lead,<br>Mirantis, Inc.<br>+7 (495) 640-49-04<br>+7 (926) 702-39-68<br>Skype kuklinvv<br>35bk3, Vorontsovskaya Str.<br>Moscow, Russia,<br><a href="http://www.mirantis.ru/" target="_blank">www.mirantis.com</a><br><a href="http://www.mirantis.ru/" target="_blank">www.mirantis.ru</a><br><a href="mailto:vkuklin@mirantis.com" target="_blank">vkuklin@mirantis.com</a></div></div></div></div>
</div></div>