Make the TestResource a bit smarter

This is a better representation of how actual resources work.

1. implement check_*_complete
2. measure the time, not just do one sleep
3. add client_name and entity_name so we can actually talk to a service
   (even if it fails).
4. add some example usage in test_create_update.py
5. don't use json_snippet._properties

The timeout works in a similar way to the waitcondition.

Change-Id: I7d3fd0340fefe4a06b8d4f0952c162be604aa58c
diff --git a/functional/test_create_update.py b/functional/test_create_update.py
index 87d7a23..b2aad34 100644
--- a/functional/test_create_update.py
+++ b/functional/test_create_update.py
@@ -26,7 +26,10 @@
                 'value': 'Test1',
                 'fail': False,
                 'update_replace': False,
-                'wait_secs': 0
+                'wait_secs': 0,
+                'action_wait_secs': {'create': 1},
+                'client_name': 'nova',
+                'entity_name': 'servers',
             }
         }
     }
@@ -42,7 +45,8 @@
                 'value': 'Test1',
                 'fail': False,
                 'update_replace': False,
-                'wait_secs': 0
+                'wait_secs': 0,
+                'action_wait_secs': {'update': 1}
             }
         },
         'test2': {