* Add test coverage for Meta's `savedBackend` method
* Add new Meta `savedStateStore` method and test coverage
* Streamline test - remove unneeded assertions and update comments
* Remove marks from config before configuring the provider
* Remove marks from config before configuring the state store
* Add test case for savedStateStore to assert marks aren't passed
* Fix call to ConfigureStateStore
* Show that tests pass despite not trying to remove marks
* Allow Config methods to add marks when reading pluggable state store config from the backend state file
* This code is now necessary to let the tests pass
* Stop adding marks to PSS-related config when it's parsed from the backend state file
* Stop removing marks that aren't there
* Remove unnecessary test related to marks
// Assert that the state store is configured using backend state file values from the fixtures
config:=req.Config.AsValueMap()
ifconfig["value"].AsString()!="old-value"{
t.Fatalf("expected the state store to be configured with values from the backend state file (the string \"old-value\"), not the config. Got: %#v",config)
}
returnproviders.ConfigureStateStoreResponse{}
}
// Code under test
b,diags:=m.savedStateStore(sMgr,factory)
ifdiags.HasErrors(){
t.Fatalf("unexpected errors: %s",diags.Err())
}
if_,ok:=b.(*pluggable.Pluggable);!ok{
t.Fatalf(
"expected savedStateStore to return a backend.Backend interface with concrete type %s, but got something else: %#v",
"*pluggable.Pluggable",
b,
)
}
})
// NOTE: the mock's functions include assertions about the values passed to
// the ConfigureProvider and ConfigureStateStore methods