-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add end-to-end testing for the dump
command
#646
Conversation
.../test/java/io/aklivity/zilla/runtime/command/dump/internal/airline/ZillaDumpCommandTest.java
Outdated
Show resolved
Hide resolved
.../test/java/io/aklivity/zilla/runtime/command/dump/internal/airline/ZillaDumpCommandTest.java
Outdated
Show resolved
Hide resolved
@@ -5,7 +5,7 @@ The `dump` command creates a `pcap` file that can be opened by Wireshark using t | |||
This is the command to build a multi-arch `tshark` image and push it to a docker repository: | |||
|
|||
```bash | |||
cd <zilla-source>/incubator/command-dump/src/test/resources/io/aklivity/zilla/runtime/command/dump/internal | |||
cd <zilla-source>/incubator/command-dump/src/test/resources/io/aklivity/zilla/runtime/command/dump/internal/airline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to have the Dockerfile in the test jar?
If not we can move this to src/test/docker
instead so the instructions are a bit simpler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we need it. The setUp
method here is implemented the way that it tries to find/pull the image first and if doesn't find it, then builds it on-the-fly.
ImageFromDockerfile image = new ImageFromDockerfile().withDockerfile(resourceToPath("Dockerfile"));
incubator/command-dump/pom.xml
Outdated
<exclude>src/test/resources/io/aklivity/zilla/runtime/command/dump/internal/airline/*</exclude> | ||
<exclude>src/test/resources/io/aklivity/zilla/runtime/command/dump/internal/airline/engine/*</exclude> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we scope the files a little more tightly so that new resources get caught automatically?
For example src/test/resources/**/*.pcap
etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, pls chk
Description
This commit adds end-to-end testing to the
dump
command that includes the builders, thepcap
generation, runstshark
indocker
with thelua
dissector and the captures the output.