20 from datetime
import datetime
25 now = str(datetime.now())
27 u_admin = {
'l':
'cc1',
'p':
'cc1',
'cm': 0}
28 u_fake = {
'l':
'cc1',
'p':
'xxx',
'cm': 0}
53 actions.append({
'u': u_admin, 'fname': 'message.user.list', 'args': []})
56 actions.append({
'u': u_admin, 'fname': 'image.user.list', 'args': [{'access': 0, 'type': 2}], 'store_as': 'user_images', 'estatus': 'ok'})
57 actions.append({
'u': u_admin, 'fname': 'image.user.list', 'args': [{'access': 1, 'type': 2}], 'store_as': 'public_images', 'estatus': 'ok'})
58 actions.append({
'u': u_admin, 'fname': 'image.user.list', 'args': [{'access': 2, 'type': 2}], 'store_as': 'group_images', 'estatus': 'ok'})
61 actions.append({
'type':
'sleep',
'time': 10})
64 actions.append({
'type':
'exec',
'command':
'apt-get',
65 'args': [
'install',
'python-mysql']})
69 actions.append({
'type':
'exec',
'command':
'ssh',
70 'args': [
'root@example.net',
'"w | wc -l"'],
71 'wait_resonse':
'stdout == "5"',