/srv/irclogs.ubuntu.com/2020/05/07/#cloud-init.txt

falcojrI've done test parametrization before. I see tradeoffs both ways and could go either way for this. I usually think of parametrization for when you start accumulating very similar individual tests (e.g., test_x_less_than_0, test_x_greater_than_0, test_x_equal_0), and need an abstraction to reduce code duplication.  In this case, I would never think00:24
falcojrto write "test_file_x", "test_file_y", "test_file_z", so to me I think of this as a single test...test all the examples. But like I said, I could go either way, so if there's a strong preference for paramterization, I can do that. Just let me know00:24
=== vrubiolo1 is now known as vrubiolo
Odd_Blokefalcojr: Interesting, I think I see it differently for a couple of reasons.  Firstly, I think, as-written, the for loop _is_ parameterising this test already: it's running an identical validation test with different parameters for each iteration of the for loop.  So for me that meets the "very similar individual tests" standard.  And secondly, if I'm making changes to our schema validation code or our13:53
Odd_Blokeschemas, I would like to have a granular indication of which examples I've broken with my changes but the current test will fail on the first failure it finds.  You could update the current test to gather all errors before it fails the test, but that's effectively reimplementing a test runner in a way that's opaque to our actual test runner, so we may as well use the features it provides us.13:53
falcojrOdd_Bloke makes sense, I'll parametrize it13:55
Odd_Blokefalcojr: Thanks! :)13:57
Odd_Bloke(I just misspelled schema as schma, and that's a fun word to say.)14:24
falcojrhttps://vignette.wikia.nocookie.net/disney/images/6/6f/Mr._Smee_Profile.jpg14:25
Odd_Blokefalcojr: Thanks for the update on the PR, I've pushed another couple of (minor) comments. :)14:25
Odd_Bloke(Regrettably with schema spelled correctly.)14:26
blackboxswrobjo: if you have a moment, do you have any concerns with switching the default localhost IP to 127.0.1.1 on suse in cloud-init, just like debian and ubuntu? chengcheng from vmware land would like to make that change in cloud-init https://github.com/canonical/cloud-init/pull/33616:52
blackboxswthe branch looks sounds, and the IP address is accessible on a couple of opensuse containers I've launched but I wasn't certain if there are any specific concerns on OpenSUSE side that I should be cognizant of before reviewing and landing this branch16:53
robjoblackboxsw: LGTM, commented on the PR16:54
blackboxswawesome robjo thanks for the quick turnaround here16:54
=== tds8 is now known as tds

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!