1
0
Форкнуть 0
Граф коммитов

22 Коммитов

Автор SHA1 Сообщение Дата
jeschu1 2c42ca6421
Merge pull request #767 from jeschu1/pathpriority
Give path priority when supplied
2018-09-27 15:43:04 -04:00
Jessica Schumaker 5f712b59c9 devops: Give path priority when supplied
If the user supplies the path, give it priority for setting for setting `TargetUri.ActualUri`.  Needed for DevOps urls which require host/path[0] to authenticate
2018-09-26 09:35:50 -04:00
Jessica Schumaker c25ad07522 cli: add GCM_HTTP_TIMEOUT and httpTimeout support
Make network connection time-out configurable.  Provide a mechanism for setting `Global.RequestTimeout` via config or environment variables.
2018-09-21 14:17:27 -04:00
J Wyman 69db585b2d Azure DevOps Rebranding
- [x] Change all text, strings, and other resources which refer to Visual Studio Team Services [VSTS] to refer to Azure DevOps instead.
- [x] Change the VisualStudioTeamServices namespace and type names from Visual Studio Team Services / VSTS to Azure DevOps.
- [x] Change the VisualStudioTeamServices named projects to AzureDevops. Update all solution and cross-project references to accomodate for the changes.
- [x] Change the VisualStudioTeamServices named projects to AzureDevops. Update all solution and cross-project references to accomodate for the changes.
- [x] Move all files from 'VisualStudioTeamServices' into 'AzureDevOps' folders.
- [x] Update all solution and project references.
- [x] Update test data to use the new "Devops" name.
- [x] Since users won't be ready to update their branded configuration values, we need to retain support for the VSTS branded options; which emitting a warning for the deprecated option usage.
2018-09-12 17:21:36 -04:00
J Wyman ∞ e61bf943c5 cli: use the correct string comparer.
When comparing configuration values, the `ConfigValueComparer` should be used.
2018-08-15 16:34:42 -04:00
J Wyman ∞ 656851d8e6 cli: clean up code
Standardize and clean up the CLI code.

 - [x] Use a common style for all p/invoke callsites.
 - [x] Properly indent and scope `switch` statements.
 - [x] Ensure use of correct comparer types.
 - [x] Adopt use of inline declaration where suitable.
 - [x] Adopt use of `var` where suitable / avoid use of `var` where not suitable.
 - [x] Clean up `using` statements in file headers.
 - [x] Adopt `using static` statements where suitable.
 - [x] Implement debugger display attributes where needed.
2018-08-02 23:41:06 -04:00
J Wyman 40cac28aec sln: clean up proxy project files.
Clean up the proxy project files by adding a 'proxy.props' file to the root of the repository with common properties for proxy projects.

Update all proxy projects to reference the common 'proxy.props' file and remove the common properties from the individual project files.
2018-07-27 23:51:46 -04:00
J Wyman ∞ c6de631559 vsts: validate credentials, handle anonymous accounts.
VSTS has made a series of changes to their Identity service.

One such change is that the '_apis/connectiondata' always returns either "200 OK" or "404 Not Found". This means the returned content must be examined to determine if the credentials are valida or not.

Another change is that requests lacking "accepts", "accepts-encoding", and "cache-control" headers are aways given the 'anonymous user' response.

 - [x] Provide a method of detection for anonymous accounts during credential validation.
 - [x] Ensure that credential validation requests can handle HTTP cookies as part of their response flow.
 - [x] Add "accepts", "accepts-encoding", and "cache-control" headers to all network requests.
 - [x] Provide handling of "content-encoding" content of "gzip" and "deflate".
2018-07-23 00:13:10 -04:00
J Wyman a8d87f349c cli: add GCM_OVERRIDE_URL support.
Provide a mechanism for setting `TargetUri.ActualUri` via environment variables.

 - [x] Add `UrlOverride` property to `OperationArguments`.
 - [x] Add `UrlOverride` to the `KeyType` enumeration.
 - [x] Modify `OperationArguments` to use `UrlOverride` in its calculation of `TargetUri`.
 - [x] Add feature validation test.
2018-07-19 17:23:13 -04:00
J Wyman ∞ 99a831306b github: add capture and replay proxy.
Provide capture and reply proxy project for 'Github.Authentication'.

 - [x] Provide capture proxy.
 - [x] Provide replay proxy.
 - [x] Extend `Microsoft.Alm.Authentication.Test.UnitTestBase` with specialized support for GitHub vua `IGui`.
