github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/e2e/test_options.go (about) 1 /* 2 * Copyright (C) 2017 The "MysteriumNetwork/node" Authors. 3 * 4 * This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, either version 3 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 package e2e 19 20 import ( 21 "flag" 22 23 tequilapi_client "github.com/mysteriumnetwork/node/tequilapi/client" 24 ) 25 26 // Provider flags 27 var ( 28 providerTequilapiHost = flag.String("provider.tequilapi-host", "localhost", "Specify Tequilapi host for provider") 29 providerTequilapiPort = flag.Int("provider.tequilapi-port", 4050, "Specify Tequilapi port for provider") 30 ) 31 32 // Consumer flags 33 var ( 34 consumerTequilapiPort = flag.Int("consumer.tequilapi-port", 4050, "Specify Tequilapi port for consumer") 35 consumerServices = flag.String("consumer.services", "openvpn,noop,wireguard", "Comma separated list of services to try and use") 36 ) 37 38 func newTequilapiConsumer(host string) *tequilapi_client.Client { 39 return tequilapi_client.NewClient(host, *consumerTequilapiPort) 40 } 41 42 func newTequilapiProvider() *tequilapi_client.Client { 43 return tequilapi_client.NewClient(*providerTequilapiHost, *providerTequilapiPort) 44 }