summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNeal Shrader <neal@digitalocean.com>2014-10-16 19:19:29 -0400
committerNeal Shrader <neal@digitalocean.com>2014-10-16 19:19:29 -0400
commit01e8df0557098093a0e3444f41ba3f1861ded316 (patch)
treeab11d9479e28e3f9f279fb20f44b98d84fe85910 /tests
parent33b54a3ac2560b192f29ce1fbe797fdd3cb968aa (diff)
downloadvyos-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.py9
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',