2018-07-18 15:50:04 -04:00
J Wyman ∞ 628bfc8ae7 alm: abstract settings.
In preparation for establishing capture and replay framework, global static services need to be replaced with context provided services.

 - [x] Provide a settings service provider.
 - [x] Abstract `System.Environment` functionality through service provider.
 - [x] Adopt contextual service provider settings abstraction.
2018-07-18 10:34:51 -04:00
J Wyman ∞ 312e4c59a3 shared: move more static values into instanced values.
In preparation for adding capture and replay proxies, more and more content cannot be static. In order to achieve this, as many static values are moved into instance values in the `Program` class.
2018-07-18 10:31:42 -04:00
J Wyman ∞ e5c0e5d9b6 build: update projects and dependencies.
- [x] Update test projects' .NET Framework target: 4.* -> 4.7.2.
 - [x] Update all projects to use the same version of nupkg dependencies.
2018-07-18 10:29:30 -04:00
J Wyman ∞ 861806497b alm: fix process memory reads
The shape of the `ProcessBasicInformation` was incorrect, this change fixes the shape and aligns it with the definition on Microsoft Docs.

Adds documentation comments to several types defined in the 'Microsoft.Alm.Win32' project.
2018-07-13 09:55:01 -04:00
J Wyman ∞ 6fa4bf033c cli-shared: optionally read actual-url from input
Read the request's "actual URL" from the input stream. To enable easier development debugging when setting the `OperationArguments.GitRemoteHttpCommandLine` value without having to execute "git-remote-http(s)" prior to GCM being started.
2018-06-25 15:12:40 -04:00
J Wyman ∞ 56d1867488 shared: native code clean up.
Minor clean up and improvements to native type aliases and functions.
2018-06-08 15:32:15 -04:00
J Wyman ∞ 8b6bcfd4a5 alm: enable remote url sniffing on 32-bit Windows.
Due to struct size differences, the remote URL capture via command line sniffing failed.

Instead of relying on fixed size and offset value, the p/invoke layer should use the offset and size values which align with the bitness of the process.
2018-06-08 15:32:15 -04:00
J Wyman ∞ 8723fd76c9 vsts: improve credential key generation.
Improve the credential key generation for VSTS account credentials. Update the pattern to use {host}/{organization} for the format when the repository is Azure hosted.
2018-06-08 15:32:15 -04:00
J Wyman ∞ d813f5283c vsts: remove "Vsts" from type names.
Now that the namespace is correctly 'VisualStudioTeamServices', remove "Vsts" from all types names.

  - `VstsAadAuthentication` -> `AadAuthentication`
  - `VstsAdalTokenCache` -> `AdalTokenCache`
  - `BaseVstsAuthenitcation` -> `Authentication`
  - `IVstsAadAuthenitcation` -> `IAadAuthentication`
  - `IVstsAuthority` -> `IAuthority`
  - `IVstsMsaAuthentication` -> `IMsaAuthentication`
  - `VstsLocationServiceException` -> `LocationServiceException`
  - `VstsMsaAuthentication` -> `MsaAuthentication`
  - `VstsTokenScope` -> `TokenScope`
2018-06-08 15:08:04 -04:00
J Wyman ∞ 36c6be2324 vsts: change VSTS namespace.
Change the namespace of VSTS authentication types:

  - `Micorsoft.Alm.Authentication` -> `VisualStudioTeamServices.Authentication`
2018-06-08 15:08:04 -04:00
J Wyman ∞ 9634ab0d30 shared: collate all shared projects
Group all of the shared projects under the same folder "Shared/", and update all referencing projects.

  - Move "Shared/" -> "Shared/Win32/"
  - Move "Cli/Shared/" -> "Shared/Cli/".
  - Move "Gui-Shared/" -> "Shared/Gui/".
  - Update project and solution files.
2018-05-17 16:11:59 -04:00
J Wyman ∞ 8bd2557579 cli-shared: read URL from git-remote-https process.
Add the ability to read the remote name and URL from the parent git-remote-http(s).exe process. The process must a parent of the current process.

Update `TargetUri` to accept a `commandUri` as part of its constructor; enabling the type to carry the URL read from the git-remote-http(s).exe process.

Add new `.CreateWith(...)` methods to `TargetUri` to more easily create new instances with only partial updates.
2018-05-17 13:44:16 -04:00