-
Notifications
You must be signed in to change notification settings - Fork 472
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
KAA-1423: Add Endpoint Specific Configuration Support. #1382
Conversation
@@ -61,7 +60,7 @@ public void testFindByEndpointKeyHashAndConfigurationVersion() throws Exception | |||
Assert.assertNull(found4); | |||
} | |||
|
|||
@Test(expected = KaaOptimisticLockingFailureException.class) | |||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why KaaOptimisticLockingFailureException
is not expected anymore in this test?
configuration.setConfiguration(dto.getConfiguration()); | ||
configuration.setConfigurationVersion(dto.getConfigurationSchemaVersion()); | ||
configuration.setEndpointKeyHash(getByteBuffer(dto.getEndpointKeyHash())); | ||
save(configuration); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move a call of save
method out of if
block
configuration.setConfiguration(dto.getConfiguration()); | ||
configuration.setConfigurationVersion(dto.getConfigurationSchemaVersion()); | ||
configuration.setEndpointKeyHash(dto.getEndpointKeyHash()); | ||
save(configuration); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move a call of save
method out of if
block
@@ -26,19 +26,19 @@ | |||
private byte[] endpointKeyHash; | |||
private Integer configurationSchemaVersion; | |||
private String configuration; | |||
private Long version; | |||
private Long specificConfigurationVersion; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to rename version
-> specificConfigurationVersion
in DTO?
@@ -72,7 +71,7 @@ public void testFindByEndpointKeyHashAndConfigurationVersion() throws Exception | |||
Assert.assertNull(found4); | |||
} | |||
|
|||
@Test(expected = KaaOptimisticLockingFailureException.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why KaaOptimisticLockingFailureException
is not expected anymore in this test?
Process of updating configuration fixed.