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

Add an in memory implementation of cluster/client.Client #2219

Merged
merged 1 commit into from
Mar 20, 2020

Conversation

andrewmains12
Copy link
Contributor

What this PR does / why we need it:

This adds a small testing utility to back a cluster/client.Client with an in-memory kv.Store. We have the cluster/kv/mem implementation of kv.Store, but there's currently no way to back a cluster/client.Client with it. Construction of the kv.Store is tightly coupled with etcd in the current class; having a separate class seemed like a reasonable way to do this given the current code, but we could consider a more dependency injection style for that--let me know if you want to hash that out.

Special notes for your reviewer:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

@andrewmains12 andrewmains12 requested review from mway and vdarulis March 19, 2020 18:23
@andrewmains12 andrewmains12 force-pushed the amains/cluster/memcluster branch from 183042b to e586953 Compare March 19, 2020 20:35
@codecov
Copy link

codecov bot commented Mar 19, 2020

Codecov Report

Merging #2219 into master will decrease coverage by 6.1%.
The diff coverage is 79.1%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #2219     +/-   ##
========================================
- Coverage    72.4%   66.2%   -6.2%     
========================================
  Files        1022    1023      +1     
  Lines       88870   88918     +48     
========================================
- Hits        64392   58919   -5473     
- Misses      20160   25553   +5393     
- Partials     4318    4446    +128
Flag Coverage Δ
#aggregator 73.1% <ø> (-9.1%) ⬇️
#cluster 85.2% <79.1%> (-0.2%) ⬇️
#collector 62.3% <ø> (-20.6%) ⬇️
#dbnode 71.6% <ø> (-7.5%) ⬇️
#m3em 74.4% <ø> (ø) ⬆️
#m3ninx 74.4% <ø> (-0.1%) ⬇️
#m3nsch 51.1% <ø> (ø) ⬆️
#metrics 17.5% <ø> (ø) ⬆️
#msg 74.8% <ø> (ø) ⬆️
#query 57.8% <ø> (-11.1%) ⬇️
#x 83.2% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da7ced3...e586953. Read the comment docs.

@andrewmains12 andrewmains12 merged commit 6852564 into master Mar 20, 2020
@robskillington robskillington deleted the amains/cluster/memcluster branch March 23, 2020 11:50
@robskillington
Copy link
Collaborator

Thanks for this @andrewmains12 and yes the current client is very tightly coupled to etcd =[

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

Successfully merging this pull request may close these issues.

3 participants