Skip to content

Commit d457b0c

Browse files
committed
fix: azure devops fixture
1 parent bf14aa8 commit d457b0c

File tree

1 file changed

+6
-33
lines changed

1 file changed

+6
-33
lines changed

fixtures/exec-git-checkout-test.yaml

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,14 @@ metadata:
55
spec:
66
schedule: '@every 15m'
77
exec:
8-
- type: $.type
9-
id: $.id
8+
- type: Postgres::Database
9+
id: $.name
1010
name: $.name
1111
script: |
1212
#!/bin/bash
13-
# This inline script runs in the git checkout directory
14-
# Verify we're in a git repo by checking for go.mod
15-
if [ ! -f go.mod ]; then
16-
echo "Error: Not in repository root" >&2
17-
exit 1
18-
fi
19-
20-
# Output test config items as JSON
21-
cat << 'EOF'
22-
[
23-
{
24-
"id": "config-1",
25-
"type": "Custom::Config",
26-
"name": "Test Config 1",
27-
"config": {
28-
"key": "value1",
29-
"source": "git-checkout-test"
30-
}
31-
},
32-
{
33-
"id": "config-2",
34-
"type": "Custom::Config",
35-
"name": "Test Config 2",
36-
"config": {
37-
"key": "value2",
38-
"source": "git-checkout-test"
39-
}
40-
}
41-
]
42-
EOF
13+
chmod +x ./gen_configs.sh
14+
./gen_configs.sh
4315
checkout:
44-
url: https://flanksource@dev.azure.com/flanksource/Demo1/_git/infrastructure
16+
url: https://flanksource@dev.azure.com/flanksource/Demo1/_git/TEST1
4517
branch: main
18+
connection: connection://mc/flanksource-azure-devops

0 commit comments

Comments
 (0)