Skip to content

Directory Listing should not include tests in production, shown in help #229

@codevulture

Description

@codevulture

dir(kubernetes.config)
['ConfigException', 'builtins', 'doc', 'file', 'name', 'package', 'path', 'config_exception', 'incluster_config', 'kube_config', 'list_kube_config_contexts', 'load_incluster_config', 'load_kube_config', 'new_client_from_config']

help(kubernetes.config)
Help on package kubernetes.config in kubernetes:

NAME
kubernetes.config

FILE
/usr/local/lib/python2.7/dist-packages/kubernetes/config/init.py

DESCRIPTION
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

PACKAGE CONTENTS
config_exception
incluster_config
incluster_config_test
kube_config
kube_config_test

As general tests dir in Kubernetes module is not included in production.So i think either we can include all tests or exclude all. But please see if that is valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.help-neededkind/bugCategorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions