-
Notifications
You must be signed in to change notification settings - Fork 4
Allow Transition from UNKNOWN to EVACUATE #54
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
base: dev
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| @Test(dataProvider = "selfTransitions") | ||
| public void testSelfTransitions(InstanceConstants.InstanceOperation state) { |
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.
Do we need this test? can we have the self-transitions as part of always_allowed transitions?
| } | ||
|
|
||
| @Test | ||
| public void testUnknownToEvacuateTransition() { |
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.
Isn't this covered in always_allowed transitions?
| } | ||
|
|
||
| @Test | ||
| public void testEvacuateToUnknownTransition() { |
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.
Same, this is also covered in always_allowed transitions
| * Tests all possible transitions between instance operation states to ensure proper | ||
| * validation logic and maintain backward compatibility. | ||
| */ | ||
| public class TestInstanceUtilTransitions { |
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.
Can we just have two tests, one for always_allowed, and another for invalid state transitions
| * These transitions should be rejected by the validation logic. | ||
| */ | ||
| @DataProvider | ||
| public Object[][] invalidTransitions() { |
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.
Is this list exhaustive?
Issues
apache#3070
Description
Helix does not allow moving transition from UNKNOWN to EVACUATE
Tests
(List the names of added unit/integration tests)
(If CI test fails due to known issue, please specify the issue and test PR locally. Then copy & paste the result of "mvn test" to here.)
Unit Tested the change