diff options
author | Neal Shrader <neal@digitalocean.com> | 2014-10-16 19:19:29 -0400 |
---|---|---|
committer | Neal Shrader <neal@digitalocean.com> | 2014-10-16 19:19:29 -0400 |
commit | 01e8df0557098093a0e3444f41ba3f1861ded316 (patch) | |
tree | ab11d9479e28e3f9f279fb20f44b98d84fe85910 /tests | |
parent | 33b54a3ac2560b192f29ce1fbe797fdd3cb968aa (diff) | |
download | vyos-cloud-init-01e8df0557098093a0e3444f41ba3f1861ded316.tar.gz vyos-cloud-init-01e8df0557098093a0e3444f41ba3f1861ded316.zip |
Use existing metadata crawler to populate datasource
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_datasource/test_digitalocean.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/unittests/test_datasource/test_digitalocean.py b/tests/unittests/test_datasource/test_digitalocean.py index 9576e042..559a4f9f 100644 --- a/tests/unittests/test_datasource/test_digitalocean.py +++ b/tests/unittests/test_datasource/test_digitalocean.py @@ -26,7 +26,16 @@ from cloudinit.sources import DataSourceDigitalOcean from .. import helpers as test_helpers +# Abbreviated for the test +DO_INDEX = """id + hostname + user-data + vendor-data + public-keys + region""" + DO_META = { + '': DO_INDEX, 'user-data': '#!/bin/bash\necho "user-data"', 'vendor-data': '#!/bin/bash\necho "vendor-data"', 'public-keys': 'ssh-rsa AAAAB3NzaC1yc2EAAAA... neal@digitalocean.com', |