File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if ($etcd_version =~ /^etcd Version: 2/ || $etcd_version =~ /^etcd Version: 3.1.
99 plan (skip_all => " etcd is too old, skip v3 protocol" );
1010} else {
1111 my $ enable_tls = $ ENV {ETCD_ENABLE_TLS};
12- if ($ enable_tls eq " TRUE" ) {
12+ if (defined ( $ enable_tls ) && $ enable_tls eq " TRUE" ) {
1313 plan (skip_all => " skip test cases with auth when TLS is enabled" );
1414 } else {
1515 plan ' no_plan' ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if ($etcd_version =~ /^etcd Version: 2/ || $etcd_version =~ /^etcd Version: 3.1.
1010 plan (skip_all => " etcd is too old, skip v3 protocol" );
1111} else {
1212 my $ enable_tls = $ ENV {ETCD_ENABLE_TLS};
13- if ($ enable_tls eq " TRUE" ) {
13+ if (defined ( $ enable_tls ) && $ enable_tls eq " TRUE" ) {
1414 plan (skip_all => " skip test cases with auth when TLS is enabled" );
1515 } else {
1616 plan ' no_plan' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ no_long_string();
55repeat_each(1);
66
77my $enable_tls = $ENV {ETCD_ENABLE_MTLS };
8- if ($enable_tls eq " TRUE" ) {
8+ if (defined ( $enable_tls ) && $enable_tls eq " TRUE" ) {
99 plan ' no_plan' ;
1010} else {
1111 plan(skip_all => " etcd is not capable for mTLS connection" );
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ no_long_string();
55repeat_each(1);
66
77my $enable_tls = $ENV {ETCD_ENABLE_MTLS };
8- if ($enable_tls eq " TRUE" ) {
8+ if (defined ( $enable_tls ) && $enable_tls eq " TRUE" ) {
99 plan ' no_plan' ;
1010} else {
1111 plan(skip_all => " etcd is not capable for mTLS connection" );
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ no_long_string();
55repeat_each(1 );
66
77my $ enable_tls = $ ENV {ETCD_ENABLE_TLS};
8- if ($ enable_tls eq " TRUE" ) {
8+ if (defined ( $ enable_tls ) && $ enable_tls eq " TRUE" ) {
99 plan ' no_plan' ;
1010} else {
1111 plan (skip_all => " etcd is not capable for TLS connection" );
You can’t perform that action at this time.
0 commit comments