Skip to content

Commit

Permalink
Update plugin_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Laura Lin <[email protected]>
  • Loading branch information
lauralindy authored Nov 7, 2023
1 parent 96fe77b commit 879ca56
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions flyteplugins/go/tasks/plugins/webapi/athena/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ func TestCreateTaskInfo(t *testing.T) {
assert.Len(t, taskInfo.ExternalResources, 1)
assert.Equal(t, taskInfo.ExternalResources[0].ExternalID, "query_id")
}


func TestCreateTaskInfoGovAWS(t *testing.T) {
taskInfo := createTaskInfo("query_id", awsSdk.Config{
Region: "us-gov-east-1",
})
assert.EqualValues(t, []*idlCore.TaskLog{
{
Uri: "https://us-gov-east-1.console.amazonaws-us-gov.com/athena/home?force&region=us-gov-east-1#query/history/query_id",
Name: "Athena Query Console",
},
}, taskInfo.Logs)
assert.Len(t, taskInfo.ExternalResources, 1)
assert.Equal(t, taskInfo.ExternalResources[0].ExternalID, "query_id")
}

0 comments on commit 879ca56

Please sign in to comment.