File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,26 @@ var cliTests = []struct {
131
131
OptionFilePath : "override.jsonnet" ,
132
132
Color : true ,
133
133
Envfile : []string {},
134
- LogLevel : "trace" , // priority is higher than env
134
+ LogLevel : "trace" , // option file's priority is higher than env
135
+ Profile : ptr ("mine" ),
136
+ Region : ptr ("us-west-2" ),
137
+ },
138
+ },
139
+ {
140
+ args : []string {"render" ,
141
+ "--profile" , "mine" ,
142
+ "--region" , "us-west-2" ,
143
+ },
144
+ env : map [string ]string {
145
+ "LAMBROLL_OPTION" : "override.jsonnet" ,
146
+ "LAMBROLL_LOG_LEVEL" : "debug" ,
147
+ },
148
+ sub : "render" ,
149
+ option : & lambroll.Option {
150
+ OptionFilePath : "override.jsonnet" ,
151
+ Color : true ,
152
+ Envfile : []string {},
153
+ LogLevel : "trace" , // option file's priority is higher than env
135
154
Profile : ptr ("mine" ),
136
155
Region : ptr ("us-west-2" ),
137
156
},
You can’t perform that action at this time.
0 commit comments