Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
is this it?
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac Pustejovsky committed Apr 5, 2018
1 parent 9843bd7 commit de9195c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/kube_config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,18 @@
def _base64(string):
return base64.encodestring(string.encode()).decode()


def _format_expiry_datetime(dt):
return dt.strftime(EXPIRY_DATETIME_FORMAT)


def _get_expiry(loader):
expired_gcp_conf = (item for item in loader._config.value.get("users")
if item.get("name") == "expired_gcp")
return next(expired_gcp_conf).get("user").get("auth-provider") \
.get("config").get("expiry")


def _raise_exception(st):
raise Exception(st)

Expand Down Expand Up @@ -208,11 +211,11 @@ class TestConfigNode(BaseTestCase):
"value": {"key1", "test"}},
{"name": "test_name3", "value": [1, 2, 3]}],
"with_names_dup": [
{"name": "test_name","value": "test_value"},
{"name": "test_name", "value": "test_value"},
{"name": "test_name",
"value": {"key1", "test"}},
{"name": "test_name3", "value": [1, 2, 3]}
]}
]}

def setUp(self):
super(TestConfigNode, self).setUp()
Expand Down

0 comments on commit de9195c

Please # to comment.