Skip to content

Commit

Permalink
E2E tests - [DO NOT MERGE]
Browse files Browse the repository at this point in the history
  • Loading branch information
Slava Lysunkin committed Nov 19, 2024
1 parent 21fc459 commit 478f4d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,20 @@ set-hmc-version: yq
for template in $$TEMPLATE_DIR; do \
if [ $$(yq eval '.kind' $$template) = 'ClusterTemplate' ]; then \
echo $$template; \
sed -i "s/chartVersion:.*[^$$cutversion].*/&-$$cutversion/g" "$$template"; \
sed -i '' "s/chartVersion:.*[^$$cutversion].*/&-$$cutversion/g" "$$template"; \
fi; \
done; \
CHART_DIR=$(TEMPLATES_DIR)/cluster/**/Chart.yaml; \
for chart in $$CHART_DIR; do \
echo $$chart; \
sed -i "s/version:.*[^$$cutversion]*./&-$$cutversion/g" "$$chart"; \
sed -i '' "s/version:.*[^$$cutversion]*./&-$$cutversion/g" "$$chart"; \
done; \
TEST_RES="test/e2e/managedcluster/resources/*.yaml.tpl"; \
for template in $$TEST_RES; do \
if [ $$(yq eval '.kind' $$template) = 'ManagedCluster' ]; then \
echo $$template; \
sed -i '' "s/template:.*[^$$cutversion].*/&-$$cutversion/g" "$$template"; \
fi; \
done

.PHONY: hmc-chart-release
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/provider_aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ var _ = Describe("AWS Templates", Label("provider:cloud", "provider:aws"), Order
// Deploy a standalone cluster and verify it is running/ready.
GinkgoT().Setenv(managedcluster.EnvVarAWSInstanceType, "t3.small")

cmd := exec.Command("kubectl", "get", "clustertemplates", "-n", "hmc-system")
cmd := exec.Command("kubectl", "get", "clustertemplates", "-n", "hmc-system", "-o", "yaml")
output, err := utils.Run(cmd)
_, _ = fmt.Fprintln(GinkgoWriter, string(output))
Expect(err).NotTo(HaveOccurred())
Expand Down

0 comments on commit 478f4d5

Please sign in to comment.