Skip to content

Commit

Permalink
Pin Pester 4.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueHO committed May 29, 2020
1 parent bb8732f commit ebe7b34
Show file tree
Hide file tree
Showing 52 changed files with 64 additions and 49 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed build jobs `Unit_Test_PSCore6_Ubuntu1604` and
`Integration_Test_PSCore6_Ubuntu1604` to install PowerShell Core 6.2.4
to support version of Az PowerShell modules that are installed - Fixes [Issue #371](https://github.com/PlagueHO/CosmosDB/issues/371).
- Pinned build to Pester v4.10.1 - Fixes [Issue #371](https://github.com/PlagueHO/CosmosDB/issues/378).
- Added `Name` as an alias for `Id` parameters in
`*-CosmosDbCollection` functions - Fixes [Issue #375](https://github.com/PlagueHO/CosmosDB/issues/375).
- Added `Name` as an alias for `Id` parameters in
`*-CosmosDbDatabase` functions - Fixes [Issue #374](https://github.com/PlagueHO/CosmosDB/issues/374).

## [4.1.0] - 2020-05-15

Expand Down
2 changes: 1 addition & 1 deletion RequiredModules.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
invokeBuild = 'latest'
PSScriptAnalyzer = 'latest'
pester = 'latest'
Pester = '4.10.1'
Plaster = 'latest'
Platyps = 'latest'
ModuleBuilder = 'latest'
Expand Down
2 changes: 1 addition & 1 deletion docs/Get-CosmosDbCollection.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ all collections in the database will be returned.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Aliases: Name

Required: False
Position: Named
Expand Down
2 changes: 1 addition & 1 deletion docs/Get-CosmosDbCollectionResourcePath.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This is the Id of the collection.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Aliases: Name

Required: True
Position: 1
Expand Down
2 changes: 1 addition & 1 deletion docs/Get-CosmosDbCollectionSize.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ This is the id of the collection to get.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Aliases: Name

Required: False
Position: Named
Expand Down
2 changes: 1 addition & 1 deletion docs/Get-CosmosDbDatabase.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ This is the Id of the database to get.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Aliases: Name

Required: False
Position: Named
Expand Down
2 changes: 1 addition & 1 deletion docs/New-CosmosDbCollection.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ This is the Id of the collection to create.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Aliases: Name

Required: True
Position: Named
Expand Down
2 changes: 1 addition & 1 deletion docs/New-CosmosDbDatabase.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ This is the Id of the database to create.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Aliases: Name

Required: True
Position: Named
Expand Down
2 changes: 1 addition & 1 deletion docs/Remove-CosmosDbCollection.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ This is the Id of the collection to delete.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Aliases: Name

Required: True
Position: Named
Expand Down
2 changes: 1 addition & 1 deletion docs/Remove-CosmosDbDatabase.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ This is the Id of the database to delete.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Aliases: Name

Required: True
Position: Named
Expand Down
2 changes: 1 addition & 1 deletion docs/Set-CosmosDbCollection.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ This is the Id of the collection to update.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Aliases: Name

Required: True
Position: Named
Expand Down
2 changes: 1 addition & 1 deletion source/Private/utils/Invoke-CosmosDbRequest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Invoke-CosmosDbRequest
[OutputType([System.String])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDB.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/attachments/Get-CosmosDbAttachment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-CosmosDbAttachment
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/attachments/New-CosmosDbAttachment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function New-CosmosDbAttachment
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/attachments/Remove-CosmosDbAttachment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Remove-CosmosDbAttachment
[CmdletBinding(DefaultParameterSetName = 'Context')]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/attachments/Set-CosmosDbAttachment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Set-CosmosDbAttachment
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
3 changes: 2 additions & 1 deletion source/Public/collections/Get-CosmosDbCollection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-CosmosDbCollection
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand All @@ -31,6 +31,7 @@ function Get-CosmosDbCollection
[System.String]
$Database,

[Alias('Name')]
[Parameter()]
[ValidateScript({ Assert-CosmosDbCollectionIdValid -Id $_ })]
[System.String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ function Get-CosmosDbCollectionResourcePath
[System.String]
$Database,

[Alias('Name')]
[Parameter(Mandatory = $true)]
[ValidateScript({ Assert-CosmosDbCollectionIdValid -Id $_ })]
[System.String]
Expand Down
3 changes: 2 additions & 1 deletion source/Public/collections/Get-CosmosDbCollectionSize.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-CosmosDbCollectionSize
[OutputType([System.Collections.Hashtable])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand All @@ -31,6 +31,7 @@ function Get-CosmosDbCollectionSize
[System.String]
$Database,

[Alias('Name')]
[Parameter(Mandatory = $true)]
[ValidateScript({ Assert-CosmosDbCollectionIdValid -Id $_ })]
[System.String]
Expand Down
3 changes: 2 additions & 1 deletion source/Public/collections/New-CosmosDbCollection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function New-CosmosDbCollection
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'ContextIndexPolicy')]
[Parameter(Mandatory = $true, ParameterSetName = 'ContextIndexPolicyJson')]
[ValidateNotNullOrEmpty()]
Expand Down Expand Up @@ -33,6 +33,7 @@ function New-CosmosDbCollection
[System.String]
$Database,

[Alias('Name')]
[Parameter(Mandatory = $true)]
[ValidateScript({ Assert-CosmosDbCollectionIdValid -Id $_ })]
[System.String]
Expand Down
3 changes: 2 additions & 1 deletion source/Public/collections/Remove-CosmosDbCollection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Remove-CosmosDbCollection
[CmdletBinding(DefaultParameterSetName = 'Context')]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand All @@ -30,6 +30,7 @@ function Remove-CosmosDbCollection
[System.String]
$Database,

[Alias('Name')]
[Parameter(Mandatory = $true)]
[ValidateScript({ Assert-CosmosDbCollectionIdValid -Id $_ })]
[System.String]
Expand Down
3 changes: 2 additions & 1 deletion source/Public/collections/Set-CosmosDbCollection.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Set-CosmosDbCollection
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'ContextIndexPolicy')]
[Parameter(Mandatory = $true, ParameterSetName = 'ContextIndexPolicyJson')]
[ValidateNotNullOrEmpty()]
Expand Down Expand Up @@ -33,6 +33,7 @@ function Set-CosmosDbCollection
[System.String]
$Database,

[Alias('Name')]
[Parameter(Mandatory = $true)]
[ValidateScript({ Assert-CosmosDbCollectionIdValid -Id $_ })]
[System.String]
Expand Down
3 changes: 2 additions & 1 deletion source/Public/databases/Get-CosmosDbDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-CosmosDbDatabase
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand All @@ -26,6 +26,7 @@ function Get-CosmosDbDatabase
[System.String]
$KeyType = 'master',

[Alias('Name')]
[Parameter()]
[ValidateScript({ Assert-CosmosDbDatabaseIdValid -Id $_ })]
[System.String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function Get-CosmosDbDatabaseResourcePath
[OutputType([System.String])]
param
(
[Alias('Name')]
[Parameter(Mandatory = $true)]
[ValidateScript({ Assert-CosmosDbDatabaseIdValid -Id $_ })]
[System.String]
Expand Down
3 changes: 2 additions & 1 deletion source/Public/databases/New-CosmosDbDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function New-CosmosDbDatabase
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand All @@ -26,6 +26,7 @@ function New-CosmosDbDatabase
[System.String]
$KeyType = 'master',

[Alias('Name')]
[Parameter(Mandatory = $true)]
[ValidateScript({ Assert-CosmosDbDatabaseIdValid -Id $_ })]
[System.String]
Expand Down
3 changes: 2 additions & 1 deletion source/Public/databases/Remove-CosmosDbDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Remove-CosmosDbDatabase
[CmdletBinding(DefaultParameterSetName = 'Context')]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand All @@ -25,6 +25,7 @@ function Remove-CosmosDbDatabase
[System.String]
$KeyType = 'master',

[Alias('Name')]
[Parameter(Mandatory = $true)]
[ValidateScript({ Assert-CosmosDbDatabaseIdValid -Id $_ })]
[System.String]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/documents/Get-CosmosDbDocument.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-CosmosDbDocument
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/documents/New-CosmosDbDocument.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function New-CosmosDbDocument
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/documents/Remove-CosmosDbDocument.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Remove-CosmosDbDocument
[CmdletBinding(DefaultParameterSetName = 'Context')]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/documents/Set-CosmosDbDocument.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Set-CosmosDbDocument
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/offers/Get-CosmosDbOffer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-CosmosDbOffer
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/offers/Set-CosmosDbOffer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Set-CosmosDbOffer
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/permissions/Get-CosmosDbPermission.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-CosmosDbPermission
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/permissions/New-CosmosDbPermission.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function New-CosmosDbPermission
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
2 changes: 1 addition & 1 deletion source/Public/permissions/Remove-CosmosDbPermission.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Remove-CosmosDbPermission
[CmdletBinding(DefaultParameterSetName = 'Context')]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-CosmosDbStoredProcedure
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Invoke-CosmosDbStoredProcedure
[OutputType([Object])]
param
(
[Alias("Connection")]
[Alias('Connection')]
[Parameter(Mandatory = $true, ParameterSetName = 'Context')]
[ValidateNotNullOrEmpty()]
[CosmosDb.Context]
Expand Down
Loading

0 comments on commit ebe7b34

Please sign in to comment.