Skip to content

Commit 1f102a2

Browse files
committed
test: extend tests to cover the new operator behavior
1 parent fe40ea7 commit 1f102a2

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

test/tailscale/tailscale_operator.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
# Copyright (c) 2025 Tailscale Inc & AUTHORS All rights reserved.
3+
# Use of this source code is governed by a BSD-style
4+
# license that can be found in the LICENSE file.
5+
6+
set -e
7+
8+
source dev-container-features-test-lib
9+
10+
check "operator flag is set" bash -c "pgrep -f '\--operator=$(id -un)' | grep tailscaled"
11+
12+
reportResults

test/tailscale/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ if [[ -n "$VERSION" ]]; then
1313
check "version is correct" bash -c "tailscale version --daemon | grep -q $VERSION"
1414
fi
1515

16-
reportResults
16+
check "operator flag is not set" bash -c "! pgrep -f '--operator=$(id -un)'"
17+
18+
reportResults

0 commit comments

Comments
 (0)