# generated by datamodel-codegen:
#   filename:  api/tests/createTestCase.json
#   timestamp: 2022-10-03T15:16:21+00:00

from __future__ import annotations

from typing import List, Optional

from pydantic import BaseModel, Extra, Field

from ...tests import testCase
from ...type import basic, entityReference


class CreateTestCaseRequest(BaseModel):
    class Config:
        extra = Extra.forbid

    name: basic.EntityName = Field(
        ..., description='Name that identifies this test case.'
    )
    description: Optional[basic.Markdown] = Field(
        None, description='Description of the testcase.'
    )
    displayName: Optional[str] = Field(
        None, description='Display Name that identifies this test.'
    )
    testDefinition: entityReference.EntityReference
    entityLink: basic.EntityLink
    testSuite: entityReference.EntityReference
    parameterValues: Optional[List[testCase.TestCaseParameterValue]] = None
    owner: Optional[entityReference.EntityReference] = Field(
        None, description='Owner of this test'
    )
