From a82df0d9313aea643240f86cad17d4760747d56b Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Fri, 13 Jan 2023 11:57:09 +1000 Subject: [PATCH] Fix cypress tests --- backend/internal/dnsproviders/common.go | 2 +- test/cypress/integration/api/FullCertProvision.spec.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/internal/dnsproviders/common.go b/backend/internal/dnsproviders/common.go index 8c848f1..4986bcb 100644 --- a/backend/internal/dnsproviders/common.go +++ b/backend/internal/dnsproviders/common.go @@ -18,7 +18,7 @@ type providerField struct { MinLength int `json:"minLength,omitempty"` MaxLength int `json:"maxLength,omitempty"` Pattern string `json:"pattern,omitempty"` - IsSecret bool `json:"isSecret"` // Not valid jsonschema + IsSecret bool `json:"-"` // Not valid jsonschema } // Provider is a simple struct diff --git a/test/cypress/integration/api/FullCertProvision.spec.js b/test/cypress/integration/api/FullCertProvision.spec.js index 6601046..21ee435 100644 --- a/test/cypress/integration/api/FullCertProvision.spec.js +++ b/test/cypress/integration/api/FullCertProvision.spec.js @@ -34,10 +34,10 @@ describe('Full Certificate Provisions', () => { name: 'PowerDNS - example.com', dns_sleep: 5, meta: { - url: 'http://ns1.pdns:8081', - server_id: 'localhost', - token: 'npm', - ttl: '5' + PDNS_Url: 'http://ns1.pdns:8081', + PDNS_ServerId: 'localhost', + PDNS_Token: 'npm', + PDNS_Ttl: '5' } } }).then((data) => {