Skip to content

Commit

Permalink
Issue #3534: Tag compute resources according to the tool's metadata -…
Browse files Browse the repository at this point in the history
… test fix
  • Loading branch information
ekazachkova committed May 27, 2024
1 parent e0a8b63 commit ee8e1f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/src/test/java/com/epam/pipeline/app/TestApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.epam.pipeline.manager.datastorage.lifecycle.DataStorageLifecycleManager;
import com.epam.pipeline.manager.datastorage.providers.StorageEventCollector;
import com.epam.pipeline.manager.ldap.LdapManager;
import com.epam.pipeline.manager.metadata.MetadataManager;
import com.epam.pipeline.manager.notification.ContextualNotificationManager;
import com.epam.pipeline.manager.notification.ContextualNotificationRegistrationManager;
import com.epam.pipeline.manager.notification.ContextualNotificationSettingsManager;
Expand Down Expand Up @@ -187,6 +188,9 @@ public static void main(String[] args) {
@MockBean
public InstanceOfferScheduler instanceOfferScheduler;

@MockBean
public MetadataManager metadataManager;

@Bean
public EmbeddedServletContainerCustomizer containerCustomizer() throws FileNotFoundException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ public void setUp() throws Exception {
when(pipelineRunManager.findRun(eq(TEST_RUN_ID))).thenReturn(Optional.of(testRun));
when(autoscalerService.fillInstance(any(RunInstance.class)))
.thenAnswer(invocation -> invocation.getArguments()[0]);
when(cloudFacade.instanceScalingSupported(any())).thenReturn(true);

MixedOperation<Pod, PodList, DoneablePod, PodResource<Pod, DoneablePod>> mockPods =
new KubernetesTestUtils.MockPods()
Expand Down

0 comments on commit ee8e1f5

Please sign in to comment.