GCORE: support metadatas for controlling GeoDNS/Failover
Add metadata fields for configuring Gcore's GeoDNS and Healthcheck/Failover functionalities, as well as documentations for them.
Tested manually with my own config.
As a side note, I didn't add any automated tests because I'm not sure how we should do so for custom metadata fields. Should I add them as testgroups in integrationTest/integration_test.go?
Neat stuff! Thanks for the PR!
Yes, please add integration tests. Just limit them to GCORE similar to how Clouldflare's proxy tests are just for CLOUDFLAREAPI.
See this example around line 1964:
testgroup("CF_PROXY A create",
only("CLOUDFLAREAPI"),
Added integration test, and made some small changes to the code to make it play nice with integ test.
Great new feature! I love the withMeta() function that makes testing so easy.
I've rebased. Anything else before merging?
Looks good to me.