Project

General

Profile

Actions

Bug #3889

closed

[API] [Workbench] Refactor any functional tests that call multiple actions into either integration tests or independent functional tests.

Added by Tom Clegg over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
API
Target version:
Story points:
1.0

Description

Example: "admin can create collection with unsigned manifest".

If multiple actions are called from a functional test, they all share a single controller object. This means after the first action, the controller object has some state left over from previous actions. This is likely to change the behavior of the actions and thereby make the tests ineffective.

If possible, when running in test mode we should detect this sort of controller re-use and raise an exception, so we don't unwittingly create more bugs like this in the future.


Files

Workbench-functional-failures (2.38 KB) Workbench-functional-failures Radhika Chippada, 09/21/2014 01:43 AM
API-functional-failures (6.67 KB) API-functional-failures Radhika Chippada, 09/25/2014 06:03 PM

Subtasks 5 (0 open5 closed)

Task #3940: Raise exception when multiple actions are performed on the controller in functional testingResolvedRadhika Chippada09/21/2014Actions
Task #3941: Identify API functional tests that are performing multiple actions on a single controller. Either fix them or convert them into integration tests.ResolvedRadhika Chippada09/21/2014Actions
Task #3942: Identify Workbench functional tests that are performing multiple actions on a single controller. Either fix them or convert them into integration tests.ResolvedRadhika Chippada09/21/2014Actions
Task #3943: Review branch: 3889-functional-testing (raising exception on controller reuse only)ResolvedRadhika Chippada09/21/2014Actions
Task #4001: Review branch: 3889-functional-testingResolvedTom Clegg09/25/2014Actions
Actions

Also available in: Atom PDF