-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrader to migrate from test2-plugin to this plugin
- Loading branch information
Benoit Moussaud
committed
Mar 23, 2015
1 parent
cfc2659
commit 1d7151f
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/main/java/ext/deployit/smoketest/util/UpgradeFromTest2CommunityPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS | ||
* FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS. | ||
*/ | ||
package ext.deployit.smoketest.util; | ||
|
||
|
||
import com.xebialabs.deployit.server.api.repository.RawRepository; | ||
import com.xebialabs.deployit.server.api.upgrade.Upgrade; | ||
import com.xebialabs.deployit.server.api.upgrade.UpgradeException; | ||
import com.xebialabs.deployit.server.api.upgrade.Version; | ||
|
||
|
||
public class UpgradeFromTest2CommunityPlugin extends Upgrade { | ||
@Override | ||
public boolean doUpgrade(final RawRepository repository) throws UpgradeException { | ||
|
||
repository.renameType("tests2.TestRunner", "smoketest.Runner"); | ||
repository.renameType("tests2.HttpRequestTest", "smoketest.HttpRequestTest"); | ||
repository.renameType("tests2.HttpRequestTest", "smoketest.HttpRequestTest"); | ||
repository.renameType("tests2.ExecutedHttpRequestTest", "smoketest.ExecutedHttpRequestTest"); | ||
repository.renameType("tests2.ExecutedHttpPostRequestTest", "smoketest.ExecutedHttpPostRequestTest"); | ||
repository.renameType("tests2.ExecutedHttpPostFileRequestTest", "smoketest.ExecutedHttpPostRequestFileTest"); | ||
|
||
return true; | ||
} | ||
|
||
@Override | ||
public Version upgradeVersion() { | ||
return Version.valueOf("deployit", "4.5.0"); | ||
} | ||
} |