Skip to content

Commit

Permalink
/go/libraries/doltcore/sqle/enginetest/dolt_ci_queries.go: add dolt_c…
Browse files Browse the repository at this point in the history
…i_workflow_events engine tests
  • Loading branch information
coffeegoddd committed Aug 15, 2024
1 parent 64d925a commit da9e573
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions go/libraries/doltcore/sqle/enginetest/dolt_ci_queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ var DoltCIConfigTests = []queries.ScriptTest{
" ('workflow_2', TIMESTAMP('2024-08-15 00:00:00'), TIMESTAMP('2024-08-15 00:00:00'))," +
" ('workflow_3', TIMESTAMP('2024-08-15 00:00:00'), TIMESTAMP('2024-08-15 00:00:00'))",
"call dolt_commit('-Am', 'create three workflows');",
"insert into dolt_ci_workflow_events values" +
"('uuid_1', 'workflow_1', 0)," +
" ('uuid_2', 'workflow_2', 1)," +
" ('uuid_3', 'workflow_3', 2)",
"call dolt_commit('-Am', 'create three workflow events');",
},
Assertions: []queries.ScriptTestAssertion{
{
Expand All @@ -41,6 +46,14 @@ var DoltCIConfigTests = []queries.ScriptTest{
sql.Row{"workflow_3", time.Date(2024, time.August, 15, 0, 0, 0, 0, time.UTC), time.Date(2024, time.August, 15, 0, 0, 0, 0, time.UTC)},
},
},
{
Query: "select * from dolt_ci_workflow_events;",
Expected: []sql.Row{
sql.Row{"uuid_1", "workflow_1", 0},
sql.Row{"uuid_2", "workflow_2", 1},
sql.Row{"uuid_3", "workflow_3", 2},
},
},
},
},
}
Expand Down

0 comments on commit da9e573

Please sign in to comment.