diff --git a/documentation/adding-new-rtypes.md b/documentation/adding-new-rtypes.md index 264bef43c..02f486c09 100644 --- a/documentation/adding-new-rtypes.md +++ b/documentation/adding-new-rtypes.md @@ -252,7 +252,7 @@ in the source code. To run the integration test with the BIND provider: ```shell -cd integrationTest/ +cd integrationTest # NOTE: Not needed if already in that subdirectory go test -v -verbose -provider BIND ``` @@ -275,6 +275,7 @@ For example, this will run the tests on Amazon AWS Route53: export R53_DOMAIN=dnscontroltest-r53.com # Use a test domain. export R53_KEY_ID=CHANGE_TO_THE_ID export R53_KEY='CHANGE_TO_THE_KEY' +cd integrationTest # NOTE: Not needed if already in that subdirectory go test -v -verbose -provider ROUTE53 ``` diff --git a/documentation/integration-tests.md b/documentation/integration-tests.md index f47327205..af8138807 100644 --- a/documentation/integration-tests.md +++ b/documentation/integration-tests.md @@ -14,7 +14,7 @@ For each step, it will run the config once and expect changes. It will run it ag 1. The integration tests need a test domain to run on. All the records of this domain will be deleted! 2. Define all environment variables expected for the provider you wish to run. I setup a local `.env` file with the appropriate values and use [zoo](https://github.com/jsonmaur/zoo) to run my commands. -3. run `go test -v -provider $NAME` where $NAME is the name of the provider you wish to run. +3. run `cd integrationTest && go test -v -provider $NAME` where $NAME is the name of the provider you wish to run. Example: @@ -35,6 +35,7 @@ export ROUTE53_DOMAIN="testdomain.tld" ``` ```shell +cd integrationTest # NOTE: Not needed if already in that subdirectory go test -v -verbose -provider ROUTE53 ``` diff --git a/documentation/providers/cloudflareapi.md b/documentation/providers/cloudflareapi.md index aa32be0d9..2a181fcb0 100644 --- a/documentation/providers/cloudflareapi.md +++ b/documentation/providers/cloudflareapi.md @@ -265,6 +265,7 @@ This flag is intended for use with legacy domains where the integration test cre have access to read/edit Workers. This flag will eventually go away. ```shell +cd integrationTest # NOTE: Not needed if already in that subdirectory go test -v -verbose -provider CLOUDFLAREAPI -cfworkers=false ``` diff --git a/documentation/providers/hexonet.md b/documentation/providers/hexonet.md index 5fc8539fb..5a2dbcbec 100644 --- a/documentation/providers/hexonet.md +++ b/documentation/providers/hexonet.md @@ -57,11 +57,11 @@ dnscontrol get-zones --format=nameonly hexonet HEXONET all ``` ```shell # Review the output. Pick one domain and set HEXONET_DOMAIN. -cd integrationTest/ export HEXONET_DOMAIN=yodream.com # Pick a domain name. export HEXONET_ENTITY=OTE export HEXONET_UID=test.user export HEXONET_PW=test.passw0rd +cd integrationTest # NOTE: Not needed if already in that subdirectory go test -v -verbose -provider HEXONET ``` diff --git a/documentation/writing-providers.md b/documentation/writing-providers.md index b83e83f96..2f1435366 100644 --- a/documentation/writing-providers.md +++ b/documentation/writing-providers.md @@ -181,7 +181,7 @@ Integration tests use a test account and a real domain. For example, this will run the tests using BIND: ```shell -cd integrationTest/ +cd integrationTest # NOTE: Not needed if already in that subdirectory go test -v -verbose -provider BIND ``` @@ -193,6 +193,7 @@ This will run the tests on Amazon AWS Route53: export R53_DOMAIN=dnscontroltest-r53.com # Use a test domain. export R53_KEY_ID='CHANGE_TO_THE_ID' export R53_KEY='CHANGE_TO_THE_KEY' +cd integrationTest # NOTE: Not needed if already in that subdirectory go test -v -verbose -provider ROUTE53 ```