Skip to content

Add tests for k8s instance, log, and metric modules#157

Open
fedemaleh wants to merge 2 commits intobetafrom
feature/instance-log-metric-tests
Open

Add tests for k8s instance, log, and metric modules#157
fedemaleh wants to merge 2 commits intobetafrom
feature/instance-log-metric-tests

Conversation

@fedemaleh
Copy link
Copy Markdown
Collaborator

Summary

  • Add BATS unit tests for k8s/instance (7 + 10 tests), k8s/log (6 tests), and k8s/metric (8 + 1 + 35 tests)
  • Remove debugging logs from log/build_context, log/log, and metric/build_context — stdout must be JSON-only in these modules
  • Use log error from k8s/logging for error blocks (❌/💡/🔧) instead of raw echo >&2
  • Add load logging workflow step with function output in log.yaml and metric.yaml

Test plan

  • bats k8s/instance/tests/ — 17 tests pass
  • bats k8s/log/tests/ — 6 tests pass
  • bats k8s/metric/tests/ — 44 tests pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant