-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check block existence with object operation (#750)
Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Munish Chouhan <[email protected]>
- Loading branch information
1 parent
e24ec62
commit 86ef526
Showing
2 changed files
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,14 @@ import spock.lang.Specification | |
import java.time.Duration | ||
|
||
import io.micronaut.context.annotation.Property | ||
import io.micronaut.test.annotation.MockBean | ||
import io.micronaut.test.extensions.spock.annotation.MicronautTest | ||
import io.seqera.wave.configuration.BlobCacheConfig | ||
import io.seqera.wave.store.state.impl.StateProvider | ||
import jakarta.inject.Inject | ||
import jakarta.inject.Named | ||
import software.amazon.awssdk.services.s3.S3Client | ||
|
||
/** | ||
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
|
@@ -37,6 +41,10 @@ import jakarta.inject.Inject | |
@MicronautTest | ||
class BlobStateStoreImplTest extends Specification { | ||
|
||
@MockBean(S3Client) | ||
@Named('BlobS3Client') | ||
S3Client mockS3Client() { Mock(S3Client) } | ||
|
||
@Inject | ||
BlobStoreImpl store | ||
|
||
|