datacater icon indicating copy to clipboard operation
datacater copied to clipboard

Implement integration tests for kubernetes

Open ChrisRousey opened this issue 3 years ago • 3 comments

As of now, we have unit tests for testing application functionalities. There are some functionalities, that can't be tested through unit tests, since they require a actual underlying kubernetes instance. These tests should:

  • Test the deployment metrics endpoints
  • Test the deployment health endpoints
  • Test the deployment logs endpooints

ChrisRousey avatar Mar 22 '23 10:03 ChrisRousey

Usage of Quarkus DevServices for non-mockable calls to Kubernetes as mentioned in the PR #178 . E2E Tests with Kubernetes / minikube will be a separate issue.

hknlof avatar Apr 03 '23 07:04 hknlof

@HknLof @olis1996 The reason we were having problems with the @Ignore annotation, is because @Ignore is Junit4 specific, with Junit5 Jupiter the annotation is @Disabled. We use Junit5 (Jupiter) throughout our tests and don't actually have the junit4 dependency. The io.quarkus:quarkus-test-kubernetes-client brought junit4 with it, which is why we didn't notice. Once we removed the dependency in order to enable the Kubernetes Devservices, it broke those tests.

ChrisRousey avatar Apr 26 '23 12:04 ChrisRousey

Thanks :)

Can we replace @Ignore with @Disable?

hknlof avatar Apr 26 '23 12:04 hknlof