DEV Community

Mahmoud Rabie
Mahmoud Rabie

Posted on • Updated on

Kubernetes Testing Framework

๐™๐™š๐™จ๐™ฉ๐™ ๐™ช๐™—๐™š:
(1) natively integrates ๐™ฉ๐™š๐™จ๐™ฉ ๐™ค๐™ง๐™˜๐™๐™š๐™จ๐™ฉ๐™ง๐™–๐™ฉ๐™ž๐™ค๐™ฃ ๐™–๐™ฃ๐™™ ๐™š๐™ญ๐™š๐™˜๐™ช๐™ฉ๐™ž๐™ค๐™ฃ into ๐™†๐™ช๐™—๐™š๐™ง๐™ฃ๐™š๐™ฉ๐™š๐™จ and your ๐˜พ๐™„/๐˜พ๐˜ฟ/๐™‚๐™ž๐™ฉ๐™Š๐™ฅ๐™จ ๐™ฅ๐™ž๐™ฅ๐™š๐™ก๐™ž๐™ฃ๐™š.
(2) ๐™™๐™š๐™˜๐™ค๐™ช๐™ฅ๐™ก๐™š๐™จ ๐™ฉ๐™š๐™จ๐™ฉ ๐™–๐™ง๐™ฉ๐™ž๐™›๐™–๐™˜๐™ฉ๐™จ and execution from CI/CD tooling; tests are meant to be part of your clusters state and can be executed as needed:

  • ๐™†๐™ช๐™—๐™š๐™˜๐™ฉ๐™ก plugin
  • ๐™€๐™ญ๐™ฉ๐™š๐™ง๐™ฃ๐™–๐™ก๐™ก๐™ฎ ๐™ฉ๐™ง๐™ž๐™œ๐™œ๐™š๐™ง๐™š๐™™ ๐™ซ๐™ž๐™– ๐˜ผ๐™‹๐™„ (CI, external tooling, etc)
  • ๐˜ผ๐™ช๐™ฉ๐™ค๐™ข๐™–๐™ฉ๐™ž๐™˜๐™–๐™ก๐™ก๐™ฎ ๐™ค๐™ฃ ๐™™๐™š๐™ฅ๐™ก๐™ค๐™ฎ๐™ข๐™š๐™ฃ๐™ฉ of annotated/labeled services/pods/etc (WIP)

๐™๐™š๐™จ๐™ฉ๐™ ๐™ช๐™—๐™š ๐™–๐™™๐™ซ๐™–๐™ฃ๐™ฉ๐™–๐™œ๐™š๐™จ:
(1) ๐˜ผ๐™ซ๐™ค๐™ž๐™™๐™จ ๐™ซ๐™š๐™ฃ๐™™๐™ค๐™ง ๐™ก๐™ค๐™˜๐™ -๐™ž๐™ฃ for test orchestration and execution in CI/CD pipelines
(2) Makes it easy to ๐™ค๐™ง๐™˜๐™๐™š๐™จ๐™ฉ๐™ง๐™–๐™ฉ๐™š ๐™–๐™ฃ๐™™ ๐™ง๐™ช๐™ฃ ๐™–๐™ฃ๐™ฎ ๐™ ๐™ž๐™ฃ๐™™ ๐™ค๐™› ๐™ฉ๐™š๐™จ๐™ฉ๐™จ - functional, load/performance, security, compliance, etc. in your clusters, without having to wrap them in docker-images or providing network access
(3) Makes it possible to ๐™™๐™š๐™˜๐™ค๐™ช๐™ฅ๐™ก๐™š ๐™ฉ๐™š๐™จ๐™ฉ ๐™š๐™ญ๐™š๐™˜๐™ช๐™ฉ๐™ž๐™ค๐™ฃ ๐™›๐™ง๐™ค๐™ข ๐™—๐™ช๐™ž๐™ก๐™™ ๐™ฅ๐™ง๐™ค๐™˜๐™š๐™จ๐™จ๐™š๐™จ; engineers should be able to run specific tests whenever needed
Centralizes ๐™–๐™ก๐™ก ๐™ฉ๐™š๐™จ๐™ฉ ๐™ง๐™š๐™จ๐™ช๐™ก๐™ฉ๐™จ ๐™ž๐™ฃ ๐™– ๐™˜๐™ค๐™ฃ๐™จ๐™ž๐™จ๐™ฉ๐™š๐™ฃ๐™ฉ ๐™›๐™ค๐™ง๐™ข๐™–๐™ฉ for "๐™–๐™˜๐™ฉ๐™ž๐™ค๐™ฃ๐™–๐™—๐™ก๐™š ๐™Œ๐˜ผ ๐™–๐™ฃ๐™–๐™ก๐™ฎ๐™ฉ๐™ž๐™˜๐™จ"
(4) Provides a ๐™ข๐™ค๐™™๐™ช๐™ก๐™–๐™ง ๐™–๐™ง๐™˜๐™๐™ž๐™ฉ๐™š๐™˜๐™ฉ๐™ช๐™ง๐™š for adding new types of ๐™ฉ๐™š๐™จ๐™ฉ๐™จ ๐™–๐™ฃ๐™™ ๐™š๐™ญ๐™š๐™˜๐™ช๐™ฉ๐™ค๐™ง๐™จ

๐™†๐™ช๐™—๐™š๐™ง๐™ฃ๐™š๐™ฉ๐™š๐™จ-๐™ฃ๐™–๐™ฉ๐™ž๐™ซ๐™š ๐™›๐™ง๐™–๐™ข๐™š๐™ฌ๐™ค๐™ง๐™  ๐™›๐™ค๐™ง ๐™ฉ๐™š๐™จ๐™ฉ ๐™™๐™š๐™›๐™ž๐™ฃ๐™ž๐™ฉ๐™ž๐™ค๐™ฃ ๐™–๐™ฃ๐™™ ๐™š๐™ญ๐™š๐™˜๐™ช๐™ฉ๐™ž๐™ค๐™ฃ
https://lnkd.in/gyKmNJDr

Thanks to Bruno Lopes for his video
๐™„๐™ฃ๐™ฉ๐™ง๐™ค ๐™ฉ๐™ค ๐™๐™š๐™จ๐™ฉ๐™ ๐™ช๐™—๐™š - ๐˜พ๐™ก๐™ค๐™ช๐™™-๐™‰๐™–๐™ฉ๐™ž๐™ซ๐™š ๐™๐™š๐™จ๐™ฉ๐™ž๐™ฃ๐™œ ๐™๐™ง๐™–๐™ข๐™š๐™ฌ๐™ค๐™ง๐™  ๐™›๐™ค๐™ง ๐™†๐™ช๐™—๐™š๐™ง๐™ฃ๐™š๐™ฉ๐™š๐™จ
https://lnkd.in/g3tbTX7h

Image description

Top comments (0)