Skip to content

Conversation

dciangot
Copy link
Member

@dciangot dciangot commented Oct 9, 2025

Summary

This commit introduces a minimum viable test suite covering the main
InterLink components:

  • pkg/interlink: Configuration loading, type serialization, and TLS validation
  • pkg/interlink/api: HTTP handler tests with OpenTelemetry tracing support
  • pkg/interlink/cri: Fake runtime service tests for container lifecycle
  • pkg/virtualkubelet: Configuration and HTTP client tests with TLS support

Fully integrated with the integration test suite already in place.


Related issue :

This commit introduces a minimum viable test suite covering the main
InterLink components:

- pkg/interlink: Configuration loading, type serialization, and TLS validation
- pkg/interlink/api: HTTP handler tests with OpenTelemetry tracing support
- pkg/interlink/cri: Fake runtime service tests for container lifecycle
- pkg/virtualkubelet: Configuration and HTTP client tests with TLS support

Key features:
- 57 passing tests with table-driven patterns
- OpenTelemetry integration using in-memory exporters
- TLS/mTLS configuration validation
- HTTP client behavior testing with httptest
- CRI runtime service mock implementation tests

Test coverage:
- API handlers: 11.8%
- CRI service: 23.4%
- Virtual Kubelet: 1.5%

All tests are isolated and do not require external dependencies,
providing a solid foundation for CI/CD integration and future
test expansion.

Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
- Sort imports alphabetically (goimports)
- Check all error return values (errcheck)
- Remove unused parameters or rename to _ (revive)

Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
@dciangot dciangot requested a review from Bianco95 October 9, 2025 09:04
Copy link

netlify bot commented Oct 9, 2025

Deploy Preview for interlink-dev canceled.

Name Link
🔨 Latest commit fdc6769
🔍 Latest deploy log https://app.netlify.com/projects/interlink-dev/deploys/68f27f487fd0420008745d56

- Update helm chart installation to use local helm submodule instead of remote OCI registry
- Replace git clone of test suite with local test/vk-test-set submodule
- Add plugin build from local plugins/slurm submodule using existing Dockerfile
- All changes use optional parameters with default paths to submodules

Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
Signed-off-by: Diego Ciangottini <diego.ciangottini@pg.infn.it>
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