From efdcd49d046c8fd3a0a1a90c2149b29962a4547d Mon Sep 17 00:00:00 2001 From: Bill Havanki Date: Mon, 14 Nov 2022 15:00:58 -0500 Subject: [PATCH] test: Loosen Helm test for Helm 3.8.0+ Some of the Helm tests expect the default value of `.Release.Name` to appear in expanded output as all-caps "RELEASE-NAME". Starting in Helm 3.8.0, that default was changed to lowercase "release-name", breaking those tests. The tests now match expected output containing the string in a case-insensitive fashion. --- data/data.go | 51 +++++++++++++++++++++++++++++++------------ pkg/helm/helm_test.go | 34 +++++++++++++++++++++-------- 2 files changed, 62 insertions(+), 23 deletions(-) diff --git a/data/data.go b/data/data.go index 830ee27..4e73c2a 100644 --- a/data/data.go +++ b/data/data.go @@ -10,7 +10,8 @@ // scripts/cluster-summary/tabulate.py (57.091kB) // scripts/create-lambda-bundle.sh (791B) // scripts/kindctl.sh (1.76kB) -// scripts/pull-deps.sh (1.797kB) +// scripts/publish.sh (703B) +// scripts/pull-deps.sh (2.642kB) package data @@ -94,7 +95,7 @@ func pkgPullreqTemplatesApply_commentGotpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "pkg/pullreq/templates/apply_comment.gotpl", size: 1052, mode: os.FileMode(0644), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "pkg/pullreq/templates/apply_comment.gotpl", size: 1052, mode: os.FileMode(0644), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x39, 0x98, 0xb8, 0x81, 0x9e, 0xbb, 0x97, 0xdd, 0x58, 0x91, 0x82, 0x55, 0x99, 0xef, 0x6c, 0xc3, 0x49, 0xe7, 0xe0, 0x9d, 0x4, 0x30, 0x35, 0x16, 0xb9, 0xa3, 0x44, 0x34, 0x84, 0x2e, 0x0, 0x1b}} return a, nil } @@ -114,7 +115,7 @@ func pkgPullreqTemplatesDiff_commentGotpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "pkg/pullreq/templates/diff_comment.gotpl", size: 1228, mode: os.FileMode(0644), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "pkg/pullreq/templates/diff_comment.gotpl", size: 1228, mode: os.FileMode(0644), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xee, 0x25, 0x58, 0x45, 0x7c, 0xdc, 0xb1, 0x76, 0x21, 0x29, 0x8e, 0x84, 0x5d, 0xb3, 0x29, 0xcf, 0x2e, 0x6e, 0xac, 0x9c, 0xd7, 0x94, 0xb5, 0xab, 0x64, 0xe6, 0x5b, 0xc3, 0x31, 0x9e, 0x7b, 0xcc}} return a, nil } @@ -134,7 +135,7 @@ func pkgPullreqTemplatesError_commentGotpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "pkg/pullreq/templates/error_comment.gotpl", size: 172, mode: os.FileMode(0644), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "pkg/pullreq/templates/error_comment.gotpl", size: 172, mode: os.FileMode(0644), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x66, 0x91, 0x41, 0xaa, 0x31, 0xec, 0xcc, 0xde, 0x38, 0xc3, 0x60, 0xd2, 0xa0, 0x3c, 0x7f, 0xb1, 0xbe, 0x9e, 0x85, 0x37, 0x3, 0x9e, 0xd0, 0xc9, 0x9c, 0xab, 0x18, 0x16, 0xdf, 0x86, 0xf0, 0x79}} return a, nil } @@ -154,7 +155,7 @@ func pkgPullreqTemplatesHelp_commentGotpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "pkg/pullreq/templates/help_comment.gotpl", size: 1025, mode: os.FileMode(0644), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "pkg/pullreq/templates/help_comment.gotpl", size: 1025, mode: os.FileMode(0644), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2d, 0xd5, 0xd5, 0x14, 0xf7, 0xf3, 0x98, 0xc4, 0x7e, 0x8e, 0x37, 0x4c, 0x3a, 0x9a, 0x21, 0x20, 0xe2, 0xe, 0x6a, 0x1b, 0x92, 0x5e, 0x3a, 0x45, 0x4e, 0x7, 0x60, 0xe8, 0x65, 0x94, 0x37, 0xab}} return a, nil } @@ -174,7 +175,7 @@ func pkgPullreqTemplatesStatus_commentGotpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "pkg/pullreq/templates/status_comment.gotpl", size: 355, mode: os.FileMode(0644), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "pkg/pullreq/templates/status_comment.gotpl", size: 355, mode: os.FileMode(0644), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2c, 0xf0, 0xcb, 0x4, 0x35, 0xaa, 0xf4, 0xf7, 0x74, 0x5d, 0xee, 0xae, 0x74, 0xe2, 0xec, 0xd7, 0x59, 0x9, 0x86, 0xca, 0x60, 0x36, 0x29, 0x25, 0xfb, 0x74, 0x50, 0x8d, 0xbd, 0xe8, 0x9c, 0x70}} return a, nil } @@ -194,7 +195,7 @@ func scriptsClusterSummary__init__Py() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "scripts/cluster-summary/__init__.py", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "scripts/cluster-summary/__init__.py", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} return a, nil } @@ -214,7 +215,7 @@ func scriptsClusterSummaryCluster_summaryPy() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "scripts/cluster-summary/cluster_summary.py", size: 4488, mode: os.FileMode(0755), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "scripts/cluster-summary/cluster_summary.py", size: 4488, mode: os.FileMode(0755), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb2, 0xfd, 0xc1, 0xd0, 0x9d, 0x3e, 0x14, 0x51, 0x1a, 0x84, 0x85, 0x49, 0x4a, 0x63, 0x5c, 0x4d, 0x3a, 0x6c, 0x28, 0x48, 0x9, 0xd0, 0x64, 0x2f, 0x7b, 0x5b, 0xa8, 0xe8, 0x1, 0xa, 0xa9, 0x99}} return a, nil } @@ -234,7 +235,7 @@ func scriptsClusterSummaryTabulatePy() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "scripts/cluster-summary/tabulate.py", size: 57091, mode: os.FileMode(0644), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "scripts/cluster-summary/tabulate.py", size: 57091, mode: os.FileMode(0644), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe9, 0x68, 0x8, 0x2c, 0x92, 0x99, 0x98, 0x23, 0x29, 0xba, 0x60, 0xc3, 0xa4, 0x16, 0x4, 0xe3, 0x2, 0xdd, 0x43, 0xdd, 0x2d, 0x2d, 0x51, 0x1e, 0xa9, 0x2, 0xe9, 0x71, 0x54, 0xef, 0x3c, 0x1c}} return a, nil } @@ -254,7 +255,7 @@ func scriptsCreateLambdaBundleSh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "scripts/create-lambda-bundle.sh", size: 791, mode: os.FileMode(0755), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "scripts/create-lambda-bundle.sh", size: 791, mode: os.FileMode(0755), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc6, 0x84, 0xb9, 0x6d, 0xfb, 0x33, 0xdc, 0xa7, 0xa8, 0x67, 0x8f, 0x17, 0xde, 0x9, 0x83, 0x14, 0x89, 0x73, 0xea, 0x81, 0x18, 0xa4, 0x2b, 0x9d, 0x33, 0xe3, 0xfe, 0xc3, 0xd9, 0x64, 0x43, 0x3c}} return a, nil } @@ -274,12 +275,32 @@ func scriptsKindctlSh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "scripts/kindctl.sh", size: 1760, mode: os.FileMode(0755), modTime: time.Unix(1640732267, 0)} + info := bindataFileInfo{name: "scripts/kindctl.sh", size: 1760, mode: os.FileMode(0755), modTime: time.Unix(1647954418, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xfc, 0x3e, 0x4a, 0xe1, 0xf9, 0x6d, 0x9, 0xf1, 0x17, 0xd1, 0xfe, 0xa0, 0x7e, 0xa7, 0x7a, 0xbb, 0x4c, 0xe, 0x1, 0x63, 0x7f, 0x15, 0x0, 0x16, 0x56, 0x48, 0x95, 0xc5, 0xb0, 0xf0, 0x20, 0xca}} return a, nil } -var _scriptsPullDepsSh = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x95\x4b\x6f\xe3\x36\x14\x85\xf7\xfa\x15\xac\x66\x76\x85\x24\xbe\x45\x16\xc8\xc2\xcd\x04\xe3\xa0\x93\x18\x88\x93\x6e\x0d\x92\x97\xb4\x84\xd8\xf2\x8c\x25\x3b\x41\x52\xff\xf7\x42\x7e\xc4\x2f\x25\x6d\x56\x82\xc5\x73\xef\xb9\xfa\x78\x48\x7f\xf9\x2d\xb3\x65\x95\x59\x53\x17\x51\x54\xfb\x06\x25\x3e\x8a\xbe\xa0\x3b\xff\x6b\x51\xce\x3d\xa0\xa5\x9f\xd7\xe5\xac\xaa\xa3\xfe\xd5\x8f\x9b\xd1\xdf\x57\x77\xc3\xeb\xc1\xed\x45\xcc\x52\x91\xe2\x78\xf3\x72\xd8\xef\x51\x21\x47\xc3\x87\x9b\x8b\x98\x85\x10\x30\x13\x1c\x44\xb0\x86\xbb\x9c\x79\x0b\x02\xac\xd0\x46\x68\xb0\x39\x0d\xca\x08\x6b\x3d\x21\x24\x37\xd8\x32\x21\x2c\x76\x54\x2b\xe6\xb5\x02\xab\x85\x8d\xa3\xe8\xba\x77\x33\xea\x3d\xdc\xf7\xaf\x6e\xef\xaf\x2f\x7b\xf7\x83\xbb\xbd\x2b\x4e\x45\x4a\xe3\x0e\xc5\xe1\x08\x6d\x7f\xce\x0d\xe4\x41\x02\xa8\xdc\x60\xea\xb1\xe5\x92\x19\x6a\x3c\x68\x49\x88\x62\xd2\x5b\x1a\x38\x86\x3c\x58\xaf\x9c\x20\x39\x97\xd8\x70\xa6\x84\xa4\xa4\x1d\xe1\xaf\x87\x3f\xaf\x2e\xef\x7f\xec\x8d\x97\x24\xa5\xb8\xb5\xde\xad\x0c\xfb\x3d\x41\xe8\xc6\xd0\x73\x41\x98\x03\x90\xc2\x83\x56\x18\xb8\x66\x54\x68\xe7\x72\x6f\x8c\x64\x8e\x13\x11\x74\x2e\x88\x04\x4b\xbd\xe1\x22\x18\xe5\x72\xce\x8c\xf4\x9c\x30\x83\x1d\x98\x40\xb5\x06\xcc\x00\x72\xad\xa9\x92\x2e\x30\x4a\x89\xa2\x36\x68\xa9\x39\xc5\x5c\x29\x6e\x2d\x06\xc0\x98\xe5\x2e\x70\x2e\x34\x05\x08\x46\x78\x41\x02\x51\xac\x1d\xf8\xfa\xf6\xdb\xc1\xb4\x38\x55\x29\x89\x37\x6f\x87\xfd\xde\xe8\x8d\x4d\xae\x88\x63\x60\x79\xae\xad\xc2\x02\x88\x24\x36\x77\xd4\xe5\x86\x11\xa5\x25\x10\x23\x30\xb7\x42\x31\x6f\x83\x73\x5e\x05\x07\x5c\x0b\xa6\x9c\x54\x1c\xb4\xb4\x2e\x8e\xa2\xef\x83\xc1\xf0\x62\x52\x56\x8b\xe7\xe8\xfb\xa0\x77\x77\xd9\xbf\x30\x53\x90\x3c\x8a\xbc\x2b\x66\x28\xfe\x36\x7b\xaa\x26\x33\x03\x65\x35\x46\x85\x9f\x4c\x91\x69\x76\x19\x42\x5f\x5f\x0f\x43\xb4\x8a\xa3\xa7\x71\x1b\xb8\x5f\xa8\x68\x9a\x9f\xf5\x1f\x59\x36\xf6\x4d\xda\x16\xa5\x75\x91\xb5\xcf\x64\x79\x52\x92\x7c\x7d\x6d\xfd\x37\xcf\xd6\x7c\x95\x36\x66\x9e\x8e\x5f\xb6\xee\x5b\xf9\x3e\x0e\x2b\xf4\xb9\x3e\x31\xfa\x07\xd5\x85\xa1\x42\xd6\x8b\x29\x4a\x5c\xd4\x98\x39\x4a\x9e\x5f\xc2\x27\xfb\x44\xee\x27\x3a\x5b\x5b\x7f\x13\x4a\xbb\x50\x99\xa7\x3a\x29\xcd\x34\x31\x8b\xa6\xf0\x55\x53\x3a\xd3\xcc\xe6\xc7\xec\xde\x3d\x17\x07\x20\x93\xc1\x3b\x9d\xde\x08\x97\x4d\xb1\xb0\xa9\x9b\x4d\xb3\xc7\x85\xf5\xf3\xca\x37\xbe\x4e\xea\x72\x5c\x67\x9d\x85\xd9\xdc\x4f\xbc\xa9\x7d\x9d\xc1\x76\xda\x6c\xf9\xd1\x28\xdd\x5d\x46\x1f\x95\x8c\xb6\x9c\x46\x6f\x9c\xde\x36\xf3\xa3\x83\xbe\xea\xfe\xd2\xb3\x0d\x74\xc5\x74\x06\xe8\xf7\xe7\x6e\x79\xd7\x5e\xb4\x60\x5c\x33\x39\xa6\x7f\x72\x25\x74\x84\x17\x26\xe9\xa3\xaa\xd3\x72\x96\x9d\xab\x0f\x61\xbb\x49\xe9\xab\xe6\xbf\x93\x7c\x7e\xd5\xac\xd0\xff\x6f\xb3\xe5\x20\x08\x3d\x0a\xf2\xf2\x25\x7c\xa2\x49\x9b\xe2\xbd\x3a\xdb\xa8\xd7\xff\x17\x3b\x46\x9d\x61\x7e\x2c\x2b\x38\xa1\x77\x70\x3f\x1d\xc7\x75\xad\xdd\x21\x6c\x7f\xa4\x6d\x18\x77\x24\x61\x92\x9d\x14\xaf\x35\xe7\x03\xef\xa9\x9d\xdc\x79\xab\xb5\xc3\xfb\xa9\x68\x57\xa3\x7f\x03\x00\x00\xff\xff\xda\x48\x64\x3b\x05\x07\x00\x00") +var _scriptsPublishSh = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x92\x5d\x6b\xb3\x30\x18\x86\xcf\xf3\x2b\x9e\xd7\x57\xb0\x3d\x48\x64\xfd\x80\x32\x10\x26\xad\x6b\x3d\xa9\xa0\xdd\x76\x32\x90\xa8\x69\x1b\x8c\x1f\x24\xda\xb2\x89\xff\x7d\x54\x4f\x74\x63\x3b\xda\x3c\x7c\x6e\x9f\xfb\xba\x12\xf2\xff\x9f\x59\x2b\x69\x46\x3c\x37\x59\x7e\x81\x88\xaa\x33\x42\x8a\x55\x80\x59\x5d\x40\xc9\x4b\x76\xa4\x5c\x20\x64\xbf\x04\xa1\xbd\x5e\x7b\x4f\xfb\x43\xe8\x6e\x2c\x63\x39\x5b\x2d\x96\x77\xf3\xd5\x62\xbe\x5a\x18\x5d\xea\x3b\x5b\xd7\xdb\x5b\x46\xad\xf0\x95\xa9\x0a\xcf\x0c\x84\x32\xca\xf3\xc9\x14\x1a\x04\x00\x20\x8a\x98\x0a\xc0\x12\x82\x9d\xe7\x1f\xc2\xad\x7b\x08\x83\x9d\x6d\xe9\x93\x13\xaf\x40\xb2\x0b\x2e\xa9\x54\x0c\x30\x56\xe7\x42\x56\xb0\x73\xec\xcd\x74\xbc\xc8\x33\x7a\x62\x96\xa6\x37\x63\x9b\x96\x24\xa9\x24\x2c\x96\xa4\x4f\x7a\x93\x96\xd0\x8c\xbe\x17\x39\xbd\x2a\x12\x17\x99\x99\xd6\x11\xa3\x65\x29\xde\xee\xf5\x66\x64\xd0\x6a\x63\x8a\xa0\x59\x94\xd0\xf0\x77\x60\xb8\x6f\xfb\x86\x99\x14\x71\xca\x24\x44\x35\x17\x09\xbc\x76\xa3\xdb\x87\x2b\xd0\xf4\xa6\x13\x68\xb5\xe1\x1c\x77\x7f\x62\x2a\x4f\xf0\xec\xf8\x81\xeb\xed\x43\xdf\x79\xbc\x49\x7e\x6a\x1f\x2c\x91\x21\xa9\xac\xd5\x79\xd0\x8d\x7e\xb4\x38\xc2\xa6\x4b\x8e\x5c\x30\xd2\x9f\xe3\x8b\xe4\xf0\xb2\xfe\xc8\x75\x8c\x40\x6d\xff\xac\x40\xd3\x1f\x34\xf4\x11\x00\x00\xff\xff\x84\xc5\xea\x8f\xbf\x02\x00\x00") + +func scriptsPublishShBytes() ([]byte, error) { + return bindataRead( + _scriptsPublishSh, + "scripts/publish.sh", + ) +} + +func scriptsPublishSh() (*asset, error) { + bytes, err := scriptsPublishShBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "scripts/publish.sh", size: 703, mode: os.FileMode(0755), modTime: time.Unix(1668453457, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x15, 0xc6, 0x54, 0xae, 0xf1, 0x72, 0xf2, 0xe9, 0xb8, 0xa1, 0x6, 0x11, 0x19, 0x6b, 0xb8, 0xa4, 0x8b, 0x17, 0x35, 0xd0, 0xc, 0xf3, 0x5d, 0x8, 0x29, 0xad, 0x79, 0x6b, 0xd7, 0x81, 0xbe, 0x94}} + return a, nil +} + +var _scriptsPullDepsSh = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x56\xcb\x6e\xdb\x4a\x12\xdd\xf3\x2b\x6a\xe8\x00\x33\x83\x09\xdf\x6c\x3e\x02\x78\xa1\x71\x7c\x63\x23\xb1\x0d\xd8\xce\x5d\xdc\x8d\xd0\x8f\x6a\xb1\x21\x8a\x54\xba\x9b\x96\xe3\xc4\xff\x7e\xd1\x94\x64\xf9\x21\xfb\x26\x1b\x13\xae\x3e\x75\xaa\x78\xba\xea\x88\x07\xff\x8a\x98\xea\x22\x46\x4d\xe3\x79\x06\x2d\x04\x38\xf4\xb0\x54\x4b\x94\x54\xb5\x9e\x77\x00\xe7\xbd\x45\xb0\x8d\x32\xa0\x0c\x0c\x06\x05\xb0\xef\xc0\x7a\xdb\x80\x6d\x10\x96\x03\x6b\x95\x69\xc0\x70\xad\x96\x16\x68\x27\xc6\xb0\x45\x63\x37\xb1\xd0\x91\x5c\xe2\xb7\x41\x69\x14\x70\x83\xda\xa8\xbe\x33\x2e\xf8\x87\xee\x17\x30\xe1\x8d\x6a\x5b\x7c\x0f\xfe\xa9\x84\x15\xba\x0a\x40\x41\x28\x29\x51\x63\x67\xb7\x09\x60\x1b\xda\xc1\x4d\x16\x92\x30\x1f\x2b\xf0\xbe\xb3\xee\xbc\x97\xde\x01\xe0\xdc\x04\xbc\xef\xa4\x9a\x0d\x9a\x5a\x07\xc7\x4e\x18\x18\x96\xc0\x50\x75\x33\xd0\x28\x7b\xbd\xa0\xd6\xa2\x78\x0f\xab\x46\xf1\x06\x56\xaa\x6d\xc1\x6a\x35\x9b\xa1\x06\x0a\x1a\xb9\xc6\x31\xd5\x3b\x80\x5e\x8e\x25\xfe\xea\xfb\x39\xe2\x12\x35\xf0\x76\x30\x16\x35\xc8\x5e\xc3\x11\x76\x56\x2b\x39\xcc\xf0\xdf\x06\x3e\x53\x39\xa7\xa0\x3a\x58\xea\x5e\x0c\xdc\xe5\x87\xbe\x77\x72\xfc\xe5\x6c\xfa\xe7\xf1\xe5\xd5\xe9\xc5\xf9\xa1\x3f\xf6\xec\x7b\x07\x70\xd4\x20\x9f\x9b\x61\x61\x80\x6a\x04\x0c\x67\x21\x34\xa8\xf1\x03\x34\xd6\x2e\xcd\x87\x28\x9a\x29\xdb\x0c\x2c\xe4\xfd\x22\x6a\xb0\xdd\xfc\xd1\xd8\x22\x35\x68\x22\x4b\x67\xd1\x5a\x80\x75\x81\xab\x93\x49\x4a\x8a\xe9\xd5\xd7\xb3\x43\x9f\x56\x42\xb0\x1c\xb3\x38\xcf\x08\x23\x52\xe4\x24\x8b\x2b\xe4\x1c\x09\x52\x2a\x8a\xb2\x10\x45\x4e\x89\xc0\x9a\x57\x75\x51\xc4\x8c\x14\x92\x72\xcc\x24\xd6\x75\xcc\xb2\xa4\xf2\x3d\xef\x74\x72\x36\x9d\x7c\xbd\x3e\x39\x3e\xbf\x3e\x3d\x9a\x5c\x5f\x5c\xee\xde\x20\x0e\x49\x98\xfa\x7b\x10\x8f\x5b\x20\x8c\x61\x9e\x53\x51\xca\x42\x88\xaa\xa4\x71\x8a\x31\xcb\x8b\x8c\xa6\x14\x45\x5d\x24\x49\x95\x15\xc8\x52\x99\xc7\xa2\x94\x0c\x2b\x4e\x92\x32\x2f\x62\x9a\x67\x15\x29\xd2\x84\xf9\x9e\xf7\xf9\xeb\xff\x8f\x8f\xae\xbf\xec\x0a\xdf\x24\x61\x1a\xbb\xd2\xdb\x93\xab\x93\x09\x49\xd2\x75\x41\xcc\x49\x92\x71\x21\x0a\x82\xa2\xae\x62\x91\xd7\x59\x4a\x6a\xce\x4b\xa4\xb4\xc8\x78\x9e\x10\x59\x97\x24\x29\x04\x4b\x91\xe6\x44\xd2\x8a\x97\x79\x46\x0b\xcc\x93\x8c\xc6\x5c\x50\x99\xd6\xb5\x88\x33\x21\xca\xba\x4e\xab\x82\xcb\x2c\x4d\x93\x2a\x65\xb2\x2e\xea\x3c\x8d\xf3\xaa\xca\x19\x8b\x85\x88\xe3\xac\xe4\x32\xcf\x49\x9d\x0a\x21\x29\x41\x92\xc8\xa4\xca\x5c\xc3\xa7\xe7\x1f\x1f\x75\x1b\x87\x55\x98\xf8\xeb\xe8\xd5\xc9\x64\xfa\xa0\x4d\x59\x25\x3c\x13\x2c\x2f\x6b\x56\xc5\x44\x24\x45\xc2\x4a\x9e\xf2\x92\x66\x49\x55\x17\x22\xa1\x24\xce\x19\xa9\x32\x64\x92\x73\xac\x24\x17\x79\x4d\xb2\x8a\x17\x55\x2e\xea\x82\x71\xdf\xf3\x3e\x5d\x5c\x5c\x1d\xb6\xaa\x1b\x6e\xbd\x4f\x17\x93\xcb\xa3\x93\x43\xba\x10\x45\xee\x79\x8b\xb9\x50\x1a\x82\x25\xf8\xef\x7e\x9c\x5c\x9c\x1d\xdf\x47\x6d\xcf\x69\xeb\xd6\xda\xf7\x3c\xe4\x4d\x0f\xfe\xc7\x7e\xd5\xb5\x3d\x15\x6e\x17\xdc\x50\x01\xdd\x2d\xd6\xbb\x1f\x8f\xc7\xf5\xde\xf7\x56\x33\x67\x03\xdf\x76\x53\x89\x36\x74\x49\xa1\x69\xc6\x89\x0c\x6e\x9e\xa5\x04\xef\x7e\xb8\xee\xd6\x4f\xd7\xda\x7d\x68\xa9\x0e\x67\x77\x9b\xea\x1b\xf8\x6e\x58\xee\xe1\xf7\x78\x7c\xf8\x09\xa6\xa1\x29\x29\xcc\xb0\x80\x80\x7b\x96\x6a\x08\x6e\xef\xe4\x6f\xf2\x78\x2f\x0e\xc6\x17\xda\x4a\xe1\x1d\x80\xd5\xdf\x21\x1a\x8c\xde\x69\x08\xff\x71\x4b\xff\xb1\xe7\x73\xd4\x52\xb5\xf8\xdf\xd1\xe3\x24\x6d\x5b\x60\x94\xcf\x3d\xbe\x84\x57\x58\xfd\xa7\x44\x3e\xfc\xfc\x09\x6f\xa0\x7f\xed\xf6\xe8\xca\x04\x8a\x2e\x02\x3a\xd8\x06\x3b\xab\x38\xb5\xbd\x7e\x7a\x9d\xaf\x2e\xf2\xa3\xbb\x0d\x2e\x5e\x61\xda\x63\x45\xf3\x81\xa1\xee\xd0\xa2\x09\x8c\x9a\x99\x68\x6f\xe2\xce\xa6\xc4\xa6\xdb\xe8\xe6\xad\x56\xf6\xb3\x4c\xdf\x4a\x99\x6e\x94\x9b\x3e\x28\xf7\x30\x5f\x6f\x39\xd3\xfd\xfe\x37\x7d\x31\x53\xbc\x59\xf4\x02\xfe\x77\xbb\x1f\xbe\xef\x2e\x9c\x30\xdc\xb6\x4f\xd5\x7f\xe6\x61\x7b\xf6\x49\xb4\xe1\xbc\x32\xa1\xea\xa3\x97\xe8\xc7\x62\xf3\x56\x61\x67\xff\x79\xb9\x5e\x7a\xe3\x3d\xfc\x3a\xcd\x46\x07\x92\xa4\x4f\x76\xeb\xe6\x4e\xfe\x06\x89\xdb\x82\x1d\x3a\x5a\xa3\xc7\x0f\x8b\xad\x46\xe1\x5e\x01\x55\x27\x9e\xa9\xf7\xc8\x50\x9f\x8e\xeb\x88\xdd\x4a\xe8\xfe\x09\xdd\x30\x6e\x95\x14\x6d\xf4\x2c\x79\xc4\xbc\x6c\x78\xa7\xda\x33\x93\xbe\x1f\x2b\xbc\x3e\x15\xee\xd4\x7d\xb4\x3c\xdc\x62\xcf\x4d\x48\x57\x26\xa4\x0b\x7a\xd7\x77\xe3\xa6\xf0\x56\x45\x2d\x75\xdf\x3e\xd1\x60\x50\xcf\x06\x25\xd0\xd9\xa7\x55\xdd\x2c\x30\x96\x6a\x8b\x22\x50\x9d\xb1\xb4\x6d\xc3\xc6\x2e\x5a\x8f\x0f\xba\x05\x7f\xcb\x49\x57\x86\xb7\x6a\xc3\xe8\xb8\x1d\xe9\x3a\x18\xe0\x2d\x06\xa3\xfd\x07\xb7\x55\x31\x2d\xf2\xf0\x4e\x2d\x7d\x08\x7a\xf0\xd7\x80\x9b\x74\x8c\x78\x43\x77\xa7\x96\x4e\xb3\xc7\xe1\x57\x7f\x24\xe8\xca\xf8\x5e\xe8\x1e\xd1\xa6\x2f\x08\xb6\x1d\x06\x2e\x65\x0f\x1e\x82\x80\xa9\x6e\xdf\xe9\x68\x5a\x7f\x07\x00\x00\xff\xff\x26\xe3\xeb\xdd\x52\x0a\x00\x00") func scriptsPullDepsShBytes() ([]byte, error) { return bindataRead( @@ -294,8 +315,8 @@ func scriptsPullDepsSh() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "scripts/pull-deps.sh", size: 1797, mode: os.FileMode(0755), modTime: time.Unix(1640732267, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc, 0x3a, 0x72, 0x9, 0x16, 0xea, 0x9e, 0xdc, 0xd4, 0x72, 0x53, 0xa8, 0x31, 0x29, 0x9b, 0xcc, 0x8a, 0xeb, 0x65, 0x26, 0x1b, 0x28, 0xbd, 0x4e, 0x3d, 0x14, 0x43, 0x3d, 0x5a, 0xc1, 0x48, 0x72}} + info := bindataFileInfo{name: "scripts/pull-deps.sh", size: 2642, mode: os.FileMode(0755), modTime: time.Unix(1668453457, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8, 0x38, 0x15, 0x85, 0x84, 0x0, 0x7a, 0x81, 0x3a, 0x1c, 0xd5, 0xe0, 0xd9, 0x7, 0xa3, 0xc1, 0x1d, 0x1b, 0x11, 0x74, 0xc3, 0xc6, 0xf6, 0x9d, 0x1b, 0xc, 0x52, 0xe1, 0x94, 0xd0, 0xc6, 0x9d}} return a, nil } @@ -400,6 +421,7 @@ var _bindata = map[string]func() (*asset, error){ "scripts/cluster-summary/tabulate.py": scriptsClusterSummaryTabulatePy, "scripts/create-lambda-bundle.sh": scriptsCreateLambdaBundleSh, "scripts/kindctl.sh": scriptsKindctlSh, + "scripts/publish.sh": scriptsPublishSh, "scripts/pull-deps.sh": scriptsPullDepsSh, } @@ -466,6 +488,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ }}, "create-lambda-bundle.sh": {scriptsCreateLambdaBundleSh, map[string]*bintree{}}, "kindctl.sh": {scriptsKindctlSh, map[string]*bintree{}}, + "publish.sh": {scriptsPublishSh, map[string]*bintree{}}, "pull-deps.sh": {scriptsPullDepsSh, map[string]*bintree{}}, }}, }} diff --git a/pkg/helm/helm_test.go b/pkg/helm/helm_test.go index 2f35d28..f29fcc9 100644 --- a/pkg/helm/helm_test.go +++ b/pkg/helm/helm_test.go @@ -186,15 +186,31 @@ func TestExpandHelmTemplates(t *testing.T) { contentsStr := string(contents) for _, value := range values { - assert.True( - t, - strings.Contains(contentsStr, value), - "file %s for test case %s does not contain %s: %s", - existsSubPath, - testCase.description, - value, - contentsStr, - ) + if strings.Contains(value, "RELEASE-NAME") || strings.Contains(value, "release-name") { + // In Helm 3.8.0, the default value for .Release.Name changed from + // uppercase to lowercase + contentsStrUp := strings.ToUpper(contentsStr) + valueUp := strings.ToUpper(value) + assert.True( + t, + strings.Contains(contentsStrUp, valueUp), + "file %s for test case %s does not contain (case-insensitive) %s: %s", + existsSubPath, + testCase.description, + value, + contentsStr, + ) + } else { + assert.True( + t, + strings.Contains(contentsStr, value), + "file %s for test case %s does not contain %s: %s", + existsSubPath, + testCase.description, + value, + contentsStr, + ) + } } } }