This repository was archived by the owner on May 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 594
This repository was archived by the owner on May 14, 2025. It is now read-only.
Add Task Version Acceptance Tests #4735
Copy link
Copy link
Closed
Milestone
Description
Feature: Task versioning
Registering multi versioned task apps and selecting versions for launch.
- Scenario: I want to create a task app with 1 version
- Given A task with 1 versions
- And I create a task definition
- When I launch task definition using default app version
- Then Task should succeed
- And It launches the specified version
- Scenario: I want to create a task app with 2 versions using default version
- Given A task with 2 versions
- And I create a task definition
- When I launch task definition using default app version
- Then Task should succeed
- And It launches the specified version
- Scenario: I want to create a task app with 2 versions using new version
- Given A task with 2 versions
- And I create a task definition
- When I launch task definition using version 2 of app
- Then Task should succeed
- And It launches the specified version
- Scenario: When no version is specified previous used version should be used.
- Given A task with 2 versions
- And I create a task definition
- And I launch task definition using version 2 of app
- When I launch task definition using no app version
- Then Task should succeed
- And It launches the specified version
- Scenario: I want to create a task app with 1 version run invalid version
- Given A task with 1 versions
- And I create a task definition
- When I launch task definition using version 2 of app
- Then Task should fail
- Scenario: Invalid version usage should not affect subsequent default launch
- Given A task with 2 versions
- And I create a task definition
- And I launch task definition using version 2 of app
- When I launch task definition using default app version
- Then Task should succeed
- And It launches the specified version
- Scenario: Deleting a previously used version should fail if relaunched.
- Given A task with 2 versions
- And I create a task definition
- And I launch task definition using version 2 of app
- And I unregister version 2 of app
- When I launch task definition using version 2 of app
- Then Task should fail
- Scenario: Changing the app default version and running between changes should be successful
- Given A task with 2 versions
- And I create a task definition
- And I launch task definition using default app version
- And I set the default to version 2 of the app
- When I launch task definition using default app version
- Then Task should succeed
- And The version for the task execution should be version 2
- Scenario: Rolling back default to previous version and running should be successful
- Given A task with 2 versions
- And I create a task definition
- And I launch task definition using default app version
- And I set the default to version 2 of the app
- And I launch task definition using default app version
- And I set the default to version 1 of the app
- When I launch task definition using default app version
- Then Task should succeed
- And The version for the task execution should be version 1
- Scenario: Unregistering app should prevent task definition launch
- Given A task with 1 versions
- And I create a task definition
- And I launch task definition using default app version
- And I unregister version 1 of app
- When I launch task definition using default app version
- Then Task should fail