Skip to content

Commit

Permalink
Merge pull request #113 from sebastienc/work
Browse files Browse the repository at this point in the history
Fixing volume tests.
  • Loading branch information
sebastienc committed Nov 29, 2017
2 parents b228750 + ea7420e commit 951ffbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_k8s_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def test_init_config_map(self):
self.assertEqual('configMap', vol.type)
self.assertIsInstance(vol.source, ConfigMapVolumeSource)

def test_hostpath_set_items(self):
def test_configmap_set_items(self):
name = "yoname"
type = "configMap"
items = list()
Expand All @@ -198,7 +198,8 @@ def test_hostpath_set_items(self):
})
vol = K8sVolume(name=name, type=type)
vol.configmap_items = items
self.assertEqual(items, vol.configmap_items)
serialized_items = vol.serialize().get('configMap').get('items')
self.assertEqual(items, serialized_items)

# --------------------------------------------------------------------------------- awsElasticBlockStore

Expand Down

0 comments on commit 951ffbb

Please sign in to comment.