Skip to content

Commit 0a49ae4

Browse files
committed
fix
1 parent 66d4782 commit 0a49ae4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

internal/orchestrator/bricks/bricks_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,19 @@ func TestGetBrickInstanceVariableDetails(t *testing.T) {
252252
expectedConfigVariables []BrickConfigVariable
253253
expectedVariableMap map[string]string
254254
}{
255+
{
256+
name: "variable is present in the map",
257+
brick: &bricksindex.Brick{
258+
Variables: []bricksindex.BrickVariable{
259+
{Name: "VAR1", Description: "desc"},
260+
},
261+
},
262+
userVariables: map[string]string{"VAR1": "value1"},
263+
expectedConfigVariables: []BrickConfigVariable{
264+
{Name: "VAR1", Value: "value1", Description: "desc", Required: true},
265+
},
266+
expectedVariableMap: map[string]string{"VAR1": "value1"},
267+
},
255268
{
256269
name: "variable not present in the map",
257270
brick: &bricksindex.Brick{

0 commit comments

Comments
 (0)