Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import io.aklivity.zilla.runtime.engine.EngineContext;
import io.aklivity.zilla.runtime.engine.binding.Binding;
import io.aklivity.zilla.runtime.engine.config.KindConfig;

public final class AmqpBinding implements Binding
{
Expand All @@ -44,6 +45,20 @@ public URL type()
return getClass().getResource("schema/amqp.schema.patch.json");
}

@Override
public String originType(
KindConfig kind)
{
return kind == KindConfig.CLIENT ? NAME : null;
}

@Override
public String routedType(
KindConfig kind)
{
return kind == KindConfig.SERVER ? NAME : null;
}

@Override
public AmqpBindingContext supply(
EngineContext context)
Expand Down
6 changes: 6 additions & 0 deletions incubator/command-dump/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.aklivity.zilla</groupId>
<artifactId>binding-amqp.spec</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void shouldMatchExpectedOutput() throws Exception
String expectedText = Files.readString(resourceToPath("expected_dump.txt"));

// WHEN
String protocols = "zilla,http,http2,tls,mqtt,kafka";
String protocols = "zilla,http,http2,tls,mqtt,kafka,amqp";
Container.ExecResult result = tshark.execInContainer("tshark", "-O", protocols, "-r", containerPath);

// THEN
Expand Down

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ east_http_filesystem_mapping
east_filesystem_server
north_mqtt_server
north_mqtt_kafka_mapping
amqp
north_amqp_server
north_fan_server
Binary file not shown.
Loading