From aa3e6d03cc99e4c7b8f7a65bd53e115819464fef Mon Sep 17 00:00:00 2001 From: Gabbi Fisher Date: Sun, 21 Jun 2020 01:49:07 -0700 Subject: [PATCH] Moved writing-tests guide to cronjob tutorial section, hoisted envtest docs up in reference section --- docs/book/src/SUMMARY.md | 4 +++- docs/book/src/cronjob-tutorial/epilogue.md | 8 ++------ .../src/{reference => cronjob-tutorial}/writing-tests.md | 0 docs/book/src/reference/{testing => }/envtest.md | 0 4 files changed, 5 insertions(+), 7 deletions(-) rename docs/book/src/{reference => cronjob-tutorial}/writing-tests.md (100%) rename docs/book/src/reference/{testing => }/envtest.md (100%) diff --git a/docs/book/src/SUMMARY.md b/docs/book/src/SUMMARY.md index 5e3c7d449f7..dda21b29d97 100644 --- a/docs/book/src/SUMMARY.md +++ b/docs/book/src/SUMMARY.md @@ -26,6 +26,8 @@ - [Deploying the cert manager](./cronjob-tutorial/cert-manager.md) - [Deploying webhooks](./cronjob-tutorial/running-webhook.md) + + - [Writing tests](./cronjob-tutorial/writing-tests.md) - [Epilogue](./cronjob-tutorial/epilogue.md) @@ -73,7 +75,7 @@ - [Artifacts](./reference/artifacts.md) - [Writing controller tests](./reference/writing-tests.md) - - [Using envtest in integration tests](./reference/testing/envtest.md) + - [Using envtest in integration tests](./reference/envtest.md) - [Metrics](./reference/metrics.md) diff --git a/docs/book/src/cronjob-tutorial/epilogue.md b/docs/book/src/cronjob-tutorial/epilogue.md index 96fb6dd69df..0e9be7c0264 100644 --- a/docs/book/src/cronjob-tutorial/epilogue.md +++ b/docs/book/src/cronjob-tutorial/epilogue.md @@ -1,12 +1,8 @@ # Epilogue By this point, we've got a pretty full-featured implementation of the -CronJob controller, and have made use of most of the features of -KubeBuilder. - -If you want to learn how to write integration tests for the CronJob kind -built in this tutorial, take a look at the [Writing Tests](/reference/writing-tests.md) -documentation. +CronJob controller, made use of most of the features of +KubeBuilder, and written tests for the controller using envtest. If you want more, head over to the [Multi-Version Tutorial](/multiversion-tutorial/tutorial.md) to learn how to add new API diff --git a/docs/book/src/reference/writing-tests.md b/docs/book/src/cronjob-tutorial/writing-tests.md similarity index 100% rename from docs/book/src/reference/writing-tests.md rename to docs/book/src/cronjob-tutorial/writing-tests.md diff --git a/docs/book/src/reference/testing/envtest.md b/docs/book/src/reference/envtest.md similarity index 100% rename from docs/book/src/reference/testing/envtest.md rename to docs/book/src/reference/envtest.md