github.com/smartcontractkit/chainlink-terra@v0.1.4/tests/e2e/env.go (about)

     1  package e2e
     2  
     3  import "github.com/smartcontractkit/helmenv/environment"
     4  
     5  // NewChainlinkTerraEnv returns a cluster config with LocalTerra node
     6  func NewChainlinkTerraEnv(nodes int, stateful bool) *environment.Config {
     7  	env := &environment.Config{
     8  		NamespacePrefix: "chainlink-terra",
     9  		Charts: environment.Charts{
    10  			"localterra": {
    11  				Index: 1,
    12  			},
    13  			"mockserver-config": {
    14  				Index: 2,
    15  			},
    16  			"mockserver": {
    17  				Index: 3,
    18  			},
    19  			"chainlink": {
    20  				Index: 4,
    21  				Values: map[string]interface{}{
    22  					"replicas": nodes,
    23  					"chainlink": map[string]interface{}{
    24  						"image": map[string]interface{}{
    25  							"image":   "public.ecr.aws/z0b1w9r9/chainlink",
    26  							"version": "develop",
    27  						},
    28  					},
    29  					"env": map[string]interface{}{
    30  						"EVM_ENABLED":                 "false",
    31  						"EVM_RPC_ENABLED":             "false",
    32  						"TERRA_ENABLED":               "true",
    33  						"eth_disabled":                "true",
    34  						"CHAINLINK_DEV":               "true",
    35  						"USE_LEGACY_ETH_ENV_VARS":     "false",
    36  						"FEATURE_OFFCHAIN_REPORTING2": "true",
    37  						"feature_external_initiators": "true",
    38  						"P2P_NETWORKING_STACK":        "V2",
    39  						"P2PV2_LISTEN_ADDRESSES":      "0.0.0.0:6690",
    40  						"P2PV2_DELTA_DIAL":            "5s",
    41  						"P2PV2_DELTA_RECONCILE":       "5s",
    42  						"p2p_listen_port":             "0",
    43  					},
    44  				},
    45  			},
    46  		},
    47  	}
    48  	if stateful {
    49  		env.Charts["chainlink"].Values["db"] = map[string]interface{}{
    50  			"stateful": true,
    51  			"capacity": "2Gi",
    52  		}
    53  	}
    54  	return env
    55  }