Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
pctreddy committed Jul 14, 2020
1 parent 631dae9 commit 81b2fdd
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 32 deletions.
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.netflix.counductor.integration.test

import com.netflix.conductor.common.metadata.tasks.Task
Expand All @@ -6,7 +21,6 @@ import com.netflix.conductor.common.run.Workflow
import com.netflix.conductor.core.execution.WorkflowExecutor
import com.netflix.conductor.core.execution.WorkflowSweeper
import com.netflix.conductor.service.ExecutionService
import com.netflix.conductor.service.MetadataService
import com.netflix.conductor.test.util.WorkflowTestUtil
import com.netflix.conductor.tests.utils.TestModule
import com.netflix.governator.guice.test.ModulesForTesting
Expand All @@ -22,15 +36,9 @@ class EventWorkflowSpec extends Specification {
@Inject
ExecutionService workflowExecutionService

@Inject
MetadataService metadataService

@Inject
WorkflowExecutor workflowExecutor

@Inject
WorkflowSweeper workflowSweeper

@Inject
WorkflowTestUtil workflowTestUtil

Expand Down
@@ -1,11 +1,25 @@
/*
* Copyright 2020 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.netflix.counductor.integration.test

import com.netflix.conductor.common.metadata.tasks.Task
import com.netflix.conductor.common.run.Workflow
import com.netflix.conductor.core.execution.WorkflowExecutor
import com.netflix.conductor.core.execution.WorkflowSweeper
import com.netflix.conductor.service.ExecutionService
import com.netflix.conductor.service.MetadataService
import com.netflix.conductor.test.util.WorkflowTestUtil
import com.netflix.conductor.tests.utils.TestModule
import com.netflix.governator.guice.test.ModulesForTesting
Expand All @@ -20,15 +34,9 @@ class LambdaAndTerminalTaskSpec extends Specification {
@Inject
ExecutionService workflowExecutionService

@Inject
MetadataService metadataService

@Inject
WorkflowExecutor workflowExecutor

@Inject
WorkflowSweeper workflowSweeper

@Inject
WorkflowTestUtil workflowTestUtil

Expand All @@ -38,6 +46,7 @@ class LambdaAndTerminalTaskSpec extends Specification {
@Shared
def WORKFLOW_WITH_TERMINATE_TASK_FAILED = 'test_terminate_task_failed_wf'

@Shared
def WORKFLOW_WITH_LAMBDA_TASK = 'test_lambda_wf'

def setup() {
Expand All @@ -63,7 +72,6 @@ class LambdaAndTerminalTaskSpec extends Specification {
'', workflowInput, null, null, null)

then: "Ensure that the workflow has started and the first task is in scheduled state"
workflowInstanceId
with(workflowExecutionService.getExecutionStatus(workflowInstanceId, true)) {
status == Workflow.WorkflowStatus.COMPLETED
tasks.size() == 2
Expand Down
@@ -1,12 +1,25 @@
/*
* Copyright 2020 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.netflix.counductor.integration.test

import com.netflix.conductor.common.metadata.tasks.Task
import com.netflix.conductor.common.run.Workflow
import com.netflix.conductor.core.execution.WorkflowExecutor
import com.netflix.conductor.core.execution.WorkflowSweeper
import com.netflix.conductor.dao.QueueDAO
import com.netflix.conductor.service.ExecutionService
import com.netflix.conductor.service.MetadataService
import com.netflix.conductor.test.util.WorkflowTestUtil
import com.netflix.conductor.tests.utils.TestModule
import com.netflix.conductor.tests.utils.UserTask
Expand All @@ -21,15 +34,9 @@ class TaskLimitsWorkflowSpec extends Specification {
@Inject
ExecutionService workflowExecutionService

@Inject
MetadataService metadataService

@Inject
WorkflowExecutor workflowExecutor

@Inject
WorkflowSweeper workflowSweeper

@Inject
WorkflowTestUtil workflowTestUtil

Expand Down
@@ -1,13 +1,26 @@
/*
* Copyright 2020 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.netflix.counductor.integration.test

import com.netflix.conductor.common.metadata.tasks.Task
import com.netflix.conductor.common.metadata.tasks.TaskResult
import com.netflix.conductor.common.metadata.workflow.TaskType
import com.netflix.conductor.common.run.Workflow
import com.netflix.conductor.core.execution.WorkflowExecutor
import com.netflix.conductor.core.execution.WorkflowSweeper
import com.netflix.conductor.service.ExecutionService
import com.netflix.conductor.service.MetadataService
import com.netflix.conductor.test.util.WorkflowTestUtil
import com.netflix.conductor.tests.utils.TestModule
import com.netflix.governator.guice.test.ModulesForTesting
Expand All @@ -24,15 +37,9 @@ class WaitWorkflowSpec extends Specification {
@Inject
ExecutionService workflowExecutionService

@Inject
MetadataService metadataService

@Inject
WorkflowExecutor workflowExecutor

@Inject
WorkflowSweeper workflowSweeper

@Inject
WorkflowTestUtil workflowTestUtil

Expand Down

0 comments on commit 81b2fdd

Please sign in to comment.