Windows wsl failed build on develop branch #36

Open
opened 2026-09-18 14:59:22 +00:00 by inv3ntor01 · 0 comments
Owner

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
FAILED Tests\Unit\InteractsWithMonitoringTest > isMonitoringInstalled reflects whether the grafana Deployment ex…
Failed asserting that true is false.

at tests/Unit/InteractsWithMonitoringTest.php:73
69▕ Process::fake(['kubectl get deployment grafana -n larakube-shared --no-headers' => 'grafana 1/1 1 1 5d']);
70▕ expect(monitoringReader()->installed('kubectl', 'larakube-shared'))->toBeTrue();
71▕
72▕ Process::fake(['kubectl get deployment grafana -n larakube-shared --no-headers' => Process::result(output: '', exitCode: 1)]);
➜ 73▕ expect(monitoringReader()->installed('kubectl', 'larakube-shared'))->toBeFalse();
74▕ });
75▕
76▕ test('readGrafanaPassword decodes the admin secret, null when absent', function (): void {
77▕ Process::fake([

1 tests/Unit/InteractsWithMonitoringTest.php:73

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
FAILED Tests\Unit\InteractsWithVaultTest > readVaultAdminToken decodes the admin secret, null when absent
Failed asserting that two strings are identical.
-'s3cr3t-adm1n'
+'2d6b563e132013a281a4f477fa724abe'

at tests/Unit/InteractsWithVaultTest.php:80
76▕ test('readVaultAdminToken decodes the admin secret, null when absent', function (): void {
77▕ Process::fake([
78▕ "kubectl get secret vault-secrets -n larakube-vault -o jsonpath='{.data.admin-token}'" => base64_encode('s3cr3t-adm1n'),
79▕ ]);
➜ 80▕ expect(vaultReader()->vaultToken('kubectl', 'larakube-vault'))->toBe('s3cr3t-adm1n');
81▕
82▕ Process::fake([
83▕ "kubectl get secret vault-secrets -n larakube-vault -o jsonpath='{.data.admin-token}'" => Process::result(output: '', exitCode: 1),
84▕ ]);

1 tests/Unit/InteractsWithVaultTest.php:80

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
FAILED Tests\Unit\InteractsWithVpnTest > isVpnInstalled reflects whether the vpn-management Deployment exists
Failed asserting that true is false.

at tests/Unit/InteractsWithVpnTest.php:73
69▕ Process::fake(['kubectl get deployment vpn-management -n larakube-vpn --no-headers' => 'vpn-management 1/1 1 1 5d']);
70▕ expect(vpnReader()->installed('kubectl', 'larakube-vpn'))->toBeTrue();
71▕
72▕ Process::fake(['kubectl get deployment vpn-management -n larakube-vpn --no-headers' => Process::result(output: '', exitCode: 1)]);
➜ 73▕ expect(vpnReader()->installed('kubectl', 'larakube-vpn'))->toBeFalse();
74▕ });
75▕
76▕ test('vpnAccess is null when vpn is not installed, populated when it is', function (): void {
77▕ $kubectl = 'KUBECONFIG='.escapeshellarg(home_path('.kube/config')).' kubectl';

1 tests/Unit/InteractsWithVpnTest.php:73

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
FAILED Tests\Unit\InteractsWithVpnTest > fetchVpnSetupKey decodes the key from the Secret, null when missing
Failed asserting that two strings are identical.
-'nb_setup_key_test'
+'41CFAF2D-83F9-44DF-8A7F-20EB58206134'

at tests/Unit/InteractsWithVpnTest.php:96
92▕ $encoded = base64_encode('nb_setup_key_test');
93▕ Process::fake([
94▕ "kubectl get secret vpn-management-secrets -n larakube-vpn -o jsonpath='{.data.setup-key}'" => $encoded,
95▕ ]);
➜ 96▕ expect(vpnReader()->setupKey('kubectl', 'larakube-vpn'))->toBe('nb_setup_key_test');
97▕
98▕ Process::fake([
99▕ "kubectl get secret vpn-management-secrets -n larakube-vpn -o jsonpath='{.data.setup-key}'" => Process::result(output: '', exitCode: 1),
100▕ ]);

1 tests/Unit/InteractsWithVpnTest.php:96

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
FAILED Tests\Unit\InteractsWithTrustProcessTest > isCaTrusted on Linux checks for the installed cert files, no s…
Failed asserting that true is false.

at tests/Unit/InteractsWithTrustProcessTest.php:94
90▕ expect(trustHelperOnLinux()->dnsmasqInstalled())->toBeFalse();
91▕ });
92▕
93▕ test('isCaTrusted on Linux checks for the installed cert files, no shell-out', function (): void {
➜ 94▕ expect(trustHelperOnLinux()->caTrusted())->toBeFalse();
95▕ });
96▕
97▕ test('getDnsmasqConfPath on macOS resolves under the brew prefix', function (): void {
98▕ Process::fake(['brew --prefix' => "/opt/homebrew\n"]);

1 tests/Unit/InteractsWithTrustProcessTest.php:94

Tests: 5 failed, 1 skipped, 2426 passed (9696 assertions)
Duration: 80.73s
Parallel: 16 processes

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── FAILED Tests\Unit\InteractsWithMonitoringTest > isMonitoringInstalled reflects whether the grafana Deployment ex… Failed asserting that true is false. at tests/Unit/InteractsWithMonitoringTest.php:73 69▕ Process::fake(['kubectl get deployment grafana -n larakube-shared --no-headers' => 'grafana 1/1 1 1 5d']); 70▕ expect(monitoringReader()->installed('kubectl', 'larakube-shared'))->toBeTrue(); 71▕ 72▕ Process::fake(['kubectl get deployment grafana -n larakube-shared --no-headers' => Process::result(output: '', exitCode: 1)]); ➜ 73▕ expect(monitoringReader()->installed('kubectl', 'larakube-shared'))->toBeFalse(); 74▕ }); 75▕ 76▕ test('readGrafanaPassword decodes the admin secret, null when absent', function (): void { 77▕ Process::fake([ 1 tests/Unit/InteractsWithMonitoringTest.php:73 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── FAILED Tests\Unit\InteractsWithVaultTest > readVaultAdminToken decodes the admin secret, null when absent Failed asserting that two strings are identical. -'s3cr3t-adm1n' +'2d6b563e132013a281a4f477fa724abe' at tests/Unit/InteractsWithVaultTest.php:80 76▕ test('readVaultAdminToken decodes the admin secret, null when absent', function (): void { 77▕ Process::fake([ 78▕ "kubectl get secret vault-secrets -n larakube-vault -o jsonpath='{.data.admin-token}'" => base64_encode('s3cr3t-adm1n'), 79▕ ]); ➜ 80▕ expect(vaultReader()->vaultToken('kubectl', 'larakube-vault'))->toBe('s3cr3t-adm1n'); 81▕ 82▕ Process::fake([ 83▕ "kubectl get secret vault-secrets -n larakube-vault -o jsonpath='{.data.admin-token}'" => Process::result(output: '', exitCode: 1), 84▕ ]); 1 tests/Unit/InteractsWithVaultTest.php:80 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── FAILED Tests\Unit\InteractsWithVpnTest > isVpnInstalled reflects whether the vpn-management Deployment exists Failed asserting that true is false. at tests/Unit/InteractsWithVpnTest.php:73 69▕ Process::fake(['kubectl get deployment vpn-management -n larakube-vpn --no-headers' => 'vpn-management 1/1 1 1 5d']); 70▕ expect(vpnReader()->installed('kubectl', 'larakube-vpn'))->toBeTrue(); 71▕ 72▕ Process::fake(['kubectl get deployment vpn-management -n larakube-vpn --no-headers' => Process::result(output: '', exitCode: 1)]); ➜ 73▕ expect(vpnReader()->installed('kubectl', 'larakube-vpn'))->toBeFalse(); 74▕ }); 75▕ 76▕ test('vpnAccess is null when vpn is not installed, populated when it is', function (): void { 77▕ $kubectl = 'KUBECONFIG='.escapeshellarg(home_path('.kube/config')).' kubectl'; 1 tests/Unit/InteractsWithVpnTest.php:73 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── FAILED Tests\Unit\InteractsWithVpnTest > fetchVpnSetupKey decodes the key from the Secret, null when missing Failed asserting that two strings are identical. -'nb_setup_key_test' +'41CFAF2D-83F9-44DF-8A7F-20EB58206134' at tests/Unit/InteractsWithVpnTest.php:96 92▕ $encoded = base64_encode('nb_setup_key_test'); 93▕ Process::fake([ 94▕ "kubectl get secret vpn-management-secrets -n larakube-vpn -o jsonpath='{.data.setup-key}'" => $encoded, 95▕ ]); ➜ 96▕ expect(vpnReader()->setupKey('kubectl', 'larakube-vpn'))->toBe('nb_setup_key_test'); 97▕ 98▕ Process::fake([ 99▕ "kubectl get secret vpn-management-secrets -n larakube-vpn -o jsonpath='{.data.setup-key}'" => Process::result(output: '', exitCode: 1), 100▕ ]); 1 tests/Unit/InteractsWithVpnTest.php:96 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────── FAILED Tests\Unit\InteractsWithTrustProcessTest > isCaTrusted on Linux checks for the installed cert files, no s… Failed asserting that true is false. at tests/Unit/InteractsWithTrustProcessTest.php:94 90▕ expect(trustHelperOnLinux()->dnsmasqInstalled())->toBeFalse(); 91▕ }); 92▕ 93▕ test('isCaTrusted on Linux checks for the installed cert files, no shell-out', function (): void { ➜ 94▕ expect(trustHelperOnLinux()->caTrusted())->toBeFalse(); 95▕ }); 96▕ 97▕ test('getDnsmasqConfPath on macOS resolves under the brew prefix', function (): void { 98▕ Process::fake(['brew --prefix' => "/opt/homebrew\n"]); 1 tests/Unit/InteractsWithTrustProcessTest.php:94 Tests: 5 failed, 1 skipped, 2426 passed (9696 assertions) Duration: 80.73s Parallel: 16 processes
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
luchaveztech/larakube-cli#36
No description provided.