Merge pull request #6017 from irbekrm/importable_webhook_tests

Make external DNS webhook tests importable again
This commit is contained in:
jetstack-bot 2023-05-04 13:26:37 +01:00 committed by GitHub
commit 346de1002d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 12 additions and 8 deletions

View File

@ -27,8 +27,8 @@ import (
"k8s.io/client-go/kubernetes"
"sigs.k8s.io/controller-runtime/pkg/envtest"
"github.com/cert-manager/cert-manager/integration-tests/internal/apiserver"
"github.com/cert-manager/cert-manager/pkg/acme/webhook"
"github.com/cert-manager/cert-manager/test/apiserver"
)
func init() {

View File

@ -21,10 +21,10 @@ import (
"sync"
"time"
logf "github.com/cert-manager/cert-manager/pkg/logs"
"github.com/go-logr/logr"
"github.com/miekg/dns"
logf "github.com/cert-manager/cert-manager/pkg/logs"
)
type rfc2136Handler struct {

View File

@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// package dns contains a framework for testing ACME DNS solver implementations.
// Used by both internal and external solvers.
package dns
import (

View File

@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// package apiserver contains functionality to set up a Kubernetes control plane
// for tests.
package apiserver
import (

View File

@ -24,7 +24,7 @@ import (
"k8s.io/client-go/rest"
"sigs.k8s.io/controller-runtime/pkg/envtest"
"github.com/cert-manager/cert-manager/integration-tests/internal/apiserver"
"github.com/cert-manager/cert-manager/test/apiserver"
)
type TestInstallApiServer struct {

View File

@ -38,11 +38,11 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/envtest"
"github.com/cert-manager/cert-manager/integration-tests/internal/apiserver"
"github.com/cert-manager/cert-manager/internal/test/paths"
"github.com/cert-manager/cert-manager/internal/webhook"
"github.com/cert-manager/cert-manager/pkg/api"
"github.com/cert-manager/cert-manager/pkg/webhook/handlers"
"github.com/cert-manager/cert-manager/test/apiserver"
webhooktesting "github.com/cert-manager/cert-manager/webhook-binary/app/testing"
)

View File

@ -22,12 +22,12 @@ import (
logtesting "github.com/go-logr/logr/testing"
dns "github.com/cert-manager/cert-manager/integration-tests/acmedns"
testserver "github.com/cert-manager/cert-manager/integration-tests/acmedns/server"
cmacme "github.com/cert-manager/cert-manager/pkg/apis/acme/v1"
cmmeta "github.com/cert-manager/cert-manager/pkg/apis/meta/v1"
"github.com/cert-manager/cert-manager/pkg/issuer/acme/dns/rfc2136"
logf "github.com/cert-manager/cert-manager/pkg/logs"
dns "github.com/cert-manager/cert-manager/test/acme"
testserver "github.com/cert-manager/cert-manager/test/acme/server"
)
func TestRunSuiteWithTSIG(t *testing.T) {

View File

@ -33,9 +33,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
testserver "github.com/cert-manager/cert-manager/integration-tests/acmedns/server"
"github.com/cert-manager/cert-manager/pkg/issuer/acme/dns/rfc2136"
logf "github.com/cert-manager/cert-manager/pkg/logs"
testserver "github.com/cert-manager/cert-manager/test/acme/server"
)
var (