Skip to content

Commit

Permalink
Use data set 'id' instead of 'name' in DLF template (#38)
Browse files Browse the repository at this point in the history
* Use data set 'id' instead of 'name'
* Update setup.py
* Incorporate template change
  • Loading branch information
ptitzler authored Nov 5, 2020
1 parent c306552 commit 92f14e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
setup(
name='exchange-metadata-converter',
packages=find_packages(),
version='0.0.8',
version='0.0.9',
license='Apache-2.0',
description='exchange metadata converters',
long_description=README,
Expand Down
2 changes: 1 addition & 1 deletion templates/dlf_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
apiVersion: com.ie.ibm.hpsys/v1alpha1
kind: Dataset
metadata:
name: '{{name}}'
name: '{{id}}'
labels:
version: '{{version}}'
spec:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_dlf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_dtest_dlf(self):
'com.ie.ibm.hpsys/v1alpha1')
self.assertEqual(out_dict['kind'], 'Dataset')
self.assertEqual(out_dict['metadata']['name'],
self.in_yamls['name'])
self.in_yamls['id'])
self.assertEqual(out_dict['metadata']['labels']['version'],
self.in_yamls['version'])
self.assertEqual(out_dict['spec']['type'],
Expand Down

0 comments on commit 92f14e9

Please sign in to comment.