use of com.mulesoft.tools.migration.library.gateway.steps.policy.throttling.RateLimitTagMigrationStep in project mule-migration-assistant by mulesoft.
the class RateLimitTagMigrationStepTestCase method migrateRateLimitTagRateLimitSLA.
@Test
public void migrateRateLimitTagRateLimitSLA() {
final RateLimitTagMigrationStep step = new RateLimitTagMigrationStep();
Element element = getRateLimitSLAElement();
step.execute(element, mock(MigrationReport.class));
assertThat(element.getParent(), nullValue());
assertThat(element.getContentSize(), is(0));
}
use of com.mulesoft.tools.migration.library.gateway.steps.policy.throttling.RateLimitTagMigrationStep in project mule-migration-assistant by mulesoft.
the class ThrottlingMigrationTask method getSteps.
@Override
public List<MigrationStep> getSteps() {
FixedTimeFrameAlgorithmMigrationStep fixedTimeFrameAlgorithmMigrationStep = new FixedTimeFrameAlgorithmMigrationStep();
fixedTimeFrameAlgorithmMigrationStep.setApplicationModel(getApplicationModel());
SlaBasedAlgorithmMigrationStep slaBasedAlgorithmMigrationStep = new SlaBasedAlgorithmMigrationStep();
slaBasedAlgorithmMigrationStep.setApplicationModel(getApplicationModel());
List<MigrationStep> steps = new ArrayList<>();
steps.add(fixedTimeFrameAlgorithmMigrationStep);
steps.add(slaBasedAlgorithmMigrationStep);
steps.add(new RateLimitTagMigrationStep());
steps.add(new DelayResponseTagMigrationStep());
steps.add(new DiscardResponseTagMigrationStep());
steps.add(new PolicyTagMigrationStep());
steps.add(new ThrottleTagMigrationStep());
return steps;
}
use of com.mulesoft.tools.migration.library.gateway.steps.policy.throttling.RateLimitTagMigrationStep in project mule-migration-assistant by mulesoft.
the class RateLimitTagMigrationStepTestCase method migrateRateLimitTagSpikeControlRateLimit.
@Test
public void migrateRateLimitTagSpikeControlRateLimit() {
final RateLimitTagMigrationStep step = new RateLimitTagMigrationStep();
Element element = getSpikeControlRateLimitElement();
step.execute(element, mock(MigrationReport.class));
assertThat(element.getParent(), nullValue());
assertThat(element.getContentSize(), is(0));
}
Aggregations