code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Test void shouldErrorOutIfDecryptionFails() throws CryptoException { GoCipher mockGoCipher = mock(GoCipher.class); String fakeCipherText = "fake cipher text"; when(mockGoCipher.decrypt(fakeCipherText)).thenThrow(new CryptoException("exception")); TfsMaterialConfig materialConfig = t...
/*.help"); map.put(MATERIAL_NAME, "my-tfs-material-name"); map.put(TfsMaterialConfig.PROJECT_PATH, "/useless/project"); map.put(TfsMaterialConfig.DOMAIN, "CORPORATE"); tfsMaterialConfig.setConfigAttributes(map); TfsMaterialConfig newTfsMaterialConfig = tfs(new GoCipher(), new Ur...
shouldErrorOutIfDecryptionFails
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
Apache-2.0
@Test void shouldReturnTheUrl() { String url = "git@github.com/my/repo"; TfsMaterialConfig config = tfs(); config.setUrl(url); assertThat(config.getUrl()).isEqualTo(url); }
/*.help"); map.put(MATERIAL_NAME, "my-tfs-material-name"); map.put(TfsMaterialConfig.PROJECT_PATH, "/useless/project"); map.put(TfsMaterialConfig.DOMAIN, "CORPORATE"); tfsMaterialConfig.setConfigAttributes(map); TfsMaterialConfig newTfsMaterialConfig = tfs(new GoCipher(), new Ur...
shouldReturnTheUrl
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
Apache-2.0
@Test void shouldReturnNullIfUrlForMaterialNotSpecified() { TfsMaterialConfig config = tfs(); assertThat(config.getUrl()).isNull(); }
/*.help"); map.put(MATERIAL_NAME, "my-tfs-material-name"); map.put(TfsMaterialConfig.PROJECT_PATH, "/useless/project"); map.put(TfsMaterialConfig.DOMAIN, "CORPORATE"); tfsMaterialConfig.setConfigAttributes(map); TfsMaterialConfig newTfsMaterialConfig = tfs(new GoCipher(), new Ur...
shouldReturnNullIfUrlForMaterialNotSpecified
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
Apache-2.0
@Test void shouldHandleNullWhenSettingUrlForAMaterial() { TfsMaterialConfig config = tfs(); config.setUrl(null); assertThat(config.getUrl()).isNull(); }
/*.help"); map.put(MATERIAL_NAME, "my-tfs-material-name"); map.put(TfsMaterialConfig.PROJECT_PATH, "/useless/project"); map.put(TfsMaterialConfig.DOMAIN, "CORPORATE"); tfsMaterialConfig.setConfigAttributes(map); TfsMaterialConfig newTfsMaterialConfig = tfs(new GoCipher(), new Ur...
shouldHandleNullWhenSettingUrlForAMaterial
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
Apache-2.0
@BeforeEach void setUp() { tfsMaterialConfig.setUrl("/foo/bar"); }
/*.help"); map.put(MATERIAL_NAME, "my-tfs-material-name"); map.put(TfsMaterialConfig.PROJECT_PATH, "/useless/project"); map.put(TfsMaterialConfig.DOMAIN, "CORPORATE"); tfsMaterialConfig.setConfigAttributes(map); TfsMaterialConfig newTfsMaterialConfig = tfs(new GoCipher(), new Ur...
setUp
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
Apache-2.0
@Test void shouldCallValidate() { final MaterialConfig materialConfig = spy(tfsMaterialConfig); final ValidationContext validationContext = mockValidationContextForSecretParams(); materialConfig.validateTree(validationContext); verify(materialConfig).validate(va...
/*.help"); map.put(MATERIAL_NAME, "my-tfs-material-name"); map.put(TfsMaterialConfig.PROJECT_PATH, "/useless/project"); map.put(TfsMaterialConfig.DOMAIN, "CORPORATE"); tfsMaterialConfig.setConfigAttributes(map); TfsMaterialConfig newTfsMaterialConfig = tfs(new GoCipher(), new Ur...
shouldCallValidate
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
Apache-2.0
@Test void shouldFailIfEncryptedPasswordIsIncorrect() { tfsMaterialConfig.setEncryptedPassword("encryptedPassword"); final boolean validationResult = tfsMaterialConfig.validateTree(new ConfigSaveValidationContext(null)); assertThat(validationResult).isFalse(); a...
/*.help"); map.put(MATERIAL_NAME, "my-tfs-material-name"); map.put(TfsMaterialConfig.PROJECT_PATH, "/useless/project"); map.put(TfsMaterialConfig.DOMAIN, "CORPORATE"); tfsMaterialConfig.setConfigAttributes(map); TfsMaterialConfig newTfsMaterialConfig = tfs(new GoCipher(), new Ur...
shouldFailIfEncryptedPasswordIsIncorrect
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
Apache-2.0
@Test void shouldPassIfPasswordIsNotSpecifiedAsSecretParams() { tfsMaterialConfig.setPassword("badger"); assertThat(tfsMaterialConfig.validateTree(null)).isTrue(); assertThat(tfsMaterialConfig.errors().getAll()).isEmpty(); }
/*.help"); map.put(MATERIAL_NAME, "my-tfs-material-name"); map.put(TfsMaterialConfig.PROJECT_PATH, "/useless/project"); map.put(TfsMaterialConfig.DOMAIN, "CORPORATE"); tfsMaterialConfig.setConfigAttributes(map); TfsMaterialConfig newTfsMaterialConfig = tfs(new GoCipher(), new Ur...
shouldPassIfPasswordIsNotSpecifiedAsSecretParams
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
Apache-2.0
private ValidationContext mockValidationContextForSecretParams(SecretConfig... secretConfigs) { final ValidationContext validationContext = mock(ValidationContext.class); final CruiseConfig cruiseConfig = mock(CruiseConfig.class); when(validationContext.getCruiseConfig()).thenReturn(cruiseConfig...
/*.help"); map.put(MATERIAL_NAME, "my-tfs-material-name"); map.put(TfsMaterialConfig.PROJECT_PATH, "/useless/project"); map.put(TfsMaterialConfig.DOMAIN, "CORPORATE"); tfsMaterialConfig.setConfigAttributes(map); TfsMaterialConfig newTfsMaterialConfig = tfs(new GoCipher(), new Ur...
mockValidationContextForSecretParams
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/config/materials/tfs/TfsMaterialConfigTest.java
Apache-2.0
@Override public boolean canDecrypt(String cipherText) { return true; }
A silly encrypter that just reverses the plaintext. Great for tests.
canDecrypt
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/helper/ReversingEncrypter.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/helper/ReversingEncrypter.java
Apache-2.0
@Override public String encrypt(String plainText) { return new StringBuilder(plainText).reverse().toString(); }
A silly encrypter that just reverses the plaintext. Great for tests.
encrypt
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/helper/ReversingEncrypter.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/helper/ReversingEncrypter.java
Apache-2.0
@Override public String decrypt(String cipherText) { return new StringBuilder(cipherText).reverse().toString(); }
A silly encrypter that just reverses the plaintext. Great for tests.
decrypt
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/helper/ReversingEncrypter.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/helper/ReversingEncrypter.java
Apache-2.0
@Test public void shouldStoreFileInsideSymlinkedConfigDirs(@TempDir Path tempDir) throws Exception { Path targetConfig = tempDir.resolve("target-config"); Path symlinkedConfig = tempDir.resolve("symlink-config-dir"); Files.createDirectory(targetConfig); Files.createSymbolicLink(symli...
Validates that we can create files (and ensure directories are created) inside a symlinked config directory. Note that use of Files.createDirectories() inside the cipher provider will fail on Linux if the target directory although was finally addressed in 17.0.14 via https://bugs.openjdk.org/browse/JDK-8294193 (and alw...
shouldStoreFileInsideSymlinkedConfigDirs
java
gocd/gocd
config/config-api/src/test/java/com/thoughtworks/go/security/AESCipherProviderTest.java
https://github.com/gocd/gocd/blob/master/config/config-api/src/test/java/com/thoughtworks/go/security/AESCipherProviderTest.java
Apache-2.0
public File revertFileToVersion(File configFile, GoConfigRevision currentConfigRevision) { File backupFile = getBackupFile(configFile, "invalid."); try { backup(configFile, backupFile); // FIXME the lack of charset here looks rather suspicious. But unclear how to fix without poss...
Understands how to migrate from a previous version of config
revertFileToVersion
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
public String upgradeIfNecessary(String content) { return upgrade(content, getCurrentSchemaVersion(content)); }
Understands how to migrate from a previous version of config
upgradeIfNecessary
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
private void backup(File configFile, File backupFile) throws IOException { Files.copy(configFile.toPath(), backupFile.toPath(), REPLACE_EXISTING); LOG.info("Config file is backed up, location: {}", backupFile.getAbsolutePath()); }
Understands how to migrate from a previous version of config
backup
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
private File getBackupFile(File configFile, final String prefix) { return new File(configFile + "." + prefix + BACKUP_FILE_FORMATTER.format(timeProvider.currentTime().atZone(ZoneId.systemDefault()))); }
Understands how to migrate from a previous version of config
getBackupFile
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
private String upgrade(String content, int currentVersion) { int targetVersion = GoConfigSchema.currentSchemaVersion(); return upgrade(content, currentVersion, targetVersion); }
Understands how to migrate from a previous version of config
upgrade
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
public String upgrade(String content, int currentVersion, int targetVersion) { LOG.info("Upgrading config file from version {} to version {}", currentVersion, targetVersion); List<URL> upgradeScripts = upgradeScripts(currentVersion, targetVersion); for (URL upgradeScript : upgradeScripts) { ...
Understands how to migrate from a previous version of config
upgrade
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
private void validate(String content) { int currentVersion = getCurrentSchemaVersion(content); try { XmlUtils.buildValidatedXmlDocument(new ByteArrayInputStream(content.getBytes()), GoConfigSchema.getResource(currentVersion)); } catch (Exception e) { throw bomb("Cruise co...
Understands how to migrate from a previous version of config
validate
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
private String upgrade(String originalContent, URL upgradeScript) { try { ByteArrayOutputStream convertedConfig = new ByteArrayOutputStream(originalContent.length()); transformer(upgradeScript).transform(new StreamSource(new StringReader(originalContent)), new StreamResult(convertedConfi...
Understands how to migrate from a previous version of config
upgrade
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
private List<URL> upgradeScripts(int currentVersion, int targetVersion) { List<URL> xsls = new ArrayList<>(); for (int i = currentVersion + 1; i <= targetVersion; i++) { String scriptFile = i + ".xsl"; URL xsl = getResource("/upgrades/" + scriptFile); bombIfNull(xsl, ...
Understands how to migrate from a previous version of config
upgradeScripts
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
private URL getResource(String script) { return GoConfigMigration.class.getResource(script); }
Understands how to migrate from a previous version of config
getResource
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
private Transformer transformer(URL upgradeScriptLocation) throws IOException { try (InputStream xslt = upgradeScriptLocation.openStream()) { TransformerFactory factory = TransformerFactory.newInstance(); factory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, ""); factory.set...
Understands how to migrate from a previous version of config
transformer
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
private int getCurrentSchemaVersion(String content) { try { Element root = XmlUtils.buildXmlDocument(content).getRootElement(); String schemaVersion = "schemaVersion"; String currentVersion = root.getAttributeValue(schemaVersion) == null ? "0" : root.getAttributeValue(schema...
Understands how to migrate from a previous version of config
getCurrentSchemaVersion
java
gocd/gocd
config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/main/java/com/thoughtworks/go/config/GoConfigMigration.java
Apache-2.0
@Test void shouldLoadConfigurationFileWithComplexNonEmptyString() throws Exception { String customerXML = goConfigMigration.upgradeIfNecessary(TestFileUtil.resourceToString("/data/p4_heavy_cruise_config.xml")); assertThat(xmlLoader.deserializeConfig(customerXML)).isNotNull(); }
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadConfigurationFileWithComplexNonEmptyString
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowEmptyViewForPerforce() throws IOException { String config = TestFileUtil.resourceToString(("/data/p4-cruise-config-empty-view.xml")); assertThatThrownBy(() -> xmlLoader.loadConfigHolder(goConfigMigration.upgradeIfNecessary(config))) .as("Should not accept p4 sect...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowEmptyViewForPerforce
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadPipelineWithMultipleMaterials() throws Exception { String pipelineXmlPartial = """ <pipeline name="pipeline"> <materials> <svn url="/hgrepo1" dest="folder1" /> <svn ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadPipelineWithMultipleMaterials
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldThrowErrorIfMultipleMaterialsHaveSameFolders() { String materials = """ <materials> <svn url="/hgrepo1" dest="folder1" /> <svn url="/hgrepo2" dest="folder1" /> </mater...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldThrowErrorIfMultipleMaterialsHaveSameFolders
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldThrowErrorIfOneOfMultipleMaterialsHasNoFolder() { String materials = """ <materials> <svn url="/hgrepo1" /> <svn url="/hgrepo2" dest="folder1" /> </materials> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldThrowErrorIfOneOfMultipleMaterialsHasNoFolder
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldThrowErrorIfOneOfMultipleMaterialsIsNested() { String materials = """ <materials> <svn url="/hgrepo1" dest="folder1"/> <svn url="/hgrepo2" dest="folder1/folder2" /> </...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldThrowErrorIfOneOfMultipleMaterialsIsNested
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotThrowErrorIfMultipleMaterialsHaveSimilarNamesBug2337() { String materials = """ <materials> <svn url="/hgrepo1" dest="folder1/folder2"/> <svn url="/hgrepo2" dest="folder1/folder2different" /...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotThrowErrorIfMultipleMaterialsHaveSimilarNamesBug2337
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotThrowErrorIfMultipleMaterialsHaveSimilarNamesInDifferentOrder() { String materials = """ <materials> <svn url="/hgrepo2" dest="folder1/folder2different" /> <svn url="/hgrepo1" dest="folder1/...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotThrowErrorIfMultipleMaterialsHaveSimilarNamesInDifferentOrder
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowfoldersOutsideWorkingDirectory() throws Exception { String materials = """ <materials> <svn url="/hgrepo2" dest="folder1/folder2/../folder3" /> </materials> """; ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowfoldersOutsideWorkingDirectory
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowPathStartWithDotSlash() throws Exception { String materials = """ <materials> <svn url="/hgrepo2" dest="./folder3" /> </materials> """; MagicalGoConfigXmlLoad...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowPathStartWithDotSlash
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowHiddenFolders() throws Exception { String materials = """ <materials> <svn url="/hgrepo2" dest=".folder3" /> </materials> """; MagicalGoConfigXmlLoaderFixture...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowHiddenFolders
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test @DisabledOnOs(OS.WINDOWS) void shouldNotAllowAbsoluteDestFolderNamesOnLinux() { String materials1 = """ <materials> <svn url="/hgrepo2" dest="/tmp/foo" /> </materials> """; ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowAbsoluteDestFolderNamesOnLinux
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test @DisabledOnOs(OS.WINDOWS) void shouldNotAllowAbsoluteDestFolderNamesOnWindows() { String materials1 = """ <materials> <svn url="/hgrepo2" dest="C:\\tmp\\foo" /> </materials> """;...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowAbsoluteDestFolderNamesOnWindows
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotThrowErrorIfMultipleMaterialsHaveSameNames() { String materials = """ <materials> <svn url="/hgrepo1" dest="folder1/folder2"/> <svn url="/hgrepo2" dest="folder1/folder2" /> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotThrowErrorIfMultipleMaterialsHaveSameNames
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldSupportHgGitSvnP4ForMultipleMaterials() throws Exception { String materials = """ <materials> <svn url="/hgrepo1" dest="folder1"/> <git url="/hgrepo2" dest="folder2"/> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldSupportHgGitSvnP4ForMultipleMaterials
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadPipelinesWithGroupName() throws Exception { CruiseConfig config = xmlLoader.deserializeConfig(PIPELINE_GROUPS); assertThat(config.getGroups().first().getGroup()).isEqualTo("studios"); assertThat(config.getGroups().get(1).getGroup()).isEqualTo("perfessionalservice"); ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadPipelinesWithGroupName
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadTasksWithExecutionCondition() throws Exception { CruiseConfig config = xmlLoader.deserializeConfig(TASKS_WITH_CONDITION); JobConfig job = config.jobConfigByName("pipeline1", "mingle", "cardlist", true); assertThat(job.tasks().size()).isEqualTo(2); assertThat(job...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadTasksWithExecutionCondition
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadTasksWithOnCancel() throws Exception { CruiseConfig config = xmlLoader.deserializeConfig(TASKS_WITH_ON_CANCEL); JobConfig job = config.jobConfigByName("pipeline1", "mingle", "cardlist", true); Task task = job.tasks().findFirstByType(AntTask.class); assertThat(ta...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadTasksWithOnCancel
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotLoadTasksWithOnCancelTaskNested() { assertThatThrownBy(() -> xmlLoader.loadConfigHolder(TASKS_WITH_ON_CANCEL_NESTED)) .as("Should not allow nesting of 'oncancel' within task inside oncancel") .isInstanceOf(GoConfigInvalidException.class) .hasMessage("...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotLoadTasksWithOnCancelTaskNested
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowBothCounterAndMaterialNameInLabelTemplate() throws Exception { CruiseConfig cruiseConfig = xmlLoader.deserializeConfig(LABEL_TEMPLATE_WITH_LABEL_TEMPLATE("1.3.0-${COUNT}-${git}")); assertThat(cruiseConfig.pipelineConfigByName(new CaseInsensitiveString("cruise")).getLabelTemplat...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowBothCounterAndMaterialNameInLabelTemplate
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowBothCounterAndTruncatedGitMaterialInLabelTemplate() throws Exception { CruiseConfig cruiseConfig = xmlLoader.deserializeConfig(LABEL_TEMPLATE_WITH_LABEL_TEMPLATE("1.3.0-${COUNT}-${git[:7]}")); assertThat(cruiseConfig.pipelineConfigByName(new CaseInsensitiveString("cruise")).get...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowBothCounterAndTruncatedGitMaterialInLabelTemplate
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowHashCharacterInLabelTemplate() throws Exception { GoConfigHolder goConfigHolder = xmlLoader.loadConfigHolder(LABEL_TEMPLATE_WITH_LABEL_TEMPLATE("1.3.0-${COUNT}-${git}##")); assertThat(goConfigHolder.config.pipelineConfigByName(new CaseInsensitiveString("cruise")).getLabelTempla...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowHashCharacterInLabelTemplate
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadMaterialNameIfPresent() throws Exception { CruiseConfig config = xmlLoader.deserializeConfig(MATERIAL_WITH_NAME); MaterialConfigs materialConfigs = config.pipelineConfigByName(new CaseInsensitiveString("pipeline")).materialConfigs(); assertThat(materialConfigs.get(0).get...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadMaterialNameIfPresent
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadPipelineWithTimer() throws Exception { CruiseConfig config = xmlLoader.deserializeConfig(PIPELINE_WITH_TIMER); PipelineConfig pipelineConfig = config.pipelineConfigByName(new CaseInsensitiveString("pipeline")); assertThat(pipelineConfig.getTimer()).isEqualTo(new TimerCon...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadPipelineWithTimer
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadConfigWithEnvironment() throws Exception { String content = configWithEnvironments( """ <environments> <environment name='uat' /> <environment name='prod' /> </environment...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadConfigWithEnvironment
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadConfigWithNoEnvironment() throws Exception { String content = configWithEnvironments("", CONFIG_SCHEMA_VERSION); EnvironmentsConfig environmentsConfig = xmlLoader.loadConfigHolder(content).config.getEnvironments(); EnvironmentPipelineMatchers matchers = environmentsConfi...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadConfigWithNoEnvironment
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotLoadConfigWithEmptyTemplates() { String content = configWithTemplates( "<templates>\n" + "</templates>"); assertThatThrownBy(() -> xmlLoader.loadConfigHolder(content)) .as("Should not allow empty templates block") ....
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotLoadConfigWithEmptyTemplates
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotLoadConfigWhenPipelineHasNoStages() { String content = (""" <cruise schemaVersion='%d'> <server /> <pipelines> <pipeline name='pipeline1'> <materials> <svn url ="svnurl"/> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotLoadConfigWhenPipelineHasNoStages
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowReferencingTemplateThatDoesNotExist() { String content = (""" <cruise schemaVersion='%d'> <server /> <pipelines> <pipeline name='pipeline1' template='abc'> <materials> <svn url ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowReferencingTemplateThatDoesNotExist
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowPipelineToReferenceTemplate() { String content = (""" <cruise schemaVersion='%d'> <server> </server> <pipelines> <pipeline name='pipeline1' template='abc'> <materials> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowPipelineToReferenceTemplate
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowAdminInPipelineGroups() { String content = (""" <cruise schemaVersion='%d'> <server > </server> <pipelines group="first"> <authorization> <admins> <user>foo</us...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowAdminInPipelineGroups
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowAdminWithRoleInPipelineGroups() { String content = (""" <cruise schemaVersion='%d'> <server > <security> <roles> <role name="bar"> <users> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowAdminWithRoleInPipelineGroups
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAddJobTimeoutAttributeToServerTagAndDefaultItTo60_37xsl() { String content = (""" <cruise schemaVersion='%d'> <server> <siteUrls> <siteUrl>https://www.someurl.com/go</siteUrl> <secureSiteUrl>https://www.someothe...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAddJobTimeoutAttributeToServerTagAndDefaultItTo60_37xsl
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldGetTheJobTimeoutFromServerTag_37xsl() { String content = (""" <cruise schemaVersion='%d'> <server jobTimeout='30'> <siteUrls> <siteUrl>https://www.someurl.com/go</siteUrl> <secureSiteUrl>https://www.someotherurl...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldGetTheJobTimeoutFromServerTag_37xsl
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldHaveJobTimeoutAttributeOnJob_37xsl() { CruiseConfig cruiseConfig = ConfigMigrator.loadWithMigration(CONFIG_WITH_ANT_BUILDER).config; JobConfig jobConfig = cruiseConfig.findJob("pipeline1", "mingle", "cardlist"); assertThat(jobConfig.getTimeout()).isEqualTo("5"); }
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldHaveJobTimeoutAttributeOnJob_37xsl
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowSiteUrlAndSecureSiteUrlAttributes() { String content = (""" <cruise schemaVersion='%d'> <server> <siteUrls> <siteUrl>https://www.someurl.com/go</siteUrl> <secureSiteUrl>https://www.someotherurl.com/go</secu...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowSiteUrlAndSecureSiteUrlAttributes
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowPurgeStartAndPurgeUptoAttributes() { String content = (""" <cruise schemaVersion='%d'> <server> <artifacts> <purgeSettings> <purgeStartDiskSpace>1</purgeStartDiskSpace> <purgeUptoDisk...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowPurgeStartAndPurgeUptoAttributes
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowDoublePurgeStartAndPurgeUptoAttributes() { String content = (""" <cruise schemaVersion='%d'> <server> <artifacts> <purgeSettings> <purgeStartDiskSpace>1.2</purgeStartDiskSpace> <purge...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowDoublePurgeStartAndPurgeUptoAttributes
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowNullPurgeStartAndEnd() { String content = (""" <cruise schemaVersion='%d'> <server> </server></cruise>""").formatted(CONFIG_SCHEMA_VERSION); CruiseConfig cruiseConfig = ConfigMigrator.loadWithMigration(content).config; ass...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowNullPurgeStartAndEnd
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowAPipelineThatReferencesATemplateToHaveStages() { String content = (""" <cruise schemaVersion='%d'> <server /> <pipelines> <pipeline name='pipeline1' template='abc'> <materials> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowAPipelineThatReferencesATemplateToHaveStages
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadConfigWithPipelineTemplate() { String content = configWithTemplates( """ <templates> <pipeline name='erbshe'> <stage name='stage1'> <jobs> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadConfigWithPipelineTemplate
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadConfigWith2PipelineTemplates() { String content = configWithTemplates( """ <templates> <pipeline name='erbshe'> <stage name='stage1'> <jobs> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadConfigWith2PipelineTemplates
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldOnlySupportUniquePipelineTemplates() { String content = configWithTemplates( """ <templates> <pipeline name='erbshe'> <stage name='stage1'> <jobs> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldOnlySupportUniquePipelineTemplates
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowEmptyPipelineTemplates() { String content = configWithTemplates( """ <templates> <pipeline name='erbshe'> </pipeline> </templates>"""); assertThatThrownBy(() ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowEmptyPipelineTemplates
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowJobToHaveTheRunOnAllAgentsMarkerInItsName() { String invalidJobName = format("%s-%s-%s", "invalid-name", RunOnAllAgentsJobTypeConfig.MARKER, 1); testForInvalidJobName(invalidJobName, RunOnAllAgentsJobTypeConfig.MARKER); }
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowJobToHaveTheRunOnAllAgentsMarkerInItsName
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowJobToHaveTheRunInstanceMarkerInItsName() { String invalidJobName = format("%s-%s-%s", "invalid-name", RunMultipleInstanceJobTypeConfig.MARKER, 1); testForInvalidJobName(invalidJobName, RunMultipleInstanceJobTypeConfig.MARKER); }
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowJobToHaveTheRunInstanceMarkerInItsName
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
private void testForInvalidJobName(String invalidJobName, String marker) { String content = configWithPipeline( (""" <pipeline name="dev"> <materials> <svn url="file:///tmp/svn/repos/fifth" /> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
testForInvalidJobName
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllow_NonRunOnAllAgentJobToHavePartsOfTheRunOnAll_and_NonRunMultipleInstanceJobToHavePartsOfTheRunInstance_AgentsMarkerInItsName() { String content = configWithPipeline( """ <pipeline name="dev"> <materials> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllow_NonRunOnAllAgentJobToHavePartsOfTheRunOnAll_and_NonRunMultipleInstanceJobToHavePartsOfTheRunInstance_AgentsMarkerInItsName
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadConfigWithPipelinesMatchingUpWithPipelineDefinitionCaseInsensitively() { String content = configWithEnvironments( """ <environments> <environment name='uat'> <pipelines> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadConfigWithPipelinesMatchingUpWithPipelineDefinitionCaseInsensitively
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadConfigWithPipelinesNotMatchingUpWithPipelineDefinitionCaseInsensitively() { String content = configWithEnvironments( """ <environments> <environment name='uat'> <pipelines> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadConfigWithPipelinesNotMatchingUpWithPipelineDefinitionCaseInsensitively
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldLoadConfigWithPipelinesMatchingUpWithFirstPipelineDefinitionCaseInsensitively() { String content = configWithEnvironments( """ <environments> <environment name='uat'> <pipelines> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldLoadConfigWithPipelinesMatchingUpWithFirstPipelineDefinitionCaseInsensitively
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowConfigWithUnknownPipeline() { String content = configWithEnvironments( """ <environments> <environment name='uat'> <pipelines> <pipeline name='notpresent'/> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowConfigWithUnknownPipeline
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowDuplicatePipelineAcrossEnvironments() { String content = configWithEnvironments( """ <environments> <environment name='uat'> <pipelines> <pipeline name='pipeli...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowDuplicatePipelineAcrossEnvironments
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowDuplicatePipelinesInASingleEnvironment() { String content = configWithEnvironments( """ <environments> <environment name='uat'> <pipelines> <pipeline name='pip...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowDuplicatePipelinesInASingleEnvironment
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowConfigWithEnvironmentsWithSameNames() { String content = configWithEnvironments( """ <environments> <environment name='uat' /> <environment name='uat' /> </environment...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowConfigWithEnvironmentsWithSameNames
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowConfigWithInvalidName() { String content = configWithEnvironments( """ <environments> <environment name='exclamation is invalid !' /> </environments>""", CONFIG_SCHEMA_VERSION); assert...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowConfigWithInvalidName
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowConfigWithEmptyPipeline() { String content = configWithEnvironments( """ <environments> <environment name='uat'> <pipelines/> </environment> <...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowConfigWithEmptyPipeline
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowConfigWithDuplicateAgentUuidInEnvironment() { String content = configWithEnvironments(""" <environments> <environment name='uat'> <agents> <physical uuid='1' /> <physical uuid='1' /> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowConfigWithDuplicateAgentUuidInEnvironment
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowConfigWithEmptyEnvironmentsBlock() { String content = configWithEnvironments( "<environments>\n" + "</environments>", CONFIG_SCHEMA_VERSION); assertThatThrownBy(() -> xmlLoader.loadConfigHolder(content)) .as("XSD should no...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowConfigWithEmptyEnvironmentsBlock
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowConfigWithNoAgentsAndNoPipelinesInEnvironment() { String content = configWithEnvironments( """ <environments> <environment name='uat' /> </environments>""", CONFIG_SCHEMA_VERSION); CruiseC...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowConfigWithNoAgentsAndNoPipelinesInEnvironment
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldSupportEnvironmentVariablesInEnvironment() { String content = configWithEnvironments(""" <environments> <environment name='uat'> <environmentvariables> <variable name='VAR_NAME_1'><value>variable_name_value_1</v...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldSupportEnvironmentVariablesInEnvironment
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowCDATAInEnvironmentVariableValues() { //TODO : This should be fixed as part of #4865 //String multiLinedata = "\nsome data\nfoo bar"; String multiLinedata = "some data\nfoo bar"; String content = configWithEnvironments((""" <environments> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowCDATAInEnvironmentVariableValues
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldAllowOnlyOneTimerOnAPipeline() { String content = configWithPipeline( """ <pipeline name='pipeline1'> <timer>1 1 1 * * ? *</timer> <timer>2 2 2 * * ? *</timer> <materi...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldAllowOnlyOneTimerOnAPipeline
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldValidateTimerSpec() { String content = configWithPipeline( """ <pipeline name='pipeline1'> <timer>BAD BAD TIMER!!!!!</timer> <materials> <svn url ='svnurl'/> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldValidateTimerSpec
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowIllegalValueForRunOnAllAgents() { assertThatThrownBy(() -> loadJobWithRunOnAllAgents("bad_value")) .as("should have failed as runOnAllAgents' value is not valid(boolean)") .hasMessageContaining("'bad_value' is not a valid value for 'boolean'"); }
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowIllegalValueForRunOnAllAgents
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowIllegalValueForRunMultipleInstanceJob() { assertThatThrownBy(() -> loadJobWithRunMultipleInstance("-1")) .as("should have failed as runOnAllAgents' value is not valid(boolean)") .hasMessageContaining("'-1' is not facet-valid with respect to minInclusive '1' ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowIllegalValueForRunMultipleInstanceJob
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldSupportEnvironmentVariablesInAJob() { String content = configWithPipeline( """ <pipeline name='pipeline1'> <materials> <svn url ='svnurl'/> </materials> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldSupportEnvironmentVariablesInAJob
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldSupportEnvironmentVariablesInAPipeline() { String content = configWithPipeline( """ <pipeline name='pipeline1'> <environmentvariables> <variable name='PIPELINE_VARIABLE'><value>pipeline variable</v...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldSupportEnvironmentVariablesInAPipeline
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldSupportEnvironmentVariablesInAStage() { String content = configWithPipeline( """ <pipeline name='pipeline1'> <materials> <svn url ='svnurl'/> </materials> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldSupportEnvironmentVariablesInAStage
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowDuplicateEnvironmentVariablesInAJob() { String content = configWithPipeline( """ <pipeline name='pipeline1'> <materials> <svn url ='svnurl'/> </materials> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowDuplicateEnvironmentVariablesInAJob
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowDuplicateParamsInAPipeline() { String content = (""" <cruise schemaVersion='%d'> <server /> <pipelines> <pipeline name='dev'> <params> <param name='same-name'>ls</param> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowDuplicateParamsInAPipeline
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowParamsToBeUsedInNames() { String content = (""" <cruise schemaVersion='%d'> <server /> <pipelines> <pipeline name='dev'> <params> <param name='command'>ls</param> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowParamsToBeUsedInNames
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowDuplicateEnvironmentVariablesInAPipeline() { String content = configWithPipeline( """ <pipeline name='pipeline1'> <environmentvariables> <variable name='PIPELINE_VARIABLE'><value>p...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowDuplicateEnvironmentVariablesInAPipeline
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowDuplicateEnvironmentVariablesInAStage() { String content = configWithPipeline( """ <pipeline name='pipeline1'> <materials> <svn url ='svnurl'/> </materials> ...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowDuplicateEnvironmentVariablesInAStage
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0
@Test void shouldNotAllowDuplicateEnvironmentVariablesInAnEnvironment() { String content = configWithEnvironments(""" <environments> <environment name='uat'> <environmentvariables> <variable name='FOO'><value>foo</value></variab...
This is a test for a specific bug at a customer installation caused by a StackOverflowException in Xerces. It seems to be caused by a regex bug in nonEmptyString.
shouldNotAllowDuplicateEnvironmentVariablesInAnEnvironment
java
gocd/gocd
config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/MagicalGoConfigXmlLoaderTest.java
Apache-2.0