'Test using nested resource more transparently.
With the addition of OS::stack_id we can now use the nested resource
more transparently.'

def test_transparent_ref(self):

    nested_templ = '\nheat_template_version:    2014-10-16\nresources:\n        secret1:\n                type:    OS::Heat::RandomString\noutputs:\n        OS::stack_id:\n                value:    {get_resource:    secret1}\n        nested_str:\n                value:    {get_attr:    [secret1,    value]}\n'
    stack_identifier = self.stack_create(template=self.main_templ, files={'nested.yaml': nested_templ}, environment=self.env_templ)
    self.assert_resource_is_a_stack(stack_identifier, 'secret2')
    stack = self.client.stacks.get(stack_identifier)
    test_ref = self._stack_output(stack, 'test_ref')
    test_attr = self._stack_output(stack, 'old_way')
    self.assertNotIn('arn:openstack:heat', test_ref)
    self.assertEqual(test_attr, test_ref)
