Skip to content

Commit

Permalink
fixed tests failure
Browse files Browse the repository at this point in the history
  • Loading branch information
holashchand committed Sep 4, 2023
1 parent ea2eaa9 commit 189c0f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import dev.sunbirdrc.registry.helper.RegistryHelper;
import dev.sunbirdrc.registry.model.dto.DocumentsResponse;
import dev.sunbirdrc.registry.service.FileStorageService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
Expand All @@ -16,7 +16,7 @@

// TODO: Get should be viewed by both attestor and reviewer
@Controller
@ConditionalOnBean(FileStorageService.class)
@ConditionalOnProperty(name = "filestorage.enabled", havingValue = "true", matchIfMissing = true)
public class FileStorageController {
private final FileStorageService fileStorageService;
private final RegistryHelper registryHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
Expand All @@ -33,7 +33,7 @@
import static dev.sunbirdrc.registry.middleware.util.Constants.SUNBIRD_FILE_STORAGE_SERVICE_NAME;

@Service
@ConditionalOnBean(MinioClient.class)
@ConditionalOnProperty(name = "filestorage.enabled", havingValue = "true", matchIfMissing = true)
public class FileStorageService implements HealthIndicator {
private static final Logger logger = LoggerFactory.getLogger(FileStorageService.class);
private final MinioClient minioClient;
Expand Down
2 changes: 1 addition & 1 deletion services/digilocker-certificate-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################
# STEP 1 build executable binary
############################
FROM golang:alpine AS builder
FROM golang:1.20-alpine3.18 AS builder
RUN apk update && apk add --no-cache 'git=~2'
ENV GO111MODULE=on
WORKDIR $GOPATH/src/packages/digilocker-certificate-api/
Expand Down

0 comments on commit 189c0f2

Please sign in to comment.