You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the comments in this PR, we should try and avoid potential duplicate configuration patterns where changes in one area might break tests in another area, in an non-obvious manner.
For example, if we're updating uiSettings with a default index pattern, assuming that default index pattern will always be logstash-* might cause unintended test failures if that ever changes. Ideally, these are all sourced from the same default configuration location.
On a slightly different note, it might be worthwhile to also consider the same shared configuration for known routes, since these are currently hard-coded in multiple functional tests.
Comments from PR:
chrisronline 36 minutes ago Member
Maybe not a better way, but does this defaultIndex need to match anything else that is setup in the test runner? I'd just want to avoid a scenario where this value is configured somewhere, it's copied here, but then someone possibly changes the value later in the future and this test breaks and it's not clear why. It's entirely possible that I'm missing something but just wanted to point it out in case it could happen
ycombinator 27 minutes ago Member
Yeah, I see what you mean. There's an implicit dependency here between this line and the await esArchiver.load('discover'); line a couple of lines further down. It would probably be better to create a wrapper method somewhere like loadDefaultIndex that loads the actual data using esArchiver.load but also sets up the defaultIndex value, and then use that wrapper method here.
All that said, this here is a pattern that is already established and being used in several places. So I suggest we open an issue for fixing this across the board rather than increasing the scope of this PR.
The text was updated successfully, but these errors were encountered:
Based on the comments in this PR, we should try and avoid potential duplicate configuration patterns where changes in one area might break tests in another area, in an non-obvious manner.
For example, if we're updating
uiSettings
with a default index pattern, assuming that default index pattern will always belogstash-*
might cause unintended test failures if that ever changes. Ideally, these are all sourced from the same default configuration location.On a slightly different note, it might be worthwhile to also consider the same shared configuration for known routes, since these are currently hard-coded in multiple functional tests.
Comments from PR:
The text was updated successfully, but these errors were encountered: