added some more testing as well as cron expression is now scheduling larger intervals

This commit is contained in:
Gert Wohlgemuth
2018-06-05 16:04:43 -07:00
parent 19a525265f
commit 473339f740
5 changed files with 209 additions and 95 deletions

View File

@@ -627,6 +627,31 @@ def lambda_context():
lamb = moto.mock_lambda()
lamb.start()
ecs = moto.mock_ecs()
ecs.start()
cluster = boto3.client('ecs')
cluster.create_cluster(clusterName='fargate')
cluster.register_task_definition(
containerDefinitions=[
{
'name': 'freqtrade-backtesting',
'command': [
'sleep',
'360',
],
'cpu': 10,
'essential': True,
'image': 'busybox',
'memory': 10,
},
],
family='sleep360',
taskRoleArn='',
volumes=[
],
)
session = boto3.session.Session()
os.environ["strategyTable"] = "StrategyTable"
os.environ["tradeTable"] = "TradeTable"
@@ -649,3 +674,4 @@ def lambda_context():
sns.stop()
dynamo.stop()
lamb.stop()
ecs.stop()