/srv/irclogs.ubuntu.com/2020/08/06/#juju.txt

jammorning all06:40
achilleasamanadart_: can you point me to a test where we set up a real space topology?12:17
achilleasaI have a *state.Machine and want to add some subnets and add addresses in each one to the machine12:19
manadart_achilleasa: As in "integration" test with a real Mongo? Not sure we have such an example.12:22
achilleasayeah...12:22
achilleasa:-(12:22
achilleasaI should just mock the call and move on (it's in the api/client bits)12:23
achilleasaotherwise it's add subnets, add LLDs, add addresses...12:23
manadart_achilleasa: See the tests for `GetNetworkInfoForSpaces` that's pretty close.12:23
manadart_achilleasa: `BridgePolicy` tests should have mock examples.12:24
achilleasagiven that the test is essentially testing the unserialization logic (I have separate tests for the facade side) I will just inject a payload in the response... pretty sure I 've seen a few tests like that12:24
=== bruzer is now known as mbruzek
=== mbruzek is now known as bruzer
achilleasamanadart_: can you also look into this one as well? https://github.com/juju/juju/pull/11882 (it looks large because I had to add mock bits in various places for the tests)13:57
manadart_achilleasa: Yep. Gimme a few.13:59
hmlachilleasa:  can you please review: https://github.com/juju/juju/pull/1188314:18
achilleasahml: looking14:20
achilleasahml: btw, any idea why is RefreshClientSuite.TestLiveRefreshManyRequest trying to connect to api.snapcraft.io? Shouldn't we be mocking that in the test? Got a test failure due to a DNS timeout14:26
hmlachilleasa:  i’m not sure what is going on with that test.  thumper pointed it out too last night.14:33
hmlachilleasa:  stickup kid wrote the test to be run both with mocks and live.  perhaps were running the live version sometimes?14:34
hmlit’s interesting tha TestLiveInstallRequest is passing14:38
hmli meant TestLiveRefreshRequest14:38
achilleasawe might be using build tags for that14:38
achilleasa(for the live ones I mean)14:38
hmlachilleasa:  the other thing is that the api being pinged is under development so something might have changed.  dunno yet.14:39
achilleasawouldn't a live test be part of the bash suite?14:40
manadart_achilleasa: Left a few suggestions on your patch. I have to head home now, but I will follow up in the morning.15:03
achilleasamanadart_: thanks!15:03
achilleasahml: the QA steps don't seem to completely match the expected output: https://pastebin.canonical.com/p/WBCWQtDCVy/15:17
achilleasadid the migration happen too quick?15:18
hmlachilleasa:  looking15:22
hmlachilleasa:  what command did you run for the output at line 1?15:23
achilleasait was the 'juju migrate seven migrate-from ; juju deploy mysql'15:25
hmlachilleasa:  did you run the juju switch migrate-to:admin/seven?15:25
hmlfor line #9, you need to run quickly after the migrate, perhaps that’s why you get a slightly different message there15:28
hmli may have missed a juju switch in there at the end15:28
hmllooks like before the upgrade-controller, need a juju switch15:29
hmldid a few tweeks to the qa instructions15:32
achilleasahml: trying again. brb15:51
achilleasahml: we really need to do something about those bogus error messages :D16:41
achilleasahml: hmmm shouldn't it stop after complaining that the precheck failed?16:51
achilleasait actually went ahead with the migration even though it complained... then it just erros that the model has already been migrated16:52

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