Skip to content

Commit

Permalink
chore: test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Jan 8, 2024
1 parent 25f7e81 commit c2cc8fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions fixtures/git/_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ if ! which mergestat > /dev/null; then
fi
fi


kubectl create namespace canaries || true

# creating a GITHUB_TOKEN Secret
if [[ -z "${GH_TOKEN}" ]]; then
printf "\nEnvironment variable for github token (GH_TOKEN) is missing!!!\n"
Expand All @@ -21,8 +24,6 @@ else
kubectl create secret generic github-token --from-literal=GITHUB_TOKEN="${GH_TOKEN}" --namespace canaries
fi

kubectl create namespace canaries || true

helm repo add gitea-charts https://dl.gitea.io/charts
helm repo update
helm install gitea gitea-charts/gitea -f fixtures/git/gitea.values --create-namespace --namespace gitea --wait
Expand Down
2 changes: 1 addition & 1 deletion test/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var _ = ginkgo.BeforeSuite(func() {
})

func init() {
defaultFolder := "fixtures/git"
defaultFolder := "fixtures/minimal"
if os.Getenv("TEST_FOLDER") != "" {
defaultFolder = os.Getenv("TEST_FOLDER")
}
Expand Down

0 comments on commit c2cc8fa

Please sign in to comment.