mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-25 20:06:56 +00:00
#44 Get-PveApiToken FullTokenId empty: - Make FullTokenId a computed property (UserId + "!" + TokenId) - RawFullTokenId captures the API's "full-tokenid" for creation responses #43 Set-PvePermission token ACLs: - Add "token" to Type ValidateSet - Auto-detect tokens from "!" in UgId (user@realm!tokenid format) - Add tokens parameter to UserService.SetPermission #45 Connect-PveServer return session by default: - Always output session (matches Connect-AzAccount pattern) - Add -Quiet switch to suppress output - Keep -PassThru as hidden deprecated param for backwards compat Closes #43, closes #44, closes #45 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -94,12 +94,18 @@ Describe 'Connect-PveServer' {
|
||||
Should -Be ([System.Management.Automation.SwitchParameter])
|
||||
}
|
||||
|
||||
It 'Should have a PassThru switch parameter' {
|
||||
It 'Should have a PassThru switch parameter (deprecated, hidden)' {
|
||||
$script:Cmd.Parameters.ContainsKey('PassThru') | Should -BeTrue
|
||||
$script:Cmd.Parameters['PassThru'].ParameterType |
|
||||
Should -Be ([System.Management.Automation.SwitchParameter])
|
||||
}
|
||||
|
||||
It 'Should have a Quiet switch parameter' {
|
||||
$script:Cmd.Parameters.ContainsKey('Quiet') | Should -BeTrue
|
||||
$script:Cmd.Parameters['Quiet'].ParameterType |
|
||||
Should -Be ([System.Management.Automation.SwitchParameter])
|
||||
}
|
||||
|
||||
It 'Credential and ApiToken should belong to different parameter sets' {
|
||||
$credSets = $script:Cmd.Parameters['Credential'].ParameterSets.Keys
|
||||
$tokenSets = $script:Cmd.Parameters['ApiToken'].ParameterSets.Keys
|
||||
|
||||
Reference in New Issue
Block a user