-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mirrors are now included in the returned list of known repo locations. Also, these test cases have been added: - testMirror: the test server is accessed over a mirror without authentication. - testAuthMirror: the test server is accessed over a mirror with authentication. - testTargetDefinitionMirror: this one tries to resolve a target definition from a p2 repo accessed over a mirror with no authentication. - testTargetDefinitionAuthMirror: this one tries to resolve a target definition from a p2 repo accessed over an authenticated mirror. This is the one that actually reproduced the bug that has been fixed here. (cherry picked from commit 1b787a7)
- Loading branch information
Showing
6 changed files
with
124 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tycho-its/projects/target.httpAuthentication/settings-auth-mirror.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<settings> | ||
<servers> | ||
<server> | ||
<id>test-auth-mirror</id> | ||
<username>mirror-user</username> | ||
<password>mirror-password</password> | ||
</server> | ||
</servers> | ||
<mirrors> | ||
<mirror> | ||
<id>test-auth-mirror</id> | ||
<url>${p2.authMirror}</url> | ||
<mirrorOf>test-server</mirrorOf> | ||
<layout>p2</layout> | ||
<mirrorOfLayouts>p2</mirrorOfLayouts> | ||
</mirror> | ||
</mirrors> | ||
</settings> |
11 changes: 11 additions & 0 deletions
11
tycho-its/projects/target.httpAuthentication/settings-mirror.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<settings> | ||
<mirrors> | ||
<mirror> | ||
<id>test-mirror</id> | ||
<url>${p2.mirror}</url> | ||
<mirrorOf>test-server</mirrorOf> | ||
<layout>p2</layout> | ||
<mirrorOfLayouts>p2</mirrorOfLayouts> | ||
</mirror> | ||
</mirrors> | ||
</settings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters