-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from infin8x/master
Authenticated package source support
- Loading branch information
Showing
518 changed files
with
95,765 additions
and
2,945 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,4 +90,6 @@ typings/ | |
|
|
||
| # DynamoDB Local files | ||
| .dynamodb/ | ||
|
|
||
| .vscode/* | ||
| node_modules | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,185 @@ | ||
| // Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
|
||
| exports[`authutil tests Existing config not in repo root, sets up a partial NuGet.config user/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://nuget.pkg.github.com/OwnerName/index.json\\"/> | ||
| </config> | ||
| <packageSourceCredentials> | ||
| <GPR> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </GPR> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests Existing config w/ Azure Artifacts source and NuGet.org, sets up a partial NuGet.config user/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://pkgs.dev.azure.com/amullans/_packaging/GitHubBuilds/nuget/v3/index.json\\"/> | ||
| </config> | ||
| <packageSourceCredentials> | ||
| <AzureArtifacts> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </AzureArtifacts> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests Existing config w/ GPR source and NuGet.org, sets up a partial NuGet.config user/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://nuget.pkg.github.com/OwnerName/index.json\\"/> | ||
| </config> | ||
| <packageSourceCredentials> | ||
| <GPR> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </GPR> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests Existing config w/ no GPR sources, sets up a full NuGet.config with URL and user/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://nuget.pkg.github.com/OwnerName/index.json\\"/> | ||
| </config> | ||
| <packageSources> | ||
| <add key=\\"Source\\" value=\\"https://nuget.pkg.github.com/OwnerName/index.json\\"/> | ||
| </packageSources> | ||
| <packageSourceCredentials> | ||
| <Source> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </Source> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests Existing config w/ no sources, sets up a full NuGet.config with URL and user/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://nuget.pkg.github.com/OwnerName/index.json\\"/> | ||
| </config> | ||
| <packageSources> | ||
| <add key=\\"Source\\" value=\\"https://nuget.pkg.github.com/OwnerName/index.json\\"/> | ||
| </packageSources> | ||
| <packageSourceCredentials> | ||
| <Source> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </Source> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests Existing config w/ only Azure Artifacts source, sets up a partial NuGet.config user/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://pkgs.dev.azure.com/amullans/_packaging/GitHubBuilds/nuget/v3/index.json\\"/> | ||
| </config> | ||
| <packageSourceCredentials> | ||
| <AzureArtifacts> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </AzureArtifacts> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests Existing config w/ only GPR source, sets up a partial NuGet.config user/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://nuget.pkg.github.com/OwnerName/index.json\\"/> | ||
| </config> | ||
| <packageSourceCredentials> | ||
| <GPR> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </GPR> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests Existing config w/ two GPR sources, sets up a partial NuGet.config user/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://nuget.pkg.github.com\\"/> | ||
| </config> | ||
| <packageSourceCredentials> | ||
| <GPR-GitHub> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </GPR-GitHub> | ||
| <GPR-Actions> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </GPR-Actions> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests No existing config, sets up a full NuGet.config with URL and other owner/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://nuget.pkg.github.com/otherorg/index.json\\"/> | ||
| </config> | ||
| <packageSources> | ||
| <add key=\\"Source\\" value=\\"https://nuget.pkg.github.com/otherorg/index.json\\"/> | ||
| </packageSources> | ||
| <packageSourceCredentials> | ||
| <Source> | ||
| <add key=\\"Username\\" value=\\"otherorg\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </Source> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests No existing config, sets up a full NuGet.config with URL and token for other source 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://pkgs.dev.azure.com/amullans/_packaging/GitHubBuilds/nuget/v3/index.json\\"/> | ||
| </config> | ||
| <packageSources> | ||
| <add key=\\"Source\\" value=\\"https://pkgs.dev.azure.com/amullans/_packaging/GitHubBuilds/nuget/v3/index.json\\"/> | ||
| </packageSources> | ||
| <packageSourceCredentials> | ||
| <Source> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </Source> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; | ||
| exports[`authutil tests No existing config, sets up a full NuGet.config with URL and user/PAT for GPR 1`] = ` | ||
| "<?xml version=\\"1.0\\"?> | ||
| <configuration> | ||
| <config> | ||
| <add key=\\"defaultPushSource\\" value=\\"https://nuget.pkg.github.com/OwnerName/index.json\\"/> | ||
| </config> | ||
| <packageSources> | ||
| <add key=\\"Source\\" value=\\"https://nuget.pkg.github.com/OwnerName/index.json\\"/> | ||
| </packageSources> | ||
| <packageSourceCredentials> | ||
| <Source> | ||
| <add key=\\"Username\\" value=\\"OwnerName\\"/> | ||
| <add key=\\"ClearTextPassword\\" value=\\"TEST_FAKE_AUTH_TOKEN\\"/> | ||
| </Source> | ||
| </packageSourceCredentials> | ||
| </configuration>" | ||
| `; |
Oops, something went wrong.