Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add access to information on the source of an artifact dependency #91

Merged
merged 3 commits into from
Feb 23, 2017

Conversation

3breadt
Copy link
Contributor

@3breadt 3breadt commented Feb 2, 2017

The ArtifactDependency class did not include information on the source build configuration of the dependency. This information is provided in the REST API in the "source-buildType" object.

I have added a new class SourceBuildType and added a corresponding property to the ArtifactDependency class. Now the build config information is automatically deserialized by EasyHttp.

@borismod
Copy link
Contributor

borismod commented Feb 2, 2017 via email

@3breadt
Copy link
Contributor Author

3breadt commented Feb 18, 2017

I extended the unit test AcceptanceTests.GetBuildConfiguration_Id to cover artifact dependencies and the new SourceBuildType property.

This does not cover the actual deserialization of the REST response. But I found no quick way to mock the actual HTTP responses, which would have made the test much more meaningful.

I see that so far none of your unit tests actually do that, so I assume this unit test is acceptable for you.

Of course I manually tested the code against an actual TeamCity installation and it works just fine.

@borismod
Copy link
Contributor

@3breadt thanks for your contribution

@borismod borismod merged commit d163dfa into QualiSystems:master Feb 23, 2017
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