Skip to content

Conversation

mivola
Copy link
Contributor

@mivola mivola commented Jul 2, 2018

No description provided.

@mivola
Copy link
Contributor Author

mivola commented Jul 2, 2018

Travis failed b/c of one test: NoExecutorStartedGetJobXmlIT.getJobXmlShouldReturnTheExpectedConfigXml(). I can easily fix this test by adjusting the expected XML, but I wonder if this is really a useful test?

<defaultExcludes>true</defaultExcludes>
<caseSensitive>true</caseSensitive>
</hudson.tasks.ArtifactArchiver>
</publishers>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why you have change the content of that file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I need a job that actually does archive some files to get a proper Artifact object in NoExecutorStartedGetJobDetailsIT#shouldCheckTheBuildCause().

assertThat(details.getArtifacts()).isNotNull();
assertThat(details.getArtifacts().size()).isEqualTo(2);
details.getArtifacts().forEach(a -> assertThat(a.getClient()).isNotNull());

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a good reason why you changed the behaviour of this integration test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is required to test that "artifact.getClient()" is properly set (i.e. not null). But I guess it might be better to have a dedicated test method instead?

update from upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants