Skip to content

Commit d4794bd

Browse files
committed
Fixed tests
1 parent 3793850 commit d4794bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ConfigurationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public function setUp(): void
1717

1818
public function test_kube_config_file()
1919
{
20+
$this->app['config']->set('k8s.default', 'kubeconfig');
2021
$this->app['config']->set('k8s.connections.kubeconfig', [
2122
'driver' => 'kubeconfig',
2223
'path' => __DIR__.'/cluster/kubeconfig.yaml',
@@ -40,6 +41,7 @@ public function test_kube_config_file()
4041

4142
public function test_http_authentication()
4243
{
44+
$this->app['config']->set('k8s.default', 'http');
4345
$this->app['config']->set('k8s.connections.http', [
4446
'driver' => 'http',
4547
'host' => env('KUBE_HOST', '127.0.0.1'),
@@ -77,6 +79,7 @@ public function test_http_authentication()
7779

7880
public function test_token_authentication()
7981
{
82+
$this->app['config']->set('k8s.default', 'token');
8083
$this->app['config']->set('k8s.connections.token', [
8184
'driver' => 'token',
8285
'host' => env('KUBE_HOST', '127.0.0.1'),

0 commit comments

Comments
 (0)