From 326086e352910955545ffeecedfc7e290fced163 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Wed, 12 Aug 2020 17:06:09 -0400 Subject: [PATCH] Move api tests to internal package to remove issue with external resources depending on internal libs --- api/internal/{tests => genapi}/detail_template_test.go | 2 +- api/{ => internal/tests}/authmethods/authenticate_test.go | 0 api/{ => internal/tests}/authtokens/authtoken_test.go | 0 api/{ => internal/tests}/groups/group_test.go | 0 api/{ => internal/tests}/hosts/host_catalog_test.go | 0 api/{ => internal/tests}/roles/role_test.go | 0 api/{ => internal/tests}/scopes/project_test.go | 0 api/{ => internal/tests}/users/user_test.go | 0 8 files changed, 1 insertion(+), 1 deletion(-) rename api/internal/{tests => genapi}/detail_template_test.go (97%) rename api/{ => internal/tests}/authmethods/authenticate_test.go (100%) rename api/{ => internal/tests}/authtokens/authtoken_test.go (100%) rename api/{ => internal/tests}/groups/group_test.go (100%) rename api/{ => internal/tests}/hosts/host_catalog_test.go (100%) rename api/{ => internal/tests}/roles/role_test.go (100%) rename api/{ => internal/tests}/scopes/project_test.go (100%) rename api/{ => internal/tests}/users/user_test.go (100%) diff --git a/api/internal/tests/detail_template_test.go b/api/internal/genapi/detail_template_test.go similarity index 97% rename from api/internal/tests/detail_template_test.go rename to api/internal/genapi/detail_template_test.go index ace68f64a2..01fdd3d070 100644 --- a/api/internal/tests/detail_template_test.go +++ b/api/internal/genapi/detail_template_test.go @@ -1,4 +1,4 @@ -package tests +package main_test // TODO: Reenable once we reimplement generation of As functions once static hosts lands /* diff --git a/api/authmethods/authenticate_test.go b/api/internal/tests/authmethods/authenticate_test.go similarity index 100% rename from api/authmethods/authenticate_test.go rename to api/internal/tests/authmethods/authenticate_test.go diff --git a/api/authtokens/authtoken_test.go b/api/internal/tests/authtokens/authtoken_test.go similarity index 100% rename from api/authtokens/authtoken_test.go rename to api/internal/tests/authtokens/authtoken_test.go diff --git a/api/groups/group_test.go b/api/internal/tests/groups/group_test.go similarity index 100% rename from api/groups/group_test.go rename to api/internal/tests/groups/group_test.go diff --git a/api/hosts/host_catalog_test.go b/api/internal/tests/hosts/host_catalog_test.go similarity index 100% rename from api/hosts/host_catalog_test.go rename to api/internal/tests/hosts/host_catalog_test.go diff --git a/api/roles/role_test.go b/api/internal/tests/roles/role_test.go similarity index 100% rename from api/roles/role_test.go rename to api/internal/tests/roles/role_test.go diff --git a/api/scopes/project_test.go b/api/internal/tests/scopes/project_test.go similarity index 100% rename from api/scopes/project_test.go rename to api/internal/tests/scopes/project_test.go diff --git a/api/users/user_test.go b/api/internal/tests/users/user_test.go similarity index 100% rename from api/users/user_test.go rename to api/internal/tests/users/user_test.go