Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add cron tests. #317

@Mandukhai-Alimaa

Description

@Mandukhai-Alimaa

In scripts/boss_test.py, add a function test_cron_trigger that tests the cron trigger by:

Creating a lambda function f.py that appends the string "cron invoked" to /tmp/cron_test_output.txt and ol.yaml that has a corn trigger that triggers this function every minute

Packaging the lambda code (f.py) and an ol.yaml and uploading it to the lambda_store.

Sleeping for 70 seconds to allow the cron to trigger.

Checking that the file /tmp/cron_test_output.txt exists and contains "cron invoked".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions