Skip to content

Commit

Permalink
Upgrade to Ondatra v0.4.3 (openconfig#2366)
Browse files Browse the repository at this point in the history
* Upgrade to Ondatra v0.4.2

* Upgrade to Ondatra v0.4.3
  • Loading branch information
greg-dennis authored Nov 10, 2023
1 parent e394a54 commit 35de065
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,37 +39,23 @@ var enCiscoCommands encryptionCommands

// creating files before factory reset
func createFiles(t *testing.T, dut *ondatra.DUTDevice, devicePaths []string) {
cli := dut.RawAPIs().CLI(t)
for _, folderPath := range devicePaths {
fPath := path.Join(folderPath, "devrandom.log")
_, err := cli.SendCommand(context.Background(), fmt.Sprintf(fileCreateDevRand, fPath))
if err != nil {
t.Fatalf("Failed to create file devrandom.log in the path %v, Error: %v ", folderPath, err)
}
dut.CLI().Run(t, fmt.Sprintf(fileCreateDevRand, fPath))
t.Log("Check if the file is created")
time.Sleep(30 * time.Second)
filesCreated = append(filesCreated, fPath)
fPath = path.Join(folderPath, ".devrandom.log")
_, err = cli.SendCommand(context.Background(), fmt.Sprintf(fileCreateDevRand, fPath))
if err != nil {
t.Fatalf("Failed to create file .devrandom.log in the path %v, Error: %v", folderPath, err)

}
dut.CLI().Run(t, fmt.Sprintf(fileCreateDevRand, fPath))

filesCreated = append(filesCreated, fPath)
fPath = path.Join(folderPath, "largeFile.log")
_, err = dut.RawAPIs().CLI(t).SendCommand(context.Background(), fmt.Sprintf(fileCreate, 100, fPath))
if err != nil {
t.Fatalf("Failed to create file largeFile.log in the path %v, Error: %v", folderPath, err)
}
dut.CLI().Run(t, fmt.Sprintf(fileCreate, 100, fPath))

filesCreated = append(filesCreated, fPath)
}
for _, f := range filesCreated {
resp, err := cli.SendCommand(context.Background(), fmt.Sprintf(checkFileExists, f))
if err != nil {
t.Fatalf("Failed to send command %s on the device, Error: %v", fmt.Sprintf(checkFileExists, f), err)
}
resp := dut.CLI().Run(t, fmt.Sprintf(checkFileExists, f))
t.Logf("%v", resp)
if !strings.Contains(resp, fileExists) {
t.Fatalf("Unable to Create a file object %s in device %s", f, dut.Name())
Expand Down
38 changes: 19 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ require (
github.com/open-traffic-generator/snappi/gosnappi v0.13.0
github.com/openconfig/entity-naming v0.0.0-20230912181021-7ac806551a31
github.com/openconfig/gnmi v0.10.0
github.com/openconfig/gnoi v0.2.0
github.com/openconfig/gnoigo v0.0.0-20231025173800-d65570111f09
github.com/openconfig/gnoi v0.3.0
github.com/openconfig/gnoigo v0.0.0-20231026010722-87413fdb22e7
github.com/openconfig/gnsi v1.2.3
github.com/openconfig/gocloser v0.0.0-20220310182203-c6c950ed3b0b
github.com/openconfig/goyang v1.4.3
github.com/openconfig/goyang v1.4.4
github.com/openconfig/gribi v1.0.0
github.com/openconfig/gribigo v0.0.0-20231031140438-9a293da13ff9
github.com/openconfig/kne v0.1.14
github.com/openconfig/ondatra v0.4.0
github.com/openconfig/ondatra v0.4.3
github.com/openconfig/replayer v0.0.0-20231031192218-5462382820d4
github.com/openconfig/testt v0.0.0-20220311054427-efbb1a32ec07
github.com/openconfig/ygnmi v0.9.0
github.com/openconfig/ygot v0.29.13
github.com/openconfig/ygnmi v0.10.0
github.com/openconfig/ygot v0.29.15
github.com/p4lang/p4runtime v1.4.0-rc.5.0.20220728214547-13f0d02a521e
github.com/protocolbuffers/txtpbfmt v0.0.0-20220608084003-fc78c767cd6a
golang.org/x/crypto v0.14.0
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
golang.org/x/text v0.13.0
golang.org/x/crypto v0.15.0
golang.org/x/exp v0.0.0-20231108232855-2478ac86f678
golang.org/x/text v0.14.0
google.golang.org/api v0.143.0
google.golang.org/grpc v1.59.0
google.golang.org/protobuf v1.31.0
Expand All @@ -48,10 +48,10 @@ require (
)

require (
cloud.google.com/go v0.110.8 // indirect
cloud.google.com/go/compute v1.23.1 // indirect
cloud.google.com/go v0.110.9 // indirect
cloud.google.com/go/compute v1.23.2 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v1.1.3 // indirect
cloud.google.com/go/iam v1.1.4 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230518184743-7afd39499903 // indirect
github.com/acomagu/bufpipe v1.0.4 // indirect
github.com/aristanetworks/arista-ceoslab-operator/v2 v2.0.2 // indirect
Expand Down Expand Up @@ -118,7 +118,7 @@ require (
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.10.0 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.17.0 // indirect
github.com/srl-labs/srl-controller v0.6.0 // indirect
Expand All @@ -128,16 +128,16 @@ require (
go.opencensus.io v0.24.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/term v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231012201019-e917dd12ba7a // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect
google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
Expand Down
Loading

0 comments on commit 35de065

Please sign in to comment.