Adding rudimentary test for unmarshaling cron job.

This commit is contained in:
Renan DelValle 2020-05-07 16:37:19 -07:00
parent d06530d0ca
commit 13fbbce816
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -25,6 +25,12 @@ func TestUnmarshalJob(t *testing.T) {
assert.NoError(t, err)
}
func TestUnmarshalCron(t *testing.T) {
cron, err := UnmarshalJob("../test/hello_world_cron.yaml")
assert.NoError(t, err)
assert.NoError(t, cron.ValidateCron())
}
func TestUnmarshalUpdate(t *testing.T) {
_, err := UnmarshalUpdate("../test/update_hello_world.yaml")
assert.NoError(t, err)