Create a Test Suite
Create a logical test suite or a basic test suite for a table
POST
POST /v1/dataQuality/testSuites
Create a Test Suite
POST /v1/dataQuality/testSuites creates a logical test suite that groups test cases across tables. To create a basic test suite linked to one table, use POST /v1/dataQuality/testSuites/basic as shown below.
The endpoint determines the suite type. Omit executable and basic from the request body. basic is a response field set by the server. executable is deprecated.
Body Parameters
Name of the test suite. Must be unique. For a basic suite, the examples use
<tableFQN>.testSuite, matching the server’s automatic naming convention.The fully qualified name (FQN) of an existing table. Required when creating a basic suite through
/v1/dataQuality/testSuites/basic. Omit this field for logical suites.POST /v1/dataQuality/testSuites
Returns
Returns the created test suite object with all specified properties and system-generated fields.Response
Reference to the table linked to a basic suite. Includes
id, type (table), name, and fullyQualifiedName. Not set for logical suites.Create a Basic Test Suite
The table must already exist in OpenMetadata. Use its FQN forbasicEntityReference and <tableFQN>.testSuite for the suite name. If the table already has a basic suite, reuse it. Creating a test case automatically creates the table’s basic suite when one doesn’t exist.
basic: true and a basicEntityReference object identifying the table.
Create or Update (PUT)
UsePUT /v1/dataQuality/testSuites for a logical suite, or PUT /v1/dataQuality/testSuites/basic for a basic suite, to perform an upsert. If a test suite with the same name already exists, the server updates it. Otherwise, the server creates a new test suite. The request body is the same as POST.
PUT updates an existing entity instead of returning a 409 conflict error.