Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take url settings for tests #25

Open
EvilLord666 opened this issue Aug 1, 2023 · 0 comments
Open

Take url settings for tests #25

EvilLord666 opened this issue Aug 1, 2023 · 0 comments

Comments

@EvilLord666
Copy link
Member

Tests are running like this:

func TestApplicationOnHttp(t *testing.T) {
	testRunCommonTestCycleImpl(t, &httpAppConfig, "http://127.0.0.1:8284")
}

// todo(UMV): take from config
func TestApplicationOnHttps(t *testing.T) {
	http.DefaultTransport.(*http.Transport).TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
	testRunCommonTestCycleImpl(t, &httpsAppConfig, "https://127.0.0.1:8672")
}

But we have settings in variables, we should use setting value to build URL and run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant