fix file injection test to not assume /etc is present
File injection is currently failing as the /etc
directory is not present and the file injection
logic currently doesn't ensure a specified directory is present.
There is a pending change https://review.openstack.org/#/c/18900/
that changes operation so that a failure to inject user
specified files results in startup failure,
so adjust the test to inject to always present root dir.
Change-Id: I864272516e06ac0c2317b4470e263f5db41149f9
diff --git a/tempest/tests/compute/servers/test_create_server.py b/tempest/tests/compute/servers/test_create_server.py
index 4fe4284..c916ae8 100644
--- a/tempest/tests/compute/servers/test_create_server.py
+++ b/tempest/tests/compute/servers/test_create_server.py
@@ -43,7 +43,7 @@
cls.accessIPv6canon = '::babe:dc0c:1602'
cls.name = rand_name('server')
file_contents = 'This is a test file.'
- personality = [{'path': '/etc/test.txt',
+ personality = [{'path': '/test.txt',
'contents': base64.b64encode(file_contents)}]
cls.client = cls.servers_client
cli_resp = cls.client.create_server(cls.name,