Skip to content

Commit

Permalink
Merge branch 'main' into error-handling-project-and-members
Browse files Browse the repository at this point in the history
  • Loading branch information
flbla authored Sep 29, 2023
2 parents 3f05046 + bddd089 commit 1a005f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
- '1.2.*'
- '1.3.*'
- '1.4.*'
- '1.5.*'
steps:

- name: Check out code into the Go module directory
Expand All @@ -86,16 +87,16 @@ jobs:
- name: Setup Docker
uses: docker-practice/actions-setup-docker@v1
with:
docker_version: "20.10"
docker_version: "24.0"
docker_channel: stable
docker_daemon_json: '{"insecure-registries":["0.0.0.0/0"]}'

- name: Create kind cluster
uses: helm/[email protected]
with:
version: v0.11.1
node_image: kindest/node:v1.22.0
cluster_name: kind-cluster-v1.22.0
version: v0.20.0
node_image: kindest/node:v1.28.0
cluster_name: kind-cluster-v1.28.0
config: kind-cluster.yaml

- name: Install Nginx ingress controller
Expand Down Expand Up @@ -126,17 +127,20 @@ jobs:
- name: Wait for harbor to be ready
run: |
attempt_counter=0
max_attempts=120 # Max wait will be 10m
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' $HARBOR_URL)" != "401" ]]; do
max_attempts=25 # Max wait will be 2m
while [[ "$(curl -k -s -o /dev/null -w ''%{http_code}'' $HARBOR_URL/api/v2.0/configurations -u $HARBOR_USERNAME:$HARBOR_PASSWORD)" != "200" ]]; do
if [ ${attempt_counter} -eq ${max_attempts} ];then
echo "Max attempts reached"
kubectl get pods -A
curl -v $HARBOR_URL
exit 1
fi
printf '.'
attempt_counter=$(($attempt_counter+1))
sleep 5
done
sleep 5
- name: Set up Go
uses: actions/setup-go@v4
Expand Down
4 changes: 2 additions & 2 deletions provider/resource_replication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func testAccCheckReplicationUpdate() string {
}

func TestDestinationNamespace(t *testing.T) {
var scheduleType = "* 0/15 * * * *"
var scheduleType = "0 0/15 * * * *"
var destNamepace = "gcp-project"
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -125,7 +125,7 @@ func TestDestinationNamespace(t *testing.T) {
}

func TestDestinationNamespaceReplaceCount(t *testing.T) {
var scheduleType = "* 0/15 * * * *"
var scheduleType = "0 0/15 * * * *"
var destNamespaceReplaceCount = 0

resource.Test(t, resource.TestCase{
Expand Down

0 comments on commit 1a005f6

Please sign in to comment.