Skip to content

Commit

Permalink
snippet - updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed May 28, 2021
1 parent b7d8494 commit 3685622
Showing 1 changed file with 66 additions and 81 deletions.
147 changes: 66 additions & 81 deletions .vscode/tss.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
" \\$tssParams = \\$PSBoundParameters",
" \\$invokeParams = . \\$GetInvokeTssParams \\$TssSession",
" }",
"",
" process {",
" Write-Verbose \"Provided command parameters: \\$(. \\$GetInvocation \\$PSCmdlet.MyInvocation)\"",
" if (\\$tssParams.ContainsKey('TssSession') -and \\$TssSession.IsValidSession()) {",
Expand Down Expand Up @@ -224,7 +223,6 @@
" \\$tssParams = \\$PSBoundParameters",
" \\$invokeParams = . \\$GetInvokeTssParams \\$TssSession",
" }",
"",
" process {",
" Write-Verbose \"Provided command parameters: \\$(. \\$GetInvocation \\$PSCmdlet.MyInvocation)\"",
" if (\\$tssParams.ContainsKey('TssSession') -and \\$TssSession.IsValidSession()) {",
Expand Down Expand Up @@ -301,7 +299,6 @@
" \\$tssParams = \\$PSBoundParameters",
" \\$invokeParams = . \\$GetInvokeTssParams \\$TssSession",
" }",
"",
" process {",
" Write-Verbose \"Provided command parameters: \\$(. \\$GetInvocation \\$PSCmdlet.MyInvocation)\"",
" if (\\$tssParams.ContainsKey('TssSession') -and \\$TssSession.IsValidSession()) {",
Expand Down Expand Up @@ -465,21 +462,15 @@
" Context \"Checking\" {",
" BeforeAll {",
" \\$session = [pscustomobject]@{",
" ApiVersion = 'api/v1'",
" Take = 2147483647",
" SecretServer = 'http://alpha/'",
" ApiUrl = 'http://alpha/api/v1'",
" AccessToken = 'AgJf5YLChrisPine312UcBrM1s1KB2BGZ5Ufc4qLZ'",
" RefreshToken = '9oacYeah0YqgBNg0L7VinDiesel6-Z9ITE51Humus'",
" TokenType = 'bearer'",
" ExpiresIn = 1199",
" }",
" Mock -Verifiable -CommandName Invoke-RestMethod -ParameterFilter { \\$Uri -match '/version' } -MockWith {",
" return @{",
" model = [pscustomobject]@{",
" Version = '10.9.000033'",
" }",
" }",
" ApiVersion = 'api/v1'",
" Take = 2147483647",
" SecretServer = 'http://alpha/'",
" SecretServerVersion= '10.9.000000'",
" ApiUrl = 'http://alpha/api/v1'",
" AccessToken = 'AgJf5YLChrisPine312UcBrM1s1KB2BGZ5Ufc4qLZ'",
" RefreshToken = '9oacYeah0YqgBNg0L7VinDiesel6-Z9ITE51Humus'",
" TokenType = 'bearer'",
" ExpiresIn = 1199",
" }",
"",
" Mock -Verifiable -CommandName Invoke-RestMethod -ParameterFilter { \\$Uri -match '/${2:Endpoint}' } -MockWith {",
Expand Down Expand Up @@ -515,21 +506,15 @@
" Context \"Checking\" {",
" BeforeAll {",
" \\$session = [pscustomobject]@{",
" ApiVersion = 'api/v1'",
" Take = 2147483647",
" SecretServer = 'http://alpha/'",
" ApiUrl = 'http://alpha/api/v1'",
" AccessToken = 'AgJf5YLChrisPine312UcBrM1s1KB2BGZ5Ufc4qLZ'",
" RefreshToken = '9oacYeah0YqgBNg0L7VinDiesel6-Z9ITE51Humus'",
" TokenType = 'bearer'",
" ExpiresIn = 1199",
" }",
" Mock -Verifiable -CommandName Invoke-RestMethod -ParameterFilter { \\$Uri -match '/version' } -MockWith {",
" return @{",
" model = [pscustomobject]@{",
" Version = '10.9.000033'",
" }",
" }",
" ApiVersion = 'api/v1'",
" Take = 2147483647",
" SecretServer = 'http://alpha/'",
" SecretServerVersion= '10.9.000000'",
" ApiUrl = 'http://alpha/api/v1'",
" AccessToken = 'AgJf5YLChrisPine312UcBrM1s1KB2BGZ5Ufc4qLZ'",
" RefreshToken = '9oacYeah0YqgBNg0L7VinDiesel6-Z9ITE51Humus'",
" TokenType = 'bearer'",
" ExpiresIn = 1199",
" }",
"",
" Mock -Verifiable -CommandName Invoke-RestMethod -ParameterFilter { \\$Uri -match '/${1:Endpoint}' } -MockWith {",
Expand Down Expand Up @@ -645,54 +630,54 @@
"scope": "markdown",
"prefix": "tsschangelog",
"body": [
"## [Unreleased] -- 2021-xx-xx",
"",
"### Breaking Changes",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
"",
"### Bug Fixes",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
"",
"### New Stuff",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
"",
"### General Updates",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
"",
"### Tests",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
""
"## [Unreleased] -- 2021-xx-xx",
"",
"### Breaking Changes",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
"",
"### Bug Fixes",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
"",
"### New Stuff",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
"",
"### General Updates",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
"",
"### Tests",
"",
"<details>",
" <summary>Click to view </summary>",
"",
"* None",
"",
"</details>",
""
],
"description": "Changelog release"
}
}
}

0 comments on commit 3685622

Please sign in to comment.