File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Build the manager binary
2
- FROM golang:1.17 -alpine as builder
2
+ FROM golang:1.21 -alpine as builder
3
3
4
4
WORKDIR /workspace
5
5
# Copy the Go Modules manifests
Original file line number Diff line number Diff line change @@ -803,6 +803,33 @@ func TestPreCheck(t *testing.T) {
803
803
},
804
804
want : want {},
805
805
},
806
+ {
807
+ name : "wrong value in environment variable JOB_AUTH_SECRET" ,
808
+ prepare : func (t * testing.T ) {
809
+ t .Setenv ("JOB_AUTH_SECRET" , "test-secret" )
810
+ },
811
+ args : args {
812
+ r : r ,
813
+ configuration : & v1beta2.Configuration {
814
+ ObjectMeta : v1.ObjectMeta {
815
+ Name : "abc" ,
816
+ },
817
+ Spec : v1beta2.ConfigurationSpec {
818
+ HCL : "bbb" ,
819
+ },
820
+ },
821
+ meta : & process.TFConfigurationMeta {
822
+ ConfigurationCMName : "abc" ,
823
+ ProviderReference : & crossplane.Reference {
824
+ Namespace : "default" ,
825
+ Name : "default" ,
826
+ },
827
+ },
828
+ },
829
+ want : want {
830
+ errMsg : "failed to parse env variable JOB_AUTH_SECRET" ,
831
+ },
832
+ },
806
833
}
807
834
808
835
for _ , tc := range testcases {
You can’t perform that action at this time.
0 commit comments