You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Go tests for AuthProvider with no CA cert configured (system trust store)
Implements the Ruby spec coverage missing from the Go test suite:
Ruby: spec/nats_sync/auth_provider_spec.rb
context 'user has not provided director_ca_cert' do
it_behaves_like :auth_provider_shared_tests
end
The shared examples applied in that context were:
- 'returns auth header provided by UAA'
- 'reuses the same token for subsequent requests'
- 'when token is about to expire / obtains new token'
- 'when getting token fails / does not raise'
The new Go context "when no CA cert is provided (system trust store)" adds:
- CAFilePath() returns "" (equivalent to Ruby verifying ssl_cert_store with
set_default_paths is used instead of ssl_ca_file)
- All four token lifecycle cases above
- An additional TLS test not present in Ruby: confirms InsecureSkipVerify is
NOT set by asserting that a TLS UAA server with a self-signed cert fails to
connect when no CA cert is configured
0 commit comments