Skip to content

Commit 0504fb2

Browse files
committed
fix
1 parent ca95fdd commit 0504fb2

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
@@ -119,6 +119,19 @@ func TestGetBrickInstanceVariableDetails(t *testing.T) {
119119
expectedConfigVariables []BrickConfigVariable
120120
expectedVariableMap map[string]string
121121
}{
122+
{
123+
name: "variable is present in the map",
124+
brick: &bricksindex.Brick{
125+
Variables: []bricksindex.BrickVariable{
126+
{Name: "VAR1", Description: "desc"},
127+
},
128+
},
129+
userVariables: map[string]string{"VAR1": "value1"},
130+
expectedConfigVariables: []BrickConfigVariable{
131+
{Name: "VAR1", Value: "value1", Description: "desc", Required: true},
132+
},
133+
expectedVariableMap: map[string]string{"VAR1": "value1"},
134+
},
122135
{
123136
name: "variable not present in the map",
124137
brick: &bricksindex.Brick{

0 commit comments

Comments
 (0)