11package examples
22
33import (
4- "fmt"
54 "testing"
65
7- "github.com/davecgh/go-spew/spew"
86 "github.com/stretchr/testify/require"
97
108 "github.com/smartcontractkit/chainlink-testing-framework/framework"
119 "github.com/smartcontractkit/chainlink-testing-framework/framework/components/blockchain"
1210 "github.com/smartcontractkit/chainlink-testing-framework/framework/components/fake"
13- "github.com/smartcontractkit/chainlink-testing-framework/framework/components/jd"
14- "github.com/smartcontractkit/chainlink-testing-framework/framework/components/networktest"
1511 ns "github.com/smartcontractkit/chainlink-testing-framework/framework/components/simple_node_set"
1612)
1713
1814type Cfg struct {
1915 BlockchainA * blockchain.Input `toml:"blockchain_a" validate:"required"`
2016 MockerDataProvider * fake.Input `toml:"data_provider" validate:"required"`
2117 NodeSets []* ns.Input `toml:"nodesets" validate:"required"`
22- JD * jd.Input `toml:"jd" validate:"required"`
2318}
2419
2520func TestSmoke (t * testing.T ) {
@@ -32,16 +27,6 @@ func TestSmoke(t *testing.T) {
3227 require .NoError (t , err )
3328 out , err := ns .NewSharedDBNodeSet (in .NodeSets [0 ], bc )
3429 require .NoError (t , err )
35- _ , err = jd .NewJD (in .JD )
36- require .NoError (t , err )
37- spew .Dump (in .NodeSets [0 ])
38- _ , err = networktest .NewNetworkTest (networktest.Input {Privileged : true , BlockInternet : true })
39- require .NoError (t , err )
40- dc , err := framework .NewDockerClient ()
41- require .NoError (t , err )
42- sOut , err := dc .ExecContainer ("networktest" , []string {"ping" , "-c" , "2" , "google.com" })
43- require .NoError (t , err )
44- fmt .Println (sOut )
4530
4631 t .Run ("test something" , func (t * testing.T ) {
4732 for _ , n := range out .CLNodes {
0 commit comments