mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-07-02 23:05:48 +02:00
Added curl to create zone
This commit is contained in:
parent
62cab2be4f
commit
2f8fc1876b
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
|
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
|
||||||
version: 2.1
|
version: 2.1
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.16
|
- image: circleci/golang:1.16
|
||||||
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- "--webserver-loglevel=detailed"
|
- "--webserver-loglevel=detailed"
|
||||||
- "--loglevel=10"
|
- "--loglevel=10"
|
||||||
- "--log-dns-queries=yes"
|
- "--log-dns-queries=yes"
|
||||||
- "--master"
|
- "--master=yes"
|
||||||
- "--disable-syslog"
|
- "--disable-syslog"
|
||||||
- "--webserver-address=0.0.0.0"
|
- "--webserver-address=0.0.0.0"
|
||||||
- "--webserver-allow-from=0.0.0.0/0"
|
- "--webserver-allow-from=0.0.0.0/0"
|
||||||
|
@ -43,6 +43,8 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: |
|
command: |
|
||||||
|
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8080)" != "200" ]]; do sleep 3; done
|
||||||
|
curl -sv -X post -H 'X-API-Key: password' --data '{"id":"example.com.","name":"example.com.", "type": "zone", "kind": "native"}' http://localhost:8080/api/v1/servers/localhost/zones
|
||||||
mkdir -p /tmp/test-reports
|
mkdir -p /tmp/test-reports
|
||||||
env TEST_ZONE_NAME=example.com. gotestsum --junitfile /tmp/test-reports/unit-tests.xml
|
env TEST_ZONE_NAME=example.com. gotestsum --junitfile /tmp/test-reports/unit-tests.xml
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
|
|
Loading…
Reference in a new issue