Skip to content

Commit

Permalink
test: fix nightly tests broken by MaterializeInc#14467
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Loiselle committed Aug 31, 2022
1 parent b11a185 commit eceee6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion misc/python/materialize/checks/sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def manipulate(self) -> List[Testdrive]:
> CREATE CONNECTION IF NOT EXISTS kafka_conn FOR KAFKA BROKER '${testdrive.kafka-addr}';
> CREATE CONNECTION IF NOT EXISTS csr_conn FOR CONFLUENT SCHEMA REGISTRY URL '${testdrive.schema-registry-url}';
> CREATE SINK sink_sink2 FROM sink_source_view
INTO KAFKA CONNECTION kafka_conn
TOPIC 'sink-sink2'
Expand Down Expand Up @@ -122,6 +124,8 @@ def validate(self) -> Testdrive:
> CREATE CONNECTION IF NOT EXISTS kafka_conn FOR KAFKA BROKER '${testdrive.kafka-addr}';
> CREATE CONNECTION IF NOT EXISTS csr_conn FOR CONFLUENT SCHEMA REGISTRY URL '${testdrive.schema-registry-url}';
> CREATE SOURCE sink_view1
FROM KAFKA CONNECTION kafka_conn
TOPIC 'sink-sink1'
Expand Down Expand Up @@ -204,10 +208,12 @@ def initialize(self) -> Testdrive:
> CREATE CONNECTION IF NOT EXISTS kafka_conn FOR KAFKA BROKER '${testdrive.kafka-addr}';
> CREATE CONNECTION IF NOT EXISTS csr_conn FOR CONFLUENT SCHEMA REGISTRY URL '${testdrive.schema-registry-url}';
> CREATE SINK sink_large_transaction_sink1 FROM sink_large_transaction_view
INTO KAFKA CONNECTION kafka_conn
TOPIC 'testdrive-sink-large-transaction-sink-${testdrive.seed}'
FORMAT AVRO USING CONFLUENT SCHEMA REGISTRY CONNECTION csr_conn
FORMAT AVRO USING CONFLUENT SCHEMA REGISTRY CONNECTION csr_conn;
"""
)
)
Expand All @@ -232,6 +238,8 @@ def validate(self) -> Testdrive:
# We check the contents of the sink topics by re-ingesting them.
> CREATE CONNECTION IF NOT EXISTS kafka_conn FOR KAFKA BROKER '${testdrive.kafka-addr}';
> CREATE CONNECTION IF NOT EXISTS csr_conn FOR CONFLUENT SCHEMA REGISTRY URL '${testdrive.schema-registry-url}';
> CREATE SOURCE sink_large_transaction_source
FROM KAFKA CONNECTION kafka_conn
TOPIC 'testdrive-sink-large-transaction-sink-${testdrive.seed}'
Expand Down
2 changes: 1 addition & 1 deletion test/limits/mzcompose.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def body(cls) -> None:
print('"123" {"f1": "123"}')

print(
"""> CREATE CONNECTION IF NOT EXISTS csr_conn
f"""> CREATE CONNECTION IF NOT EXISTS csr_conn
FOR CONFLUENT SCHEMA REGISTRY
URL '${{testdrive.schema-registry-url}}';
"""
Expand Down

0 comments on commit eceee6f

Please sign in to comment.