Skip to content

Commit 7a015fd

Browse files
committed
Add flink_test
1 parent 955d657 commit 7a015fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/flink_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ func (s *CLITestSuite) TestFlinkConnectionCreateFailure() {
156156
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type a2a --endpoint https://api.example.com", fixture: "flink/connection/create/create-a2a-no-secret.golden", exitCode: 1},
157157
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type a2a --endpoint https://api.example.com --api-key 0000000000000000 --token token", fixture: "flink/connection/create/create-a2a-mutually-exclusive-secret.golden", exitCode: 1},
158158
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type a2a --endpoint https://api.example.com --token-endpoint https://api.example.com/oauth2", fixture: "flink/connection/create/create-a2a-missing-required-secret.golden", exitCode: 1},
159+
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type elastic --endpoint https://api.example.com", fixture: "flink/connection/create/create-elastic-no-secret.golden", exitCode: 1},
160+
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type elastic --endpoint https://api.example.com --api-key 0000000000000000 --username user", fixture: "flink/connection/create/create-elastic-mutually-exclusive-secret.golden", exitCode: 1},
161+
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type elastic --endpoint https://api.example.com --username user", fixture: "flink/connection/create/create-elastic-missing-required-secret.golden", exitCode: 1},
159162
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type mcp_server --endpoint https://api.example.com --token token --sse-endpoint /sse --transport-type HTTP", fixture: "flink/connection/create/create-wrong-mcp-transport-type.golden", exitCode: 1},
160163
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type mcp_server --endpoint https://api.example.com --api-key api_key --sse-endpoint sse --transport-type STREAMABLE_HTTP", fixture: "flink/connection/create/create-streamable-http-mcp-connection-with-sse-endpoint.golden", exitCode: 1},
161164
}
@@ -181,6 +184,7 @@ func (s *CLITestSuite) TestFlinkConnectionCreateSuccess() {
181184
{args: "flink connection create my-connection --cloud gcp --region eu-west-1 --type vertexai --endpoint https://api.openai.com/v1/chat/completions --service-key 0000000000000000", fixture: "flink/connection/create/create-vertexai.golden"},
182185
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type mongodb --endpoint https://api.openai.com/v1/chat/completions --username name --password pass", fixture: "flink/connection/create/create-mongodb.golden"},
183186
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type elastic --endpoint https://api.openai.com/v1/chat/completions --api-key 0000000000000000", fixture: "flink/connection/create/create-elastic.golden"},
187+
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type elastic --endpoint https://api.openai.com/v1/chat/completions --username name --password pass", fixture: "flink/connection/create/create-elastic.golden"},
184188
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type pinecone --endpoint https://api.openai.com/v1/chat/completions --api-key 0000000000000000", fixture: "flink/connection/create/create-pinecone.golden"},
185189
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type couchbase --endpoint https://api.openai.com/v1/chat/completions --username name --password pass", fixture: "flink/connection/create/create-couchbase.golden"},
186190
{args: "flink connection create my-connection --cloud aws --region eu-west-1 --type confluent_jdbc --endpoint jdbc:mysql://custom.com:3306/customerdb --username name --password pass", fixture: "flink/connection/create/create-confluent_jdbc.golden"},

0 commit comments

Comments
 (0)