Skip to content

Commit 9c582d6

Browse files
committed
Added new parameter in help + in unit test
1 parent 10bf475 commit 9c582d6

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

source/Public/SQL Database/Get-FabricSQLDatabase.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ function Get-FabricSQLDatabase {
1313
Id of the Fabric Workspace for which the SQLDatabases should be retrieved. The value for WorkspaceId is a GUID.
1414
An example of a GUID is '12345678-1234-1234-1234-123456789012'.
1515
16+
.PARAMETER Workspace
17+
The workspace object. This is a mandatory parameter for the 'WorkspaceObject' parameter set and can be pipelined into the function.
18+
The object can be easily retrieved by Get-FabricWorkspace function.
19+
1620
.PARAMETER SQLDatabaseName
17-
The name of the KQLDatabase to retrieve. This parameter cannot be used together with SQLDatabaseID.
21+
The name of the SQLDatabase to retrieve. This parameter cannot be used together with SQLDatabaseID.
1822
1923
.PARAMETER SQLDatabaseID
2024
The Id of the SQLDatabase to retrieve. This parameter cannot be used together with SQLDatabaseName.

tests/Unit/Get-FabricSQLDatabase.Tests.ps1

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ param(
33
$ModuleName = "FabricTools",
44
$expectedParams = @(
55
"WorkspaceId"
6-
"SQLDatabaseName"
7-
"SQLDatabaseId"
8-
"Verbose"
9-
"Debug"
10-
"ErrorAction"
11-
"WarningAction"
12-
"InformationAction"
13-
"ProgressAction"
14-
"ErrorVariable"
15-
"WarningVariable"
16-
"InformationVariable"
17-
"OutVariable"
18-
"OutBuffer"
19-
"PipelineVariable"
20-
6+
"Workspace"
7+
"SQLDatabaseName"
8+
"SQLDatabaseId"
9+
"Verbose"
10+
"Debug"
11+
"ErrorAction"
12+
"WarningAction"
13+
"InformationAction"
14+
"ProgressAction"
15+
"ErrorVariable"
16+
"WarningVariable"
17+
"InformationVariable"
18+
"OutVariable"
19+
"OutBuffer"
20+
"PipelineVariable"
2121
)
2222
)
2323

@@ -45,4 +45,3 @@ Describe "Get-FabricSQLDatabase" -Tag "UnitTests" {
4545
}
4646
}
4747
}
48-

0 commit comments

Comments
 (0)