open-consul/agent/connect/ca
Daniel Nephin be1ddc5942 ca: use the real FSM operation in tests
Previously we had a couple copies that reproduced the FSM operation.
These copies introduce risk that the test does not accurately match
production.

This PR removes the test versions of the FSM operation, and exports the
real production FSM operation so that it can be used in tests.

The consul provider tests did need to change because of this. Previously
we would return a hardcoded value of 2, but in production this value is
always incremented.
2021-12-08 17:29:44 -05:00
..
common.go
mock_Provider.go
provider.go
provider_aws.go
provider_aws_test.go
provider_consul.go ca: reduce consul provider backend interface a bit 2021-11-25 11:46:06 -05:00
provider_consul_config.go
provider_consul_test.go ca: use the real FSM operation in tests 2021-12-08 17:29:44 -05:00
provider_test.go
provider_vault.go ca: reduce consul provider backend interface a bit 2021-11-25 11:46:06 -05:00
provider_vault_test.go
testing.go ca: use the real FSM operation in tests 2021-12-08 17:29:44 -05:00