Compare commits

...

7 Commits

Author SHA1 Message Date
Zoltan Papp
e59223c81f Remove fatal 2025-08-15 16:35:50 +02:00
Zoltan Papp
a343157c45 Fix 2025-08-15 16:20:28 +02:00
Zoltán Papp
d80fe7cc5a Print user too 2025-08-15 15:40:40 +02:00
Zoltán Papp
a11f903aa2 Add fail line 2025-08-14 18:17:17 +02:00
Zoltán Papp
ee85cfe21b Add more log lines 2025-08-14 18:08:59 +02:00
Zoltán Papp
90596dde61 Add more log lines 2025-08-14 18:08:05 +02:00
Zoltán Papp
41d4779867 Add debug line 2025-08-14 17:59:03 +02:00

View File

@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"os"
"os/user"
"runtime"
"testing"
"time"
@@ -59,11 +60,20 @@ func waitForServiceStatus(expectedStatus service.Status, timeout time.Duration)
// TestServiceLifecycle tests the complete service lifecycle
func TestServiceLifecycle(t *testing.T) {
currentUser, err := user.Current()
if err != nil {
t.Fatalf("Failed to get current user: %v", err)
}
t.Logf("--- Running service lifecycle test: %s, %s", runtime.GOOS, currentUser.Username)
// TODO: Add support for Windows and macOS
if runtime.GOOS != "linux" && runtime.GOOS != "freebsd" {
t.Logf("--- Running service lifecycle test: %s", runtime.GOOS)
t.Skipf("Skipping service lifecycle test on unsupported OS: %s", runtime.GOOS)
}
t.Logf("--- Running service lifecycle test on: %s", os.Getenv("CONTAINER"))
if os.Getenv("CONTAINER") == "true" {
t.Skip("Skipping service lifecycle test in container environment")
}