Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kovacs committed Feb 6, 2024
1 parent d38f44f commit 9e3133b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

MAKEFLAGS = -s --no-print-directory

runTestCase:
echo $(MAKEFLAGS)
@T="$$(KUBECONFIG="$$ROOT_DIR/kubeconfig" kuttl test --timeout 300 --skip-delete --namespace "$$NAMESPACE" "$$TC" 2>&1)" ;\
echo "$$T" |\
grep -v harness.go |\
Expand All @@ -21,10 +20,11 @@ renderTestCase:
echo -n "$$D"

getKubeUid:
echo $(MAKEFLAGS)
@kubectl get -o jsonpath='{.metadata.uid}' -n "$$NAMESPACE" "$$OBJ"

callLinodeApiGet:
@curl -s -H "Authorization: Bearer $$LINODE_TOKEN" -H "X-Filter: $$FILTER" "https://api.linode.com/v4beta/$$URI"

asd:
echo $(MAKEFLAGS)

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: OBJ=machines/machine-sample make getKubeUid
- script: TPL="$PWD/02-create-linodemachine.tpl.yml" make renderTestCase
- script: |-
MACHINE_UID="$(OBJ=machines/machine-sample make getKubeUid)" \
TC="$(TPL="$PWD/02-create-linodemachine.tpl.yml" make renderTestCase)" make runTestCase

0 comments on commit 9e3133b

Please sign in to comment.