-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base containerized application workflow (#17)
* feat: sample TCP server + broken pipe * fix: local package path for benchmark utility * refactor: MQTT republisher example to stream * refactor: client-server model to new file * fix: test config. & final directory structure * feat: internal Docker host config (MQTT) * feat: SHA256 hash & file contents test case * docs: example failed test case * Revert "docs: example failed test case" This reverts commit d5283b1. * docs: bump directory structure tree
- Loading branch information
1 parent
ec2d157
commit 60739bf
Showing
14 changed files
with
333 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# syntax=docker/dockerfile:1 | ||
# Data Diode CLI in Go via container image. | ||
# https://docs.docker.com/language/golang/build-images/ | ||
|
||
FROM golang:alpine | ||
WORKDIR /cli | ||
COPY . /cli | ||
RUN CGO_ENABLED=0 GOOS=linux go build -o diode | ||
CMD [ "./diode", "mqtt" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
listener 1883 | ||
allow_anonymous true | ||
persistence false | ||
|
||
# https://hub.docker.com/_/eclipse-mosquitto | ||
# persistence_location /mosquitto/data/ | ||
# log_dest file /mosquitto/log/mosquitto.log |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,35 @@ | ||
package main | ||
|
||
import "testing" | ||
import ( | ||
"fmt" | ||
"testing" | ||
|
||
func TestNewClient(t *testing.T) { | ||
name := "Input" | ||
t.Run(name, func(t *testing.T) { | ||
t.Parallel() | ||
}) | ||
"github.com/acep-uaf/data-diode/utility" | ||
) | ||
|
||
func TestCLI(t *testing.T) { | ||
got := "diode" | ||
want := "diode" | ||
|
||
if got != want { | ||
t.Errorf("got %q, want %q", got, want) | ||
} | ||
} | ||
|
||
func TestConfiguration(t *testing.T) { | ||
got := Configuration{} | ||
want := Configuration{} | ||
|
||
if got != want { | ||
t.Errorf("got %q, want %q", got, want) | ||
} | ||
} | ||
|
||
func TestNewServer(t *testing.T) { | ||
name := "Output" | ||
t.Run(name, func(t *testing.T) { | ||
t.Parallel() | ||
}) | ||
func TestFileContents(t *testing.T) { | ||
got := fmt.Sprintf("%x", utility.Checksum()) | ||
want := "ed03bb5d7385010c645c2c72ceabea3b15806db757005071309745c59933586f" | ||
|
||
if got != want { | ||
t.Errorf("got %q, want %q", got, want) | ||
} | ||
} |
Oops, something went wrong.