cnabio / cnab-go

A Go implementation of CNAB Core 1.0
MIT License
69 stars 37 forks source link

Ensure a single connect per logical query #224

Closed carolynvs closed 4 years ago

carolynvs commented 4 years ago

When the claimstore executes multiple queries against the crud store to execute a logical query, e.g. ReadInstallationStatus, ensure that it only results in a single call to Connect.

I've updated the claim store tests to use our MockStore so that we can assert on connects/closes. The MockStore was using nested maps that was hard to understand so I refactored it so it's easier to understand.

carolynvs commented 4 years ago

I have rebased now that #223 has been merged.