3838import static org .mockito .Mockito .mock ;
3939import static org .mockito .Mockito .when ;
4040
41- public class CCRInfoTransportActionTests extends ESTestCase {
41+ public class TransportCCRInfoActionTests extends ESTestCase {
4242
4343 private MockLicenseState licenseState ;
4444 private ClusterService clusterService ;
@@ -51,7 +51,7 @@ public void init() {
5151
5252 public void testAvailable () {
5353 TransportService transportService = MockUtils .setupTransportServiceWithThreadpoolExecutor ();
54- CCRInfoTransportAction featureSet = new CCRInfoTransportAction (
54+ TransportCCRInfoAction featureSet = new TransportCCRInfoAction (
5555 transportService ,
5656 mock (ActionFilters .class ),
5757 Settings .EMPTY ,
@@ -68,7 +68,7 @@ public void testAvailable() {
6868 public void testEnabled () {
6969 Settings .Builder settings = Settings .builder ().put ("xpack.ccr.enabled" , false );
7070 TransportService transportService = MockUtils .setupTransportServiceWithThreadpoolExecutor ();
71- CCRInfoTransportAction featureSet = new CCRInfoTransportAction (
71+ TransportCCRInfoAction featureSet = new TransportCCRInfoAction (
7272 transportService ,
7373 mock (ActionFilters .class ),
7474 settings .build (),
@@ -77,13 +77,13 @@ public void testEnabled() {
7777 assertThat (featureSet .enabled (), equalTo (false ));
7878
7979 settings = Settings .builder ().put ("xpack.ccr.enabled" , true );
80- featureSet = new CCRInfoTransportAction (transportService , mock (ActionFilters .class ), settings .build (), licenseState );
80+ featureSet = new TransportCCRInfoAction (transportService , mock (ActionFilters .class ), settings .build (), licenseState );
8181 assertThat (featureSet .enabled (), equalTo (true ));
8282 }
8383
8484 public void testName () {
8585 TransportService transportService = MockUtils .setupTransportServiceWithThreadpoolExecutor ();
86- CCRInfoTransportAction featureSet = new CCRInfoTransportAction (
86+ TransportCCRInfoAction featureSet = new TransportCCRInfoAction (
8787 transportService ,
8888 mock (ActionFilters .class ),
8989 Settings .EMPTY ,
@@ -145,7 +145,7 @@ public void testUsageStats() throws Exception {
145145
146146 ThreadPool threadPool = mock (ThreadPool .class );
147147 TransportService transportService = MockUtils .setupTransportServiceWithThreadpoolExecutor (threadPool );
148- var usageAction = new CCRUsageTransportAction (
148+ var usageAction = new TransportCCRUsageAction (
149149 transportService ,
150150 null ,
151151 threadPool ,
@@ -156,7 +156,7 @@ public void testUsageStats() throws Exception {
156156 );
157157 PlainActionFuture <XPackUsageFeatureResponse > future = new PlainActionFuture <>();
158158 usageAction .localClusterStateOperation (null , null , clusterState , future );
159- CCRInfoTransportAction .Usage ccrUsage = (CCRInfoTransportAction .Usage ) future .get ().getUsage ();
159+ TransportCCRInfoAction .Usage ccrUsage = (TransportCCRInfoAction .Usage ) future .get ().getUsage ();
160160 assertThat (ccrUsage .enabled (), equalTo (true ));
161161 assertThat (ccrUsage .available (), equalTo (false ));
162162
0 commit comments