File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
internal/orchestrator/app Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,8 @@ func TestValidateAppDescriptorBricks(t *testing.T) {
3838 Name : "Hidden variable brick" ,
3939 Variables : []bricksindex.BrickVariable {
4040 {
41- Name : "I_AM_HIDDEN" ,
42- Description : "I am an hidden variable" ,
43- Hidden : true ,
44- },
45- {
46- Name : "I_AM_HIDDEN_AND_REQUIRED" ,
47- Description : "I am an hidden and required variable" ,
48- DefaultValue : "" , // Required (no default value)
41+ Name : "I_AM_HIDDEN_WITHOUT_DEFAULT" ,
42+ Hidden : true ,
4943 },
5044 },
5145 },
@@ -154,13 +148,13 @@ bricks:
154148 expectedError : nil ,
155149 },
156150 {
157- name : "hidden variables are not required to be set " ,
151+ name : "is required works also for hidden variables " ,
158152 yamlContent : `
159153name: App with
160154bricks:
161155 - arduino:brick-with-hidden-variable:
162156` ,
163- expectedError : nil ,
157+ expectedError : errors . New ( "variable \" I_AM_HIDDEN_WITHOUT_DEFAULT \" is required by brick \" arduino:brick-with-hidden-variable \" " ) ,
164158 },
165159 }
166160
You can’t perform that action at this time.
0 commit comments