Project

General

Profile

Actions

Task #7800

open

Task #7761: uncloud v2

Write test cases for uncloud v2

Added by Nico Schottelius over 1 year ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/29/2020
Due date:
% Done:

0%

Estimated time:
PM Check date:

Description

Do not implement the logic, just implement the unit or integration test

Write a test that...

  • Ensures that a VMDiskProduct can only be created from a VMDiskImageProduct that is in status 'active'
  • A user can create a VMDiskImageProduct and specify a URL and that the VMDiskImageProduct switches to status = active within 1 minute
  • Ensure that a user can only create a VMDiskProduct for an existing VM
  • Ensure that a user can only create a VMDiskProduct for your own VM

Comment shortly on how / where you solved the test.

Actions #1

Updated by Ahmed Bilal over 1 year ago

Sorry, just seen. Would comment on it in the morning.

Thanks,
Ahmad Bilal

Actions #2

Updated by Ahmed Bilal over 1 year ago

Just a side note, we can implement these kind of business logic inside the Model itself e.g https://docs.djangoproject.com/en/3.0/topics/db/models/#model-methods

Actions #3

Updated by Ahmed Bilal over 1 year ago

Actions #5

Updated by Ahmed Bilal 11 months ago

  • Assignee deleted (Ahmed Bilal)
Actions

Also available in: Atom PDF