diff options
author | Nolwenn Cadic <98824442+Nolwenn-cadic-sonarsource@users.noreply.github.com> | 2024-07-25 09:00:10 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-07-25 20:02:51 +0000 |
commit | 9f614fdbf0fe66eec11ece07a98e7ad056476be1 (patch) | |
tree | 546f11effd8783e030719f82842b05050010653b /server/sonar-db-migration/src/test/java | |
parent | f2f826c4e98af4ca1996c07873e60095d23f79bd (diff) | |
download | sonarqube-9f614fdbf0fe66eec11ece07a98e7ad056476be1.tar.gz sonarqube-9f614fdbf0fe66eec11ece07a98e7ad056476be1.zip |
SONAR-22596 Fail Gitlab sync task if user consent is needed
Diffstat (limited to 'server/sonar-db-migration/src/test/java')
-rw-r--r-- | server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v107/DbVersion107Test.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v107/DbVersion107Test.java b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v107/DbVersion107Test.java new file mode 100644 index 00000000000..ecece10f206 --- /dev/null +++ b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v107/DbVersion107Test.java @@ -0,0 +1,40 @@ +/* + * SonarQube + * Copyright (C) 2009-2024 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ +package org.sonar.server.platform.db.migration.version.v107; + +import org.junit.jupiter.api.Test; + +import static org.sonar.server.platform.db.migration.version.DbVersionTestUtils.verifyMigrationNotEmpty; +import static org.sonar.server.platform.db.migration.version.DbVersionTestUtils.verifyMinimumMigrationNumber; + +class DbVersion107Test { + + private final DbVersion107 underTest = new DbVersion107(); + + @Test + void migrationNumber_starts_at_107_000() { + verifyMinimumMigrationNumber(underTest, 107_000); + } + + @Test + void verify_migration_is_not_empty() { + verifyMigrationNotEmpty(underTest); + } +} |