Skip to content

Commit

Permalink
Add example config TOML
Browse files Browse the repository at this point in the history
Signed-off-by: David Son <[email protected]>
  • Loading branch information
sondavidb committed Oct 16, 2023
1 parent 01edc65 commit d5366b7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions integration/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import (
"fmt"
"io"
"math"
"os"
"regexp"
"strconv"
"strings"
Expand All @@ -49,6 +50,21 @@ import (
shell "github.com/awslabs/soci-snapshotter/util/dockershell"
)

func TestRunWithDefaultConfig(t *testing.T) {
b, err := os.ReadFile("../config/config.toml") // example toml file
if err != nil {
t.Fatalf("error fetching example toml")
}
config := string(b)

sh, c := newSnapshotterBaseShell(t)
defer c()

rebootContainerd(t, sh, getContainerdConfigToml(t, false), getSnapshotterConfigToml(t, false, config))
// This will error internally if it fails to boot. If it boots successfully,
// the config was successfully parsed and snapshotter is running
}

// TestRunMultipleContainers runs multiple containers at the same time and performs a test in each
func TestRunMultipleContainers(t *testing.T) {

Expand Down

0 comments on commit d5366b7

Please sign in to comment.