Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
andriy-dmytruk committed Dec 13, 2024
1 parent d7e9d71 commit 352758c
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package io.micronaut.oraclecloud.oke.kubernetes.client

import com.oracle.bmc.Region
import com.oracle.bmc.Service
import com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider
import com.oracle.bmc.auth.AuthCachingPolicy
import com.oracle.bmc.auth.ConfigFileAuthenticationDetailsProvider
import com.oracle.bmc.auth.RegionProvider
import com.oracle.bmc.containerengine.ContainerEngineClient
import com.oracle.bmc.http.signing.RequestSigner
import com.oracle.bmc.http.signing.RequestSignerFactory
Expand Down Expand Up @@ -161,4 +163,13 @@ current-context: test-context
}
}

@Singleton
@Requires(property = 'spec.name', value = 'MockKubernetesSpec')
static class MockRegionProvider implements RegionProvider {
@Override
Region getRegion() {
return Region.CA_TORONTO_1
}
}

}

0 comments on commit 352758c

Please sign in to comment.