Skip to content

Commit ff66015

Browse files
Merge pull request #2768 from simonpasquier/fix-api-server-tests
NO-ISSUE: rename manifests_test package to manifests
2 parents f722ae8 + ba70210 commit ff66015

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

pkg/manifests/apiserver_config_test.go

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,23 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package manifests_test
15+
package manifests
1616

1717
import (
1818
"reflect"
1919
"strings"
2020
"testing"
2121

2222
configv1 "github.com/openshift/api/config/v1"
23-
24-
"github.com/openshift/cluster-monitoring-operator/pkg/manifests"
2523
)
2624

2725
func TestGetTLSCiphers(t *testing.T) {
28-
defaultCiphers := manifests.APIServerDefaultTLSCiphers
29-
defaultTLSVersion := manifests.APIServerDefaultMinTLSVersion
26+
defaultCiphers := APIServerDefaultTLSCiphers
27+
defaultTLSVersion := APIServerDefaultMinTLSVersion
3028

3129
testCases := []struct {
3230
name string
33-
config *manifests.APIServerConfig
31+
config *APIServerConfig
3432
expectedCiphers []string
3533
expectedMinTLSVersion configv1.TLSProtocolVersion
3634
}{
@@ -42,7 +40,7 @@ func TestGetTLSCiphers(t *testing.T) {
4240
},
4341
{
4442
name: "nil config",
45-
config: manifests.NewAPIServerConfig(nil),
43+
config: NewAPIServerConfig(nil),
4644
expectedCiphers: defaultCiphers,
4745
expectedMinTLSVersion: defaultTLSVersion,
4846
},
@@ -154,8 +152,8 @@ func TestGetTLSCiphers(t *testing.T) {
154152
}
155153
}
156154

157-
func newApiserverConfig(profile *configv1.TLSSecurityProfile) *manifests.APIServerConfig {
158-
config := manifests.NewAPIServerConfig(&configv1.APIServer{
155+
func newApiserverConfig(profile *configv1.TLSSecurityProfile) *APIServerConfig {
156+
config := NewAPIServerConfig(&configv1.APIServer{
159157
Spec: configv1.APIServerSpec{
160158
TLSSecurityProfile: profile,
161159
},

0 commit comments

Comments
 (0)