Commit 02ac290
tests: adjust UUID checks to newer versions of insights-core
Starting from version 3.4.6 [1], insights-core (used internally by
insights-client) adjusted its logic to generate the UUID (written in
the /etc/insights-client/machine-id file): instead of a new random UUID,
it uses the subscription-manager UUID in case the system is registered
with it (which now is the only supported option).
The expectations in tests_insights_client_register were that,
unregistering and registering again with insights-client would give a
new UUID, which are no more true now. Thus adjust the checks to either
check for the old behaviour, or check that the UUID is now the same as
the rhsm UUID.
This is only a fix for the test, the behaviour of the role itself is
correct.
[1] RedHatInsights/insights-core#4057
Signed-off-by: Pino Toscano <[email protected]>1 parent 3ff1de7 commit 02ac290
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | | - | |
| 87 | + | |
85 | 88 | | |
86 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
| |||
0 commit comments