Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Add Task Version Acceptance Tests #4735

Closed
10 tasks
cppwfs opened this issue Oct 25, 2021 · 0 comments · Fixed by #4739
Closed
10 tasks

Add Task Version Acceptance Tests #4735

cppwfs opened this issue Oct 25, 2021 · 0 comments · Fixed by #4739
Assignees
Milestone

Comments

@cppwfs
Copy link
Contributor

cppwfs commented Oct 25, 2021

Feature: Task versioning
Registering multi versioned task apps and selecting versions for launch.

  • Scenario: I want to create a task app with 1 version
  1. Given A task with 1 versions
  2. And I create a task definition
  3. When I launch task definition using default app version
  4. Then Task should succeed
  5. And It launches the specified version
  • Scenario: I want to create a task app with 2 versions using default version
  1. Given A task with 2 versions
  2. And I create a task definition
  3. When I launch task definition using default app version
  4. Then Task should succeed
  5. And It launches the specified version
  • Scenario: I want to create a task app with 2 versions using new version
  1. Given A task with 2 versions
  2. And I create a task definition
  3. When I launch task definition using version 2 of app
  4. Then Task should succeed
  5. And It launches the specified version
  • Scenario: When no version is specified previous used version should be used.
  1. Given A task with 2 versions
  2. And I create a task definition
  3. And I launch task definition using version 2 of app
  4. When I launch task definition using no app version
  5. Then Task should succeed
  6. And It launches the specified version
  • Scenario: I want to create a task app with 1 version run invalid version
  1. Given A task with 1 versions
  2. And I create a task definition
  3. When I launch task definition using version 2 of app
  4. Then Task should fail
  • Scenario: Invalid version usage should not affect subsequent default launch
  1. Given A task with 2 versions
  2. And I create a task definition
  3. And I launch task definition using version 2 of app
  4. When I launch task definition using default app version
  5. Then Task should succeed
  6. And It launches the specified version
  • Scenario: Deleting a previously used version should fail if relaunched.
  1. Given A task with 2 versions
  2. And I create a task definition
  3. And I launch task definition using version 2 of app
  4. And I unregister version 2 of app
  5. When I launch task definition using version 2 of app
  6. Then Task should fail
  • Scenario: Changing the app default version and running between changes should be successful
  1. Given A task with 2 versions
  2. And I create a task definition
  3. And I launch task definition using default app version
  4. And I set the default to version 2 of the app
  5. When I launch task definition using default app version
  6. Then Task should succeed
  7. And The version for the task execution should be version 2
  • Scenario: Rolling back default to previous version and running should be successful
  1. Given A task with 2 versions
  2. And I create a task definition
  3. And I launch task definition using default app version
  4. And I set the default to version 2 of the app
  5. And I launch task definition using default app version
  6. And I set the default to version 1 of the app
  7. When I launch task definition using default app version
  8. Then Task should succeed
  9. And The version for the task execution should be version 1
  • Scenario: Unregistering app should prevent task definition launch
  1. Given A task with 1 versions
  2. And I create a task definition
  3. And I launch task definition using default app version
  4. And I unregister version 1 of app
  5. When I launch task definition using default app version
  6. Then Task should fail
cppwfs added a commit to cppwfs/spring-cloud-dataflow that referenced this issue Oct 27, 2021
cppwfs added a commit to cppwfs/spring-cloud-dataflow that referenced this issue Oct 27, 2021
cppwfs added a commit to cppwfs/spring-cloud-dataflow that referenced this issue Oct 27, 2021
@cppwfs cppwfs self-assigned this Oct 27, 2021
cppwfs added a commit to cppwfs/spring-cloud-dataflow that referenced this issue Oct 28, 2021
cppwfs added a commit to cppwfs/spring-cloud-dataflow that referenced this issue Oct 28, 2021
@jvalkeal jvalkeal added this to the 2.10.0-M1 milestone Nov 1, 2021
jvalkeal pushed a commit that referenced this issue Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants