From ccae3f0f27deea68bc11718ae1c4437c2d57e243 Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Thu, 26 Mar 2020 10:27:59 +0100 Subject: [PATCH] Fix changelog integration test for new alpha The remotely retrieved version is part of the generated HTML so we will now omit that during the test assertions. Signed-off-by: Sascha Grunert --- cmd/krel/cmd/changelog_data_test.go | 6 ++++-- cmd/krel/cmd/changelog_test.go | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cmd/krel/cmd/changelog_data_test.go b/cmd/krel/cmd/changelog_data_test.go index b7176d77f59..3f2c573a527 100644 --- a/cmd/krel/cmd/changelog_data_test.go +++ b/cmd/krel/cmd/changelog_data_test.go @@ -171,7 +171,7 @@ const alphaReleaseExpectedContent = `## Changes by Kind - The CSR signing cert/key pairs will be reloaded from disk like the kube-apiserver cert/key pairs ([#86816](https://github.com/kubernetes/kubernetes/pull/86816), [@deads2k](https://github.com/deads2k)) [SIG API Machinery, Apps and Auth] - To reduce chances of throttling, VM cache is set to nil when Azure node provisioning state is deleting ([#87635](https://github.com/kubernetes/kubernetes/pull/87635), [@feiskyer](https://github.com/feiskyer)) [SIG Cloud Provider]` -const alphaReleaseExpectedHTML = ` +const alphaReleaseExpectedHTMLHead = ` @@ -190,7 +190,9 @@ const alphaReleaseExpectedHTML = `

v1.18.0-alpha.3

-

Changelog since v1.19.0-alpha.0

+

Changelog since ` + +const alphaReleaseExpectedHTMLBottom = `

Changes by Kind

Deprecation