Skip to content

Commit 82f29ae

Browse files
committed
Adjust test for 9.9 (No SLint last connection date)
1 parent 78f6686 commit 82f29ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_migration.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ def test_migration() -> None:
6060
u = json_config["users"]["admin"]
6161
assert "sonar-users" in u["groups"]
6262
assert u["local"] and u["active"]
63-
assert "sonarQubeLastConnectionDate" in u
64-
assert "sonarLintLastConnectionDate" in u
63+
if util.SQ.version() >= (10, 0, 0):
64+
assert "sonarQubeLastConnectionDate" in u
65+
assert "sonarLintLastConnectionDate" in u
66+
else:
67+
assert "lastConnectionDate" in u
6568
assert json_config["users"]["olivier"]["externalProvider"] == "sonarqube"
6669

6770
u = json_config["users"]["olivier-korach65532"]

0 commit comments

Comments
 (0)