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

Model tests ignore disabled sslmode (sqlcmd -C) #1404

Open
kelzenberg opened this issue Jul 30, 2024 · 0 comments
Open

Model tests ignore disabled sslmode (sqlcmd -C) #1404

kelzenberg opened this issue Jul 30, 2024 · 0 comments

Comments

@kelzenberg
Copy link

kelzenberg commented Jul 30, 2024

What version of SQLBoiler are you using (sqlboiler --version)?

SQLBoiler v4.16.2

What is your database and version (eg. Postgresql 10)

Microsoft SQL Server 16.0.1000

If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)

If this happened at runtime what code produced the issue? (if not applicable leave blank)

go test ./models -test.config "../sqlboiler.toml"

What is the output of the command above with the -d flag added to it? (Provided you are comfortable sharing this, it contains a blueprint of your schema)

Doesn't apply.

Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)

Doesn't apply.

Further information. What did you do, what did you expect?

If I run the tests, the generated sqlcmd command gets executed without the -C flag thus not trusting the server certificate without validation.

The sslmode = "disable" line exists in my sqlboiler.toml but the generated test function createTestDB is ignoring the sslmode config entry. Model generation works fine with my sqlboiler.toml config and disabled sslmode.

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

No branches or pull requests

1 participant