You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by of...@apache.org on 2020/07/24 09:03:12 UTC

[incubator-dlab] branch develop updated: Changed library status

This is an automated email from the ASF dual-hosted git repository.

ofuks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8eb2e1f  Changed library status
8eb2e1f is described below

commit 8eb2e1fff3152d919ef3ffddcf5ba03faa4ee036
Author: Oleh Fuks <ol...@gmail.com>
AuthorDate: Fri Jul 24 12:02:35 2020 +0300

    Changed library status
---
 .../main/java/com/epam/dlab/dto/exploratory/LibStatus.java    |  2 +-
 .../backendapi/core/commands/CommandExecutorMockAsync.java    | 11 +++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/services/dlab-model/src/main/java/com/epam/dlab/dto/exploratory/LibStatus.java b/services/dlab-model/src/main/java/com/epam/dlab/dto/exploratory/LibStatus.java
index 77993ca..7804b83 100644
--- a/services/dlab-model/src/main/java/com/epam/dlab/dto/exploratory/LibStatus.java
+++ b/services/dlab-model/src/main/java/com/epam/dlab/dto/exploratory/LibStatus.java
@@ -27,7 +27,7 @@ public enum LibStatus {
 	INSTALLING,
 	INSTALLED,
 	INVALID_VERSION,
-	FAILED;
+	INSTALLATION_ERROR;
 
 	@JsonCreator
 	public static LibStatus of(String status) {
diff --git a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/core/commands/CommandExecutorMockAsync.java b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/core/commands/CommandExecutorMockAsync.java
index 7277961..7ad66f8 100644
--- a/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/core/commands/CommandExecutorMockAsync.java
+++ b/services/provisioning-service/src/main/java/com/epam/dlab/backendapi/core/commands/CommandExecutorMockAsync.java
@@ -42,7 +42,14 @@ import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.codec.Charsets;
 import org.apache.commons.lang3.StringUtils;
 
-import java.io.*;
+import java.io.BufferedWriter;
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
 import java.net.URL;
 import java.nio.file.Paths;
 import java.util.List;
@@ -355,7 +362,7 @@ public class CommandExecutorMockAsync implements Supplier<Boolean> {
 			if (isSuccess) {
 				lib.setStatus(LibStatus.INSTALLED.toString());
 			} else {
-				lib.setStatus(LibStatus.FAILED.toString());
+				lib.setStatus(LibStatus.INSTALLATION_ERROR.toString());
 				lib.setErrorMessage("Mock error message");
 			}
 		}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org