Skip to content

added option to prevent uuid duplications#9

Merged
TerentievEvgany merged 3 commits intomasterfrom
prevent-duplicate-uuids
Oct 8, 2018
Merged

added option to prevent uuid duplications#9
TerentievEvgany merged 3 commits intomasterfrom
prevent-duplicate-uuids

Conversation

@dhutsalo
Copy link
Copy Markdown
Contributor

@dhutsalo dhutsalo commented Oct 4, 2018

added option to prevent uuid duplications
for now implemented only for aerospike

Comment thread src/main/resources/application.yml Outdated
serverMock.stubFor(post(urlPathEqualTo("/cache"))
.willReturn(aResponse().withBody("{\"responses\":[{\"uuid\":\"f31f96db-8c36-4d44-94dc-ad2d1a1d84d9\"}]}")));

PostCacheHandler handler = new PostCacheHandler(repository, cacheConfig, metricsRecorder, builder, currentDateProvider);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are using mixed approach in variables naming, below in this test val is used, so replace types with val or val with types.


@Test
void testUUIDDuplication() {
CacheConfig cacheConfigLocal = new CacheConfig(cacheConfig.getPrefix(), cacheConfig.getExpirySec(), cacheConfig.getTimeoutMs(),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are using mixed approach in variables naming, below in this test val is used, so replace types with val or val with types.

@TerentievEvgany TerentievEvgany merged commit b3ebb30 into master Oct 8, 2018
@TerentievEvgany TerentievEvgany deleted the prevent-duplicate-uuids branch October 8, 2018 09:25
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.

2 participants