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 shouldAllowParamsInEnvironmentVariablesInAPipeline() {
String content = configWithPipeline(
"""
<pipeline name='pipeline1'>
<params>
<param name="some_param">param_name</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. | shouldAllowParamsInEnvironmentVariablesInAPipeline | 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 shouldSupportRunOnAllAgents() throws Exception {
CruiseConfig cruiseConfig = loadJobWithRunOnAllAgents("true");
JobConfig job = cruiseConfig.findJob("pipeline1", "mingle", "do-something");
JobConfig jobConfig = new JobConfig("do-something");
ExecTask echo = new ExecTask("e... | 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. | shouldSupportRunOnAllAgents | 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 shouldSupportRunMultipleInstance() throws Exception {
CruiseConfig cruiseConfig = loadJobWithRunMultipleInstance("10");
JobConfig job = cruiseConfig.findJob("pipeline1", "mingle", "do-something");
JobConfig jobConfig = new JobConfig("do-something");
ExecTask echo = new Exe... | 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. | shouldSupportRunMultipleInstance | 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 shouldUnderstandEncryptedPasswordAttributeForSvnMaterial() throws Exception {
String password = "abc";
String encryptedPassword = new GoCipher().encrypt(password);
String content = configWithPipeline(format(
"""
<pipeline name='pipeline1'>
... | 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. | shouldUnderstandEncryptedPasswordAttributeForSvnMaterial | 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 shouldSupportEmptyPipelineGroup() throws Exception {
PipelineConfigs group = new BasicPipelineConfigs("defaultGroup", new Authorization());
CruiseConfig config = new BasicCruiseConfig(group);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
new MagicalGoConfigXm... | 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. | shouldSupportEmptyPipelineGroup | 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 CruiseConfig loadJobWithRunOnAllAgents(String value) throws Exception {
String content = configWithPipeline(
("""
<pipeline name='pipeline1'>
<materials>
<svn url ='svnurl'/>
</m... | 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. | loadJobWithRunOnAllAgents | 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 CruiseConfig loadJobWithRunMultipleInstance(String value) throws Exception {
String content = configWithPipeline(
("""
<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. | loadJobWithRunMultipleInstance | 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 assertValidMaterials(String materials) {
String pipelineXmlPartial =
("""
<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config... | 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. | assertValidMaterials | 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 shouldAllowResourcesWithParamsForJobs() {
CruiseConfig cruiseConfig = new BasicCruiseConfig();
cruiseConfig.initializeServer();
cruiseConfig.addTemplate(new PipelineTemplateConfig(new CaseInsensitiveString("template"), stageWithJobResource("#{PLATFORM}")));
PipelineConfig... | 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. | shouldAllowResourcesWithParamsForJobs | 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 shouldAllowRoleWithParamsForStageInTemplate() {
CruiseConfig cruiseConfig = new BasicCruiseConfig();
cruiseConfig.initializeServer();
cruiseConfig.server().security().addRole(new RoleConfig(new CaseInsensitiveString("role")));
cruiseConfig.addTemplate(new PipelineTemplate... | 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. | shouldAllowRoleWithParamsForStageInTemplate | 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 |
@SuppressWarnings("SameParameterValue")
private StageConfig stageWithAuth(String role) {
StageConfig stage = stageWithJobResource("foo");
stage.getApproval().getAuthConfig().add(new AdminRole(new CaseInsensitiveString(role)));
return stage;
} | 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. | stageWithAuth | 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 shouldAllowOnlyOneOfTrackingToolOrMingleConfigInSourceXml() {
String content = configWithPipeline(
"""
<pipeline name='pipeline1'>
<trackingtool link="https://some-tracking-tool/projects/go/cards/${ID}" regex="##(\\d+)" />
... | 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. | shouldAllowOnlyOneOfTrackingToolOrMingleConfigInSourceXml | 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 shouldAllowTFSMaterial() {
String content = configWithPipeline(
"""
<pipeline name='some_pipeline'>
<materials>
<tfs url='tfsurl' username='foo' password='bar' projectPath='project-path' />
... | 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. | shouldAllowTFSMaterial | 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 shouldAllowAnEnvironmentVariableToBeMarkedAsSecure_WithValueInItsOwnTag() throws Exception {
String cipherText = new GoCipher().encrypt("plainText");
String content = configWithPipeline(
("""
<pipeline name='some_pipeline'>
<... | 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. | shouldAllowAnEnvironmentVariableToBeMarkedAsSecure_WithValueInItsOwnTag | 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 shouldMigrateEmptyEnvironmentVariable() {
String content = configWithPipeline(
"""
<pipeline name='some_pipeline'>
<environmentvariables>
<variable name="var_name" />
</en... | 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. | shouldMigrateEmptyEnvironmentVariable | 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 shouldAllowAnEnvironmentVariableToBeMarkedAsSecure_WithEncryptedValueInItsOwnTag() throws Exception {
String value = "abc";
String encryptedValue = new GoCipher().encrypt(value);
String content = configWithPipeline(format(
"""
<pipeline name... | 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. | shouldAllowAnEnvironmentVariableToBeMarkedAsSecure_WithEncryptedValueInItsOwnTag | 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 shouldNotAllowWorkspaceOwnerAndWorkspaceAsAttributesOnTfsMaterial() {
String content = configWithPipeline(
"""
<pipeline name='some_pipeline'>
<materials>
<tfs url='tfsurl' username='foo' password='b... | 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. | shouldNotAllowWorkspaceOwnerAndWorkspaceAsAttributesOnTfsMaterial | 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 shouldMigrateConfigToSplitUsernameAndDomainAsAttributeOnTfsMaterial() {
String content = configWithPipeline(
"""
<pipeline name='some_pipeline'>
<materials>
<tfs url='tfsurl' username='domain\\userna... | 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. | shouldMigrateConfigToSplitUsernameAndDomainAsAttributeOnTfsMaterial | 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 shouldAllowUserToSpecify_PathFromAncestor_forFetchArtifactFromAncestor() {
String content = configWithPipeline(
"""
<pipeline name='uppest_pipeline'>
<materials>
<git url="foo" />
... | 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. | shouldAllowUserToSpecify_PathFromAncestor_forFetchArtifactFromAncestor | 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 should_NOT_allowUserToSpecifyFetchStage_afterUpstreamStage() {
String content = configWithPipeline(
"""
<pipeline name='up_pipeline'>
<materials>
<git url="/tmp/git"/>
</materia... | 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. | should_NOT_allowUserToSpecifyFetchStage_afterUpstreamStage | 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 shouldDeserializeGroupXml() throws Exception {
String partialXml = """
<pipelines group="group_name">
<pipeline name="new_name">
<materials>
<svn url="file:///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. | shouldDeserializeGroupXml | 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 shouldRegisterAllGoConfigValidators() {
Stream<String> names = MagicalGoConfigXmlLoader.VALIDATORS.stream().map(o -> o.getClass().getCanonicalName());
assertThat(names).containsExactly(
ArtifactDirValidator.class.getCanonicalName(),
ServerIdImmutabilityValidator.c... | 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. | shouldRegisterAllGoConfigValidators | 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 shouldResolvePackageReferenceElementForAMaterialInConfig() throws Exception {
String xml = ("""
<cruise schemaVersion='%d'>
<repositories>
<repository id='repo-id' name='name'>
<pluginConfiguration id='plugin-id' version='1.0... | 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. | shouldResolvePackageReferenceElementForAMaterialInConfig | 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 shouldBeAbleToResolveSecureConfigPropertiesForPackages() throws Exception {
String encryptedValue = new GoCipher().encrypt("secure-two");
String xml = ("""
<cruise schemaVersion='%d'>
<repositories>
<repository id='repo-id' name='name'>
... | 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. | shouldBeAbleToResolveSecureConfigPropertiesForPackages | 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 shouldResolvePackageRepoReferenceElementForAPackageInConfig() throws Exception {
String xml = ("""
<cruise schemaVersion='%d'>
<repositories>
<repository id='repo-id' name='name'>
<pluginConfiguration id='plugin-id' version='... | 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. | shouldResolvePackageRepoReferenceElementForAPackageInConfig | 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 shouldFailValidationIfPackageDefinitionWithDuplicateFingerprintExists() {
com.thoughtworks.go.plugin.api.material.packagerepository.PackageConfiguration packageConfiguration = new com.thoughtworks.go.plugin.api.material.packagerepository.PackageConfiguration();
packageConfiguration.add(ne... | 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. | shouldFailValidationIfPackageDefinitionWithDuplicateFingerprintExists | 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 String withPackages(String repo, String packages) {
return format(repo, packages);
} | 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. | withPackages | 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 shouldThrowXsdValidationWhenPackageRepositoryIdsAreDuplicate() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO, "") + withPackages(REPO, "") + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml,
"Duplicat... | 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. | shouldThrowXsdValidationWhenPackageRepositoryIdsAreDuplicate | 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 shouldThrowXsdValidationWhenPackageRepositoryNamesAreDuplicate() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + format(REPO_WITH_NAME, "1", "repo", "") + format(REPO_WITH_NAME, "2", "repo", "") + " </repositories></cruise>";
assertXsdFailureDurin... | 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. | shouldThrowXsdValidationWhenPackageRepositoryNamesAreDuplicate | 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 shouldThrowXsdValidationWhenPackageIdsAreDuplicate() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO, format("<packages>%s%s</packages>",
PACKAGE, PACKAGE)) + " </repositories></cruise>";
assertXsdFailureDuringLo... | 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. | shouldThrowXsdValidationWhenPackageIdsAreDuplicate | 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 shouldThrowXsdValidationWhenPackageRepositoryIdIsEmpty() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_EMPTY_ID, "") + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "Repo id is invalid. \"\" should conform t... | 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. | shouldThrowXsdValidationWhenPackageRepositoryIdIsEmpty | 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 shouldThrowXsdValidationWhenPackageRepositoryIdIsInvalid() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_INVALID_ID, "") + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "Repo id is invalid. \"id with space\"... | 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. | shouldThrowXsdValidationWhenPackageRepositoryIdIsInvalid | 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 shouldThrowXsdValidationWhenPackageRepositoryNameIsMissing() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_MISSING_NAME, "") + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "\"Name\" is required for Reposito... | 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. | shouldThrowXsdValidationWhenPackageRepositoryNameIsMissing | 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 shouldThrowXsdValidationWhenPackageRepositoryNameIsEmpty() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_EMPTY_NAME, "") + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "Name is invalid. \"\" should conform ... | 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. | shouldThrowXsdValidationWhenPackageRepositoryNameIsEmpty | 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 shouldThrowXsdValidationWhenPackageRepositoryNameIsInvalid() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_INVALID_NAME, "") + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "Name is invalid. \"name with spac... | 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. | shouldThrowXsdValidationWhenPackageRepositoryNameIsInvalid | 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 shouldGenerateRepoAndPkgIdWhenMissing() throws Exception {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_MISSING_ID,
PACKAGE_WITH_MISSING_ID) + " </repositories></cruise>";
GoConfigHolder configHolder = xmlLo... | 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. | shouldGenerateRepoAndPkgIdWhenMissing | 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 shouldThrowXsdValidationWhenPackageIdIsEmpty() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_EMPTY_ID, PACKAGE_WITH_EMPTY_ID) + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "Repo id is invalid. \"\" should ... | 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. | shouldThrowXsdValidationWhenPackageIdIsEmpty | 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 shouldThrowXsdValidationWhenPackageIdIsInvalid() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_INVALID_ID,
PACKAGE_WITH_INVALID_ID) + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "Repo id is... | 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. | shouldThrowXsdValidationWhenPackageIdIsInvalid | 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 shouldThrowXsdValidationWhenPackageNameIsMissing() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_MISSING_NAME,
PACKAGE_WITH_MISSING_NAME) + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "\"Na... | 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. | shouldThrowXsdValidationWhenPackageNameIsMissing | 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 shouldThrowXsdValidationWhenPackageNameIsEmpty() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_EMPTY_NAME,
PACKAGE_WITH_EMPTY_NAME) + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "Name is in... | 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. | shouldThrowXsdValidationWhenPackageNameIsEmpty | 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 shouldThrowXsdValidationWhenPackageNameIsInvalid() {
String xml = "<cruise schemaVersion='" + CONFIG_SCHEMA_VERSION + "'><repositories>\n" + withPackages(REPO_WITH_INVALID_NAME,
PACKAGE_WITH_INVALID_NAME) + " </repositories></cruise>";
assertXsdFailureDuringLoad(xml, "Name... | 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. | shouldThrowXsdValidationWhenPackageNameIsInvalid | 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 shouldLoadAutoUpdateValueForPackageWhenLoadedFromConfigFile() throws Exception {
String configTemplate = ("""
<cruise schemaVersion='%d'>
<repositories>
<repository id='2ef830d7-dd66-42d6-b393-64a84646e557' name='GoYumRepo'>
<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. | shouldLoadAutoUpdateValueForPackageWhenLoadedFromConfigFile | 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 shouldAllowColonsInPipelineLabelTemplate() {
String xml = ("""
<cruise schemaVersion='%d'>
<repositories>
<repository id='repo-id' name='repo_name'>
<pluginConfiguration id='plugin-id' version='1.0'/>
<c... | 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. | shouldAllowColonsInPipelineLabelTemplate | 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 shouldAllowEmptyAuthorizationTagUnderEachTemplateWhileLoading() {
String configString =
("""
<cruise schemaVersion='%d'>
<templates>
<pipeline name='template-name'>
... | 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. | shouldAllowEmptyAuthorizationTagUnderEachTemplateWhileLoading | 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 shouldAllowPluggableTaskConfiguration() {
String configString =
("""
<cruise schemaVersion='%d'>
<pipelines>
<pipeline name='pipeline1'>
<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. | shouldAllowPluggableTaskConfiguration | 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 shouldBeAbleToResolveSecureConfigPropertiesForPluggableTasks() throws Exception {
String configString =
("""
<cruise schemaVersion='%d'>
<pipelines>
<pipeline name='pipeline1'>
<ma... | 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. | shouldBeAbleToResolveSecureConfigPropertiesForPluggableTasks | 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 |
@Override
public TaskConfig config() {
TaskConfig taskConfig = new TaskConfig();
taskConfig.addProperty("username").with(Property.SECURE, false);
taskConfig.addProperty("password").with(Property.SECURE, true);
return taskConfig;
} | 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. | config | 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 |
@Override
public TaskExecutor executor() {
return null;
} | 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. | executor | 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 |
@Override
public TaskView view() {
return null;
} | 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. | view | 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 |
@Override
public ValidationResult validate(TaskConfig configuration) {
return null;
} | 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. | validate | 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 shouldAllowTemplateViewConfigToBeSpecified() {
String configXml = ("""
<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion='%d'>
<s... | 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. | shouldAllowTemplateViewConfigToBeSpecified | 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 shouldAllowPipelineGroupAdminsToViewTemplateByDefault() {
String configXml = ("""
<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion='%d'>
... | 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. | shouldAllowPipelineGroupAdminsToViewTemplateByDefault | 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 shouldNotAllowGroupAdminsToViewTemplateIfTheOptionIsDisabled() {
String configXml = ("""
<?xml version="1.0" encoding="utf-8"?>
<cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion='%d'>
... | 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. | shouldNotAllowGroupAdminsToViewTemplateIfTheOptionIsDisabled | 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 shouldSerializeJobElasticProfileId() {
String configWithJobElasticProfileId =
"""
<cruise schemaVersion='119'>
<elastic jobStarvationTimeout="10">
<profiles>
<profile cluste... | 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. | shouldSerializeJobElasticProfileId | 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 shouldSerializeElasticAgentProfiles() {
String configWithElasticProfile =
"""
<cruise schemaVersion='119'>
<elastic jobStarvationTimeout="2">
<profiles>
<profile clusterProf... | 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. | shouldSerializeElasticAgentProfiles | 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 shouldNotAllowJobElasticProfileIdAndResourcesTogether() {
String configWithJobElasticProfile =
("""
<cruise schemaVersion='%d'>
<pipelines group="first">
<pipeline name="pipeline">
<m... | 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. | shouldNotAllowJobElasticProfileIdAndResourcesTogether | 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 shouldGetConfigRepoPreprocessor() {
MagicalGoConfigXmlLoader loader = new MagicalGoConfigXmlLoader(null, null);
assertThat(loader.getPreprocessorOfType(ConfigRepoPartialPreprocessor.class) instanceof ConfigRepoPartialPreprocessor).isTrue();
assertThat(loader.getPreprocessorOfType(... | 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. | shouldGetConfigRepoPreprocessor | 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 shouldMigrateEncryptedEnvironmentVariablesWithNewlineAndSpaces_XslMigrationFrom88To90(ResetCipher resetCipher) throws Exception {
resetCipher.setupDESCipherFile();
String plainText = "user-password!";
// "user-password!" encrypted using the above key
String encryptedValue... | 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. | shouldMigrateEncryptedEnvironmentVariablesWithNewlineAndSpaces_XslMigrationFrom88To90 | 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 shouldMigrateEncryptedPluginPropertyValueWithNewlineAndSpaces_XslMigrationFrom88To90(ResetCipher resetCipher) throws Exception {
resetCipher.setupDESCipherFile();
String plainText = "user-password!";
// "user-password!" encrypted using the above key
String encryptedValue ... | 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. | shouldMigrateEncryptedPluginPropertyValueWithNewlineAndSpaces_XslMigrationFrom88To90 | 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 shouldMigrateEncryptedMaterialPasswordWithNewlineAndSpaces_XslMigrationFrom88To90(ResetCipher resetCipher) throws Exception {
resetCipher.setupDESCipherFile();
String plainText = "user-password!";
// "user-password!" encrypted using the above key
String encryptedValue = "... | 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. | shouldMigrateEncryptedMaterialPasswordWithNewlineAndSpaces_XslMigrationFrom88To90 | 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 shouldMigrateServerMailHostEncryptedPasswordWithNewlineAndSpaces_XslMigrationFrom88To90(ResetCipher resetCipher) throws Exception {
resetCipher.setupDESCipherFile();
String plainText = "user-password!";
// "user-password!" encrypted using the above key
String encryptedVal... | 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. | shouldMigrateServerMailHostEncryptedPasswordWithNewlineAndSpaces_XslMigrationFrom88To90 | 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 shouldFailValidationForPipelineWithDuplicateStageNames() {
assertFailureDuringLoad(PIPELINES_WITH_DUPLICATE_STAGE_NAME,
RuntimeException.class, "You have defined multiple stages called 'mingle'. Stage names are case-insensitive and must be unique."
);
} | 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. | shouldFailValidationForPipelineWithDuplicateStageNames | 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 shouldThrowExceptionIfBuildPlansExistWithTheSameNameWithinAPipeline() {
assertXsdFailureDuringLoad(JOBS_WITH_SAME_NAME,
"Duplicate unique value [unit] declared for identity constraint of element \"jobs\".",
"Duplicate unique value [unit] declared for identity const... | 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. | shouldThrowExceptionIfBuildPlansExistWithTheSameNameWithinAPipeline | 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 shouldThrowExceptionIfPipelineDoesNotContainAnyBuildPlans() {
assertXsdFailureDuringLoad(STAGE_WITH_NO_JOBS,
"The content of element 'jobs' is not complete. One of '{job}' is expected.");
} | 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. | shouldThrowExceptionIfPipelineDoesNotContainAnyBuildPlans | 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 shouldAllowOnlyThreeValuesForLockBehavior() throws Exception {
xmlLoader.loadConfigHolder(pipelineWithAttributes("name=\"p1\" lockBehavior=\"" + LOCK_VALUE_LOCK_ON_FAILURE + "\"", CONFIG_SCHEMA_VERSION));
xmlLoader.loadConfigHolder(pipelineWithAttributes("name=\"p2\" lockBehavior=\"" + LO... | 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. | shouldAllowOnlyThreeValuesForLockBehavior | 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 shouldDisallowModificationOfTokenGenerationKeyWhileTheServerIsOnline() throws Exception {
xmlLoader.loadConfigHolder(configWithTokenGenerationKey("something"));
systemEnvironment.setProperty("go.enforce.server.immutability", "Y");
assertFailureDuringLoad(configWithTokenGeneration... | 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. | shouldDisallowModificationOfTokenGenerationKeyWhileTheServerIsOnline | 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 String configWithTokenGenerationKey(final String key) {
final ServerIdImmutabilityValidator serverIdImmutabilityValidator = (ServerIdImmutabilityValidator) MagicalGoConfigXmlLoader.VALIDATORS.stream().filter(goConfigValidator -> goConfigValidator instanceof ServerIdImmutabilityValidator).findFirst().orE... | 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. | configWithTokenGenerationKey | 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 shouldDeserializeArtifactStores() {
String configXml = ("""
<cruise schemaVersion='%d'>
<artifactStores>
<artifactStore pluginId="foo" id="bar">
<property>
<key>ACCESS_KEY</key>
... | 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. | shouldDeserializeArtifactStores | 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 shouldNotDeserializeArtifactStoreWhenIdIsNotDefined() {
String configXml = ("""
<cruise schemaVersion='%d'>
<artifactStores>
<artifactStore pluginId="foo">
<property>
<key>ACCESS_KEY</key>
... | 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. | shouldNotDeserializeArtifactStoreWhenIdIsNotDefined | 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 shouldNotDeserializeArtifactStoreWhenPluginIdIsNotDefined() {
String configXml = ("""
<cruise schemaVersion='%d'>
<artifactStores>
<artifactStore id="foo">
<property>
<key>ACCESS_KEY</key>
... | 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. | shouldNotDeserializeArtifactStoreWhenPluginIdIsNotDefined | 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 shouldDeserializePluggableArtifactConfig() {
String configXml = ("""
<cruise schemaVersion='%d'>
<artifactStores>
<artifactStore pluginId="cd.go.s3" id="s3">
<property>
<key>ACCESS_KEY</key>
... | 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. | shouldDeserializePluggableArtifactConfig | 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 shouldNotDeserializePluggableArtifactConfigWhenIdIsNotDefined() {
String configXml = ("""
<cruise schemaVersion='%d'>
<artifactStores>
<artifactStore pluginId="cd.go.s3" id="s3">
<property>
<ke... | 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. | shouldNotDeserializePluggableArtifactConfigWhenIdIsNotDefined | 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 shouldNotDeserializePluggableArtifactConfigWhenStoreIdIsNotDefined() {
String configXml = ("""
<cruise schemaVersion='%d'>
<artifactStores>
<artifactStore pluginId="cd.go.s3" id="s3">
<property>
... | 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. | shouldNotDeserializePluggableArtifactConfigWhenStoreIdIsNotDefined | 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 shouldNotDeserializePluggableArtifactConfigWhenStoreWithIdNotFound() {
String configXml = ("""
<cruise schemaVersion='%d'>
<pipelines group="first">
<pipeline name="up42">
<materials>
<git url="test-... | 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. | shouldNotDeserializePluggableArtifactConfigWhenStoreWithIdNotFound | 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 shouldMigrateDESEncryptedEnvironmentVariables_XslMigrationFrom108To109(ResetCipher resetCipher) throws Exception {
resetCipher.setupDESCipherFile();
String clearText = "user-password!";
// "user-password!" encrypted using the above key
String desEncryptedPassword = "mvcX9... | 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. | shouldMigrateDESEncryptedEnvironmentVariables_XslMigrationFrom108To109 | 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 shouldRemoveEmptySCMPasswordAndEncryptedPasswordAttributes_XslMigrationFrom109To110(ResetCipher resetCipher) throws Exception {
resetCipher.setupDESCipherFile();
String content = configWithPipeline(
"""
<pipeline name='some_pipeline'>
... | 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. | shouldRemoveEmptySCMPasswordAndEncryptedPasswordAttributes_XslMigrationFrom109To110 | 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 shouldMigrateDESEncryptedPluginPropertyValue_XslMigrationFrom108To109(ResetCipher resetCipher) throws Exception {
resetCipher.setupDESCipherFile();
String clearText = "user-password!";
// "user-password!" encrypted using the above key
String desEncryptedPassword = "mvcX9y... | 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. | shouldMigrateDESEncryptedPluginPropertyValue_XslMigrationFrom108To109 | 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 shouldMigrateDESEncryptedMaterialPassword_XslMigrationFrom108To109(ResetCipher resetCipher) throws Exception {
resetCipher.setupDESCipherFile();
String clearText = "user-password!";
// "user-password!" encrypted using the above key
String desEncryptedPassword = "mvcX9yrQs... | 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. | shouldMigrateDESEncryptedMaterialPassword_XslMigrationFrom108To109 | 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 shouldMigrateDESServerMailHostEncryptedPassword_XslMigrationFrom108To109(ResetCipher resetCipher) throws Exception {
resetCipher.setupDESCipherFile();
String clearText = "user-password!";
// "user-password!" encrypted using the above key
String desEncryptedPassword = "mvc... | 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. | shouldMigrateDESServerMailHostEncryptedPassword_XslMigrationFrom108To109 | 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 shouldEncryptPluggablePublishArtifactProperties() throws Exception {
PluginDescriptor pluginDescriptor = GoPluginDescriptor.builder().id("cd.go.artifact.docker.registry").version("1.0").build();
ArtifactPluginInfo artifactPluginInfo = buildArtifactPluginInfo(pluginDescriptor);
Art... | 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. | shouldEncryptPluggablePublishArtifactProperties | 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 static ArtifactPluginInfo buildArtifactPluginInfo(PluginDescriptor pluginDescriptor) {
PluginConfiguration buildFile = new PluginConfiguration("BuildFile", new Metadata(false, false));
PluginConfiguration image = new PluginConfiguration("Image", new Metadata(false, true));
PluginConfigur... | 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. | buildArtifactPluginInfo | 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 shouldLoadSecretConfigs() {
String content = config(
"""
<secretConfigs>
<secretConfig id="my_secret" pluginId="gocd_file_based_plugin">
<description>All secrets for env1</description>
... | 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. | shouldLoadSecretConfigs | 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 shouldNotAllowMoreThanOneOnCancelTaskWhenDefined() {
String xml = ("""
<cruise schemaVersion='%d'>
<server>
<artifacts>
<artifactsDir>artifactsDir</artifactsDir>
</artifacts>
</server>
... | 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. | shouldNotAllowMoreThanOneOnCancelTaskWhenDefined | 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 shouldLoadHgConfigWithBranchAttributePostSchemaVersion123() throws Exception {
String content = config(
"""
<config-repos>
<config-repo id="Test" pluginId="cd.go.json">
<hg url="https://domain.com"... | 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. | shouldLoadHgConfigWithBranchAttributePostSchemaVersion123 | 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 shouldLoadRulesConfigWhereActionAndTypeHasWildcardForSchemaVersion124() throws Exception {
String content = config(
"""
<secretConfigs>
<secretConfig id="example" pluginId="vault_based_plugin">
<description... | 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. | shouldLoadRulesConfigWhereActionAndTypeHasWildcardForSchemaVersion124 | 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 shouldLoadAllowOnlySuccessOnManualApprovalType() throws Exception {
Approval approval = xmlLoader.fromXmlPartial("<approval type=\"manual\" allowOnlyOnSuccess=\"true\" />", Approval.class);
assertThat(approval.getType()).isEqualTo("manual");
assertThat(approval.isAllowOnlyOnSucce... | 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. | shouldLoadAllowOnlySuccessOnManualApprovalType | 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 shouldLoadAllowOnlySuccessOnSuccessApprovalType() throws Exception {
String content = config(
"""
<pipelines group="first">
<pipeline name="pipeline">
<materials>
<hg url="/hgrepo... | 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. | shouldLoadAllowOnlySuccessOnSuccessApprovalType | 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 shouldLoadInvertFilterForScmMaterial() throws Exception {
String content = config(
"""
<scms>
<scm id="abcd" name="scm_name">
<pluginConfiguration id="GitPathMaterial" version="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. | shouldLoadInvertFilterForScmMaterial | 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 assertConfigProperty(Configuration configuration, String name, String plainTextValue, boolean shouldBeEncrypted) {
assertThat(configuration.getProperty(name).getValue()).isEqualTo(plainTextValue);
if (shouldBeEncrypted) {
assertThat(configuration.getProperty(name).getEncryptedVa... | 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. | assertConfigProperty | 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 assertXsdFailureDuringLoad(String configXML, String... expectedMessages) {
assertFailureDuringLoad(configXML, XsdValidationException.class, expectedMessages);
} | 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. | assertXsdFailureDuringLoad | 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 assertFailureDuringLoad(String configXML,
Class<?> expectedExceptionClass,
String... expectedMessage) {
assertThatThrownBy(() -> xmlLoader.loadConfigHolder(configXML))
.as("Should have failed with an exce... | 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. | assertFailureDuringLoad | 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 StageConfig stageWithJobResource(String resourceName) {
StageConfig stage = StageConfigMother.custom("stage", "job");
JobConfigs configs = stage.allBuildPlans();
ResourceConfig resourceConfig = new ResourceConfig();
resourceConfig.setName(resourceName);
configs.get(0).res... | 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. | stageWithJobResource | 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 |
public File addFileWithPipeline(String relativePath, PipelineConfig pipelineConfig) throws Exception {
PartialConfig partialConfig = new PartialConfig();
partialConfig.getGroups().addPipeline(PipelineConfigs.DEFAULT_GROUP, pipelineConfig);
return this.addFileWithPartialConfig(relativePath, parti... | Can create a directory with many configuration files | addFileWithPipeline | java | gocd/gocd | config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | Apache-2.0 |
public File addFileWithPartialConfig(String relativePath, PartialConfig partialConfig) throws Exception {
File dest = new File(directory, relativePath);
FileUtil.mkdirsParentQuietly(dest);
BasicCruiseConfig cruiseConfig = new BasicCruiseConfig();
cruiseConfig.setGroup(partialConfig.getG... | Can create a directory with many configuration files | addFileWithPartialConfig | java | gocd/gocd | config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | Apache-2.0 |
public File writeFileWithContent(String relativePath, String content) throws Exception {
File dest = new File(directory, relativePath);
FileUtil.mkdirsParentQuietly(dest);
Files.writeString(dest.toPath(), content, UTF_8);
return dest;
} | Can create a directory with many configuration files | writeFileWithContent | java | gocd/gocd | config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | Apache-2.0 |
public File addFileWithPipelineGroup(String relativePath, PipelineConfigs group) throws Exception {
PartialConfig partialConfig = new PartialConfig();
partialConfig.getGroups().add(group);
return this.addFileWithPartialConfig(relativePath, partialConfig);
} | Can create a directory with many configuration files | addFileWithPipelineGroup | java | gocd/gocd | config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | Apache-2.0 |
public File addFileWithEnvironment(String relativePath, EnvironmentConfig env) throws Exception {
PartialConfig partialConfig = new PartialConfig();
partialConfig.getEnvironments().add(env);
return this.addFileWithPartialConfig(relativePath, partialConfig);
} | Can create a directory with many configuration files | addFileWithEnvironment | java | gocd/gocd | config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | https://github.com/gocd/gocd/blob/master/config/config-server/src/test/java/com/thoughtworks/go/config/parts/PartialConfigHelper.java | Apache-2.0 |
public static void main(String[] args) throws Exception {
new ProcessRunner().command("curl", "--insecure", "http://localhost:8153/go/admin/agent-plugins.zip", "--fail", "--silent", "--output", "agent-plugins.zip").failOnError(false).run();
new ProcessRunner().command("curl", "--insecure", "http://local... | Understands how to run a local development mode agent so we can develop live
Set the following before running the main method:
Working directory: <project-path>/agent
VM arguments: -Djava.awt.headless=true
classpath: Use classpath of 'gocd.development-utility.development-agent.main'. | main | java | gocd/gocd | development-utility/development-agent/src/main/java/com/thoughtworks/go/agent/DevelopmentAgent.java | https://github.com/gocd/gocd/blob/master/development-utility/development-agent/src/main/java/com/thoughtworks/go/agent/DevelopmentAgent.java | Apache-2.0 |
private static void assertActivationJarPresent() {
if (DevelopmentAgent.class.getResource("/go-plugin-activator.jar") == null) {
System.err.println("Could not find plugin activator jar, Plugin framework will not be loaded. Hint: Did you run `./gradlew prepare`?");
}
} | Understands how to run a local development mode agent so we can develop live
Set the following before running the main method:
Working directory: <project-path>/agent
VM arguments: -Djava.awt.headless=true
classpath: Use classpath of 'gocd.development-utility.development-agent.main'. | assertActivationJarPresent | java | gocd/gocd | development-utility/development-agent/src/main/java/com/thoughtworks/go/agent/DevelopmentAgent.java | https://github.com/gocd/gocd/blob/master/development-utility/development-agent/src/main/java/com/thoughtworks/go/agent/DevelopmentAgent.java | Apache-2.0 |
public static void main(String[] args) throws Exception {
LogConfigurator logConfigurator = new LogConfigurator(DEFAULT_LOGBACK_CONFIGURATION_FILE);
logConfigurator.initialize();
copyPluginAssets();
File webApp = new File("src/main/webapp");
if (!webApp.exists()) {
th... | Understands how to run a local development mode webserver so we can develop live
Set the following before running the main method:
Working directory: <project-path>/server
VM arguments:
-Xms512m -Xmx1024m -Djava.awt.headless=true
classpath: Use classpath of 'gocd.development-utility.development-server.main' | main | java | gocd/gocd | development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java | https://github.com/gocd/gocd/blob/master/development-utility/development-server/src/main/java/com/thoughtworks/go/server/DevelopmentServer.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.