Skip to content

Commit 434f166

Browse files
committed
Initial lambda implementation
1 parent 56bf35b commit 434f166

145 files changed

Lines changed: 15307 additions & 19 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Logs
2-
logs
2+
/logs
33
*.log
44
npm-debug.log*
55
yarn-debug.log*
@@ -132,3 +132,20 @@ dist
132132
# Intellij
133133

134134
.idea
135+
k8s/output
136+
np-agent-manifest.yaml
137+
.minikube_mount_pid
138+
139+
.DS_Store
140+
# Integration test runtime data
141+
frontend/deployment/tests/integration/volume/
142+
143+
# Terraform/OpenTofu
144+
.terraform/
145+
.terraform.lock.hcl
146+
147+
# Generated test certificates
148+
testing/docker/certs/
149+
150+
# Claude Code
151+
.claude/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "testing"]
2+
path = testing
3+
url = git@github.com:nullplatform/scope-testing.git

Makefile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.PHONY: test test-all test-unit test-tofu test-integration help
2+
3+
# Default test target - shows available options
4+
test:
5+
@echo "Usage: make test-<level>"
6+
@echo ""
7+
@echo "Available test levels:"
8+
@echo " make test-all Run all tests"
9+
@echo " make test-unit Run BATS unit tests"
10+
@echo " make test-tofu Run OpenTofu tests"
11+
@echo " make test-integration Run integration tests"
12+
@echo ""
13+
@echo "You can also run tests for a specific module:"
14+
@echo " make test-unit MODULE=frontend"
15+
16+
# Run all tests
17+
test-all: test-unit test-tofu test-integration
18+
19+
# Run BATS unit tests
20+
test-unit:
21+
ifdef MODULE
22+
@./testing/run_bats_tests.sh $(MODULE)
23+
else
24+
@./testing/run_bats_tests.sh
25+
endif
26+
27+
# Run OpenTofu tests
28+
test-tofu:
29+
ifdef MODULE
30+
@./testing/run_tofu_tests.sh $(MODULE)
31+
else
32+
@./testing/run_tofu_tests.sh
33+
endif
34+
35+
# Run integration tests
36+
test-integration:
37+
ifdef MODULE
38+
@./testing/run_integration_tests.sh $(MODULE) $(if $(VERBOSE),-v)
39+
else
40+
@./testing/run_integration_tests.sh $(if $(VERBOSE),-v)
41+
endif
42+
43+
# Help
44+
help:
45+
@echo "Test targets:"
46+
@echo " test Show available test options"
47+
@echo " test-all Run all tests"
48+
@echo " test-unit Run BATS unit tests"
49+
@echo " test-tofu Run OpenTofu tests"
50+
@echo " test-integration Run integration tests"
51+
@echo ""
52+
@echo "Options:"
53+
@echo " MODULE=<name> Run tests for specific module (e.g., MODULE=frontend)"
54+
@echo " VERBOSE=1 Show output of passing tests (integration tests only)"

0 commit comments

Comments
 (0)