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.
9
9
plan (skip_all => " etcd is too old, skip v3 protocol" );
10
10
} else {
11
11
my $ enable_tls = $ ENV {ETCD_ENABLE_TLS};
12
- if ($ enable_tls eq " TRUE" ) {
12
+ if (defined ( $ enable_tls ) && $ enable_tls eq " TRUE" ) {
13
13
plan (skip_all => " skip test cases with auth when TLS is enabled" );
14
14
} else {
15
15
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.
10
10
plan (skip_all => " etcd is too old, skip v3 protocol" );
11
11
} else {
12
12
my $ enable_tls = $ ENV {ETCD_ENABLE_TLS};
13
- if ($ enable_tls eq " TRUE" ) {
13
+ if (defined ( $ enable_tls ) && $ enable_tls eq " TRUE" ) {
14
14
plan (skip_all => " skip test cases with auth when TLS is enabled" );
15
15
} else {
16
16
plan ' no_plan' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ no_long_string();
5
5
repeat_each(1);
6
6
7
7
my $enable_tls = $ENV {ETCD_ENABLE_MTLS };
8
- if ($enable_tls eq " TRUE" ) {
8
+ if (defined ( $enable_tls ) && $enable_tls eq " TRUE" ) {
9
9
plan ' no_plan' ;
10
10
} else {
11
11
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();
5
5
repeat_each(1);
6
6
7
7
my $enable_tls = $ENV {ETCD_ENABLE_MTLS };
8
- if ($enable_tls eq " TRUE" ) {
8
+ if (defined ( $enable_tls ) && $enable_tls eq " TRUE" ) {
9
9
plan ' no_plan' ;
10
10
} else {
11
11
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();
5
5
repeat_each(1 );
6
6
7
7
my $ enable_tls = $ ENV {ETCD_ENABLE_TLS};
8
- if ($ enable_tls eq " TRUE" ) {
8
+ if (defined ( $ enable_tls ) && $ enable_tls eq " TRUE" ) {
9
9
plan ' no_plan' ;
10
10
} else {
11
11
plan (skip_all => " etcd is not capable for TLS connection" );
You can’t perform that action at this time.
0 commit comments