Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Data Flow
Data Ingestion
Ingestion Workflow
Commits
1a5c07d1
Commit
1a5c07d1
authored
Oct 11, 2021
by
Dmitrii Novikov (EPAM)
Committed by
Riabokon Stanislav(EPAM)[GCP]
Oct 11, 2021
Browse files
Fixed get workflow status request by workflowName (GONRG-3007)
parent
c0142e85
Changes
25
Hide whitespace changes
Inline
Side-by-side
provider/workflow-azure/src/test/java/org/opengroup/osdu/workflow/provider/azure/service/WorkflowEngineServiceImplTest.java
View file @
1a5c07d1
...
...
@@ -437,8 +437,14 @@ public class WorkflowEngineServiceImplTest {
private
WorkflowEngineRequest
workflowEngineRequest
(
String
workflowEngineExecutionDate
,
boolean
isDeployedThroughWorkflowService
)
{
return
new
WorkflowEngineRequest
(
RUN_ID
,
WORKFLOW_ID
,
WORKFLOW_NAME
,
EXECUTION_TIMESTAMP
,
workflowEngineExecutionDate
,
isDeployedThroughWorkflowService
);
return
WorkflowEngineRequest
.
builder
()
.
runId
(
RUN_ID
)
.
workflowId
(
WORKFLOW_ID
)
.
workflowName
(
WORKFLOW_NAME
)
.
executionTimeStamp
(
EXECUTION_TIMESTAMP
)
.
workflowEngineExecutionDate
(
workflowEngineExecutionDate
)
.
isDeployedThroughWorkflowService
(
isDeployedThroughWorkflowService
)
.
build
();
}
private
Map
<
String
,
Object
>
registrationInstructions
(
String
dagContent
)
{
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/operators/GetCustomOperatorByIdIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -35,7 +35,7 @@ public abstract class GetCustomOperatorByIdIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseData
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
assertEquals
(
testOperatorData
,
responseData
);
}
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/operators/GetCustomOperatorsIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -59,7 +59,7 @@ public abstract class GetCustomOperatorsIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseData
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
assertTrue
(
responseData
.
has
(
RESPONSE_ITEMS_KEY
));
if
(
testDataOperatorNameToInfo
.
size
()
<
DEFAULT_LIMIT
)
{
...
...
@@ -80,7 +80,7 @@ public abstract class GetCustomOperatorsIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseData
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
assertTrue
(
responseData
.
has
(
RESPONSE_ITEMS_KEY
));
assertEquals
(
limit
,
responseData
.
getAsJsonArray
(
RESPONSE_ITEMS_KEY
).
size
());
...
...
@@ -98,7 +98,7 @@ public abstract class GetCustomOperatorsIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseData
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
assertTrue
(
responseData
.
has
(
RESPONSE_ITEMS_KEY
));
assertTrue
(
responseData
.
has
(
RESPONSE_CURSOR_KEY
));
...
...
@@ -115,7 +115,7 @@ public abstract class GetCustomOperatorsIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
responseData
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
assertTrue
(
responseData
.
has
(
RESPONSE_ITEMS_KEY
));
assertEquals
(
limit
,
responseData
.
getAsJsonArray
(
RESPONSE_ITEMS_KEY
).
size
());
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/setup/PreIntegrationSetup.java
View file @
1a5c07d1
...
...
@@ -134,7 +134,7 @@ public class PreIntegrationSetup {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
return
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
Map
.
class
);
}
}
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/util/TestBase.java
View file @
1a5c07d1
...
...
@@ -160,7 +160,7 @@ public abstract class TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
trackTriggeredWorkflowRun
(
workflowId
,
getWorkflowRunIdFromPayload
(
triggerWorkflowPayload
));
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/workflow/DeleteWorkflowIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -31,7 +31,7 @@ public abstract class DeleteWorkflowIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
trackTriggeredWorkflowRun
(
existingWorkflowId
,
getWorkflowRunIdFromPayload
(
triggerWorkflowPayload
));
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/workflow/GetAllRunInstancesIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -67,7 +67,7 @@ public abstract class GetAllRunInstancesIntegrationTests extends TestBase {
headers
,
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
Type
WorkflowRunsListType
=
new
TypeToken
<
ArrayList
<
WorkflowRun
>>(){}.
getType
();
List
<
WorkflowRun
>
workflowRunsList
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
WorkflowRunsListType
);
...
...
@@ -88,7 +88,7 @@ public abstract class GetAllRunInstancesIntegrationTests extends TestBase {
headers
,
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
Type
WorkflowRunsListType
=
new
TypeToken
<
ArrayList
<
WorkflowRun
>>(){}.
getType
();
List
<
WorkflowRun
>
workflowRunsList
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
WorkflowRunsListType
);
...
...
@@ -109,7 +109,7 @@ public abstract class GetAllRunInstancesIntegrationTests extends TestBase {
headers
,
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
Type
WorkflowRunsListType
=
new
TypeToken
<
ArrayList
<
WorkflowRun
>>(){}.
getType
();
List
<
WorkflowRun
>
workflowRunsList
=
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/workflow/GetSignedUrlIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -42,7 +42,7 @@ public abstract class GetSignedUrlIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
workflowResponse
=
new
Gson
().
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
assertTrue
(
workflowResponse
.
has
(
SIGNED_URL_FIELD
));
String
signedUrl
=
workflowResponse
.
get
(
SIGNED_URL_FIELD
).
getAsString
();
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/workflow/PostCreateWorkflowIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -108,7 +108,7 @@ public abstract class PostCreateWorkflowIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
String
workflowId
=
new
Gson
().
fromJson
(
createWorkflowRequestBody
,
JsonObject
.
class
).
get
(
WORKFLOW_NAME_FIELD
)
.
getAsString
();
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/workflow/PostGetStatusIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -31,7 +31,7 @@ public abstract class PostGetStatusIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
String
responseBody
=
response
.
getEntity
(
String
.
class
);
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/workflow/PostStartWorkflowIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -34,7 +34,7 @@ public abstract class PostStartWorkflowIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
workflowResponse
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
@@ -80,7 +80,7 @@ public abstract class PostStartWorkflowIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseBody
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/framework/workflow/PostUpdateStatusIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -52,7 +52,7 @@ public abstract class PostUpdateStatusIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseBody
=
gson
.
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/workflow/TestPostStartWorkflowIntegration.java
View file @
1a5c07d1
...
...
@@ -66,7 +66,7 @@ public class TestPostStartWorkflowIntegration extends PostStartWorkflowIntegrati
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
workflowResponse
=
new
Gson
().
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
@@ -87,7 +87,7 @@ public class TestPostStartWorkflowIntegration extends PostStartWorkflowIntegrati
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
workflowResponse
=
new
Gson
().
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
@@ -117,7 +117,7 @@ public class TestPostStartWorkflowIntegration extends PostStartWorkflowIntegrati
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseBody
=
new
Gson
().
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
testing/workflow-test-azure/src/test/java/org/opengroup/osdu/azure/workflow/workflow/TestPostUpdateStatusIntegration.java
View file @
1a5c07d1
...
...
@@ -74,7 +74,7 @@ public class TestPostUpdateStatusIntegration extends PostUpdateStatusIntegratio
PayloadBuilder
.
buildUpdateStatus
(
expectedWorkflowId
,
WORKFLOW_STATUS_TYPE_FINISHED
),
headers
,
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseBody
=
new
Gson
().
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
@@ -141,7 +141,7 @@ public class TestPostUpdateStatusIntegration extends PostUpdateStatusIntegratio
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
}
...
...
testing/workflow-test-core/src/main/java/org/opengroup/osdu/workflow/util/v3/TestBase.java
View file @
1a5c07d1
...
...
@@ -17,14 +17,19 @@
package
org.opengroup.osdu.workflow.util.v3
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertEquals
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
CREATE_SYSTEM_WORKFLOW_URL
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
CREATE_WORKFLOW_RUN_URL
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
CREATE_WORKFLOW_URL
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
CREATE_WORKFLOW_WORKFLOW_NAME
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
FINISHED_WORKFLOW_RUN_STATUSES
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
GET_WORKFLOW_RUN_URL
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
util
.
PayloadBuilder
.
buildCreateWorkflowRunValidPayload
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
util
.
PayloadBuilder
.
buildCreateWorkflowValidPayload
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.sun.jersey.api.client.ClientResponse
;
import
lombok.extern.slf4j.Slf4j
;
import
org.opengroup.osdu.workflow.util.HTTPClient
;
import
org.springframework.http.HttpStatus
;
import
javax.ws.rs.HttpMethod
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashSet
;
...
...
@@ -33,16 +38,10 @@ import java.util.Map;
import
java.util.Set
;
import
java.util.concurrent.Callable
;
import
java.util.concurrent.TimeUnit
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.
assertEquals
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
CREATE_SYSTEM_WORKFLOW_URL
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
CREATE_WORKFLOW_RUN_URL
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
CREATE_WORKFLOW_URL
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
CREATE_WORKFLOW_WORKFLOW_NAME
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
FINISHED_WORKFLOW_RUN_STATUSES
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
consts
.
TestConstants
.
GET_WORKFLOW_RUN_URL
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
util
.
PayloadBuilder
.
buildCreateWorkflowRunValidPayload
;
import
static
org
.
opengroup
.
osdu
.
workflow
.
util
.
PayloadBuilder
.
buildCreateWorkflowValidPayload
;
import
javax.ws.rs.HttpMethod
;
import
lombok.extern.slf4j.Slf4j
;
import
org.opengroup.osdu.workflow.util.HTTPClient
;
import
org.springframework.http.HttpStatus
;
@Slf4j
public
abstract
class
TestBase
{
...
...
@@ -69,7 +68,7 @@ public abstract class TestBase {
headers
,
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
OK
.
value
(),
response
.
getStatus
());
assertEquals
(
HttpStatus
.
OK
.
value
(),
response
.
getStatus
()
,
response
.
toString
()
);
return
response
.
getEntity
(
String
.
class
);
}
...
...
@@ -185,12 +184,15 @@ public abstract class TestBase {
client
.
getAccessToken
()
);
if
(
response
.
getStatus
()
==
org
.
apache
.
http
.
HttpStatus
.
SC_OK
)
{
Map
<
String
,
String
>
workflowRunInfo
=
new
ObjectMapper
().
readValue
(
response
.
getEntity
(
String
.
class
),
HashMap
.
class
);
return
workflowRunInfo
.
get
(
"status"
);
if
(
response
.
getStatus
()
==
org
.
apache
.
http
.
HttpStatus
.
SC_OK
)
{
Map
<
String
,
String
>
workflowRunInfo
=
new
ObjectMapper
().
readValue
(
response
.
getEntity
(
String
.
class
),
HashMap
.
class
);
return
workflowRunInfo
.
get
(
WORKFLOW_RUN_STATUS_FIELD
);
}
else
{
throw
new
Exception
(
String
.
format
(
"Error getting status for workflow run id %s"
,
workflowRunId
));
throw
new
Exception
(
String
.
format
(
"Error getting status for workflow run id %s. Status code: %s. Response: %s"
,
workflowRunId
,
response
.
getStatus
(),
response
));
}
}
...
...
testing/workflow-test-core/src/main/java/org/opengroup/osdu/workflow/workflow/GetServiceInfoIntegrationTest.java
View file @
1a5c07d1
...
...
@@ -45,7 +45,7 @@ public abstract class GetServiceInfoIntegrationTest extends TestBase {
""
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
VersionInfoUtils
.
VersionInfo
responseObject
=
VERSION_INFO_UTILS
.
getVersionInfoFromResponse
(
response
);
...
...
testing/workflow-test-core/src/main/java/org/opengroup/osdu/workflow/workflow/PostGetStatusIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -30,7 +30,7 @@ public abstract class PostGetStatusIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
String
responseBody
=
response
.
getEntity
(
String
.
class
);
...
...
testing/workflow-test-core/src/main/java/org/opengroup/osdu/workflow/workflow/PostStartWorkflowIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -34,7 +34,7 @@ public abstract class PostStartWorkflowIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
workflowResponse
=
new
Gson
().
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
@@ -80,7 +80,7 @@ public abstract class PostStartWorkflowIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseBody
=
new
Gson
().
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
testing/workflow-test-core/src/main/java/org/opengroup/osdu/workflow/workflow/PostUpdateStatusIntegrationTests.java
View file @
1a5c07d1
...
...
@@ -52,7 +52,7 @@ public abstract class PostUpdateStatusIntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
JsonObject
responseBody
=
new
Gson
().
fromJson
(
response
.
getEntity
(
String
.
class
),
JsonObject
.
class
);
...
...
testing/workflow-test-core/src/main/java/org/opengroup/osdu/workflow/workflow/v3/WorkflowRunV3IntegrationTests.java
View file @
1a5c07d1
...
...
@@ -84,7 +84,7 @@ public abstract class WorkflowRunV3IntegrationTests extends TestBase {
client
.
getAccessToken
()
);
assertEquals
(
org
.
apache
.
http
.
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
org
.
apache
.
http
.
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
}
@Test
...
...
@@ -420,7 +420,7 @@ public abstract class WorkflowRunV3IntegrationTests extends TestBase {
Map
<
String
,
String
>
updateWorkflowRunInfo
=
new
ObjectMapper
().
readValue
(
response
.
getEntity
(
String
.
class
),
HashMap
.
class
);
assertEquals
(
org
.
apache
.
http
.
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
org
.
apache
.
http
.
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
assertEquals
(
updateWorkflowRunInfo
.
get
(
WORKFLOW_RUN_ID_FIELD
),
workflowRunInfo
.
get
(
WORKFLOW_RUN_ID_FIELD
));
assertEquals
(
updateWorkflowRunInfo
.
get
(
WORKFLOW_RUN_STATUS_FIELD
),
WORKFLOW_STATUS_TYPE_RUNNING
);
...
...
@@ -451,7 +451,7 @@ public abstract class WorkflowRunV3IntegrationTests extends TestBase {
Map
<
String
,
String
>
updateWorkflowRunInfo
=
new
ObjectMapper
().
readValue
(
response
.
getEntity
(
String
.
class
),
HashMap
.
class
);
assertEquals
(
org
.
apache
.
http
.
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
org
.
apache
.
http
.
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
assertEquals
(
updateWorkflowRunInfo
.
get
(
WORKFLOW_RUN_ID_FIELD
),
workflowRunInfo
.
get
(
WORKFLOW_RUN_ID_FIELD
));
assertEquals
(
updateWorkflowRunInfo
.
get
(
WORKFLOW_RUN_STATUS_FIELD
),
WORKFLOW_STATUS_TYPE_FINISHED
);
...
...
@@ -524,7 +524,7 @@ public abstract class WorkflowRunV3IntegrationTests extends TestBase {
Map
<
String
,
String
>
updateWorkflowRunInfo
=
new
ObjectMapper
().
readValue
(
response
.
getEntity
(
String
.
class
),
HashMap
.
class
);
assertEquals
(
org
.
apache
.
http
.
HttpStatus
.
SC_OK
,
response
.
getStatus
());
assertEquals
(
org
.
apache
.
http
.
HttpStatus
.
SC_OK
,
response
.
getStatus
()
,
response
.
toString
()
);
assertEquals
(
updateWorkflowRunInfo
.
get
(
WORKFLOW_RUN_ID_FIELD
),
workflowRunInfo
.
get
(
WORKFLOW_RUN_ID_FIELD
));
assertEquals
(
updateWorkflowRunInfo
.
get
(
WORKFLOW_RUN_STATUS_FIELD
),
WORKFLOW_STATUS_TYPE_FINISHED
);
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment