From 40643b17b0d4a2cfa402a6690e3f91fe7d7dc308 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 26 Jun 2019 09:38:07 +0200 Subject: [PATCH] SONAR-11320 Update branding from VSTS/TFS to Azure DevOps --- .../version/v79/MigrateVstsProviderToAzureDevOps.java | 2 +- .../version/v79/MigrateVstsProviderToAzureDevOpsTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v79/MigrateVstsProviderToAzureDevOps.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v79/MigrateVstsProviderToAzureDevOps.java index 4bbe529dc2d..23a6bd06a28 100644 --- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v79/MigrateVstsProviderToAzureDevOps.java +++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v79/MigrateVstsProviderToAzureDevOps.java @@ -57,7 +57,7 @@ public class MigrateVstsProviderToAzureDevOps extends DataChange { case VSTS: return "Azure DevOps Services"; case VSTS_TFS: - return "Azure DevOps Services/Server"; + return "Azure DevOps"; default: throw new IllegalStateException("Unexpected value: " + oldValue); } diff --git a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v79/MigrateVstsProviderToAzureDevOpsTest.java b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v79/MigrateVstsProviderToAzureDevOpsTest.java index 880f8c085bf..e9cb62b0d8c 100644 --- a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v79/MigrateVstsProviderToAzureDevOpsTest.java +++ b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v79/MigrateVstsProviderToAzureDevOpsTest.java @@ -53,7 +53,7 @@ public class MigrateVstsProviderToAzureDevOpsTest { assertPropertyContainsInAnyOrder( tuple("sonar.pullrequest.provider", "any.value_here", null, false), tuple("sonar.pullrequest.provider", "Azure DevOps Services", null, false), - tuple("sonar.pullrequest.provider", "Azure DevOps Services/Server", null, false), // Single change + tuple("sonar.pullrequest.provider", "Azure DevOps", null, false), // Single change tuple("whatever.property", "nothingspecial", null, false), tuple("whatever.property", null, "nothing.special", false) ); @@ -73,7 +73,7 @@ public class MigrateVstsProviderToAzureDevOpsTest { assertPropertyContainsInAnyOrder( tuple("sonar.pullrequest.provider", "any.value_here", null, false), tuple("sonar.pullrequest.provider", "Azure DevOps Services", null, false), - tuple("sonar.pullrequest.provider", "Azure DevOps Services/Server", null, false), // Single change + tuple("sonar.pullrequest.provider", "Azure DevOps", null, false), // Single change tuple("whatever.property", "nothingspecial", null, false), tuple("whatever.property", null, "nothing.special", false) ); -- 2.39.5