Managing OpenMetadata tests in bulk with YAML and CSV

OpenMetadata documents defining data quality tests in YAML workflow files and editing test cases as CSV. This page explains when bulk management fits, how the two paths differ, and how to set them up and govern them.

On this page

Why teams manage OpenMetadata tests in bulk with YAML and CSV

A data team with a few dozen tests can manage them in the OpenMetadata UI. A team with hundreds of tests across many tables cannot review, compare or change them one at a time without losing track of what is covered and who owns it. OpenMetadata documents two file-based routes for this work: defining data quality test cases in YAML workflow configurations, and importing, exporting and editing test cases as CSV. Both move test definitions out of the browser, so they can be read as a set, changed in bulk and reviewed before they reach the catalog. The first decision is which route fits each job. YAML suits test definitions that a team wants to keep alongside its workflow configuration. CSV suits a review cycle in which a data steward or owner wants to scan many rows in a spreadsheet, adjust thresholds or owners, and send the file back for import.

The UI remains the better place for one-off tests, quick checks on a single asset and results triage, where the context of the asset page matters more than the volume of definitions. Bulk files are the better fit when the same test pattern repeats across many tables, when changes need a second reader before they go live, or when the team wants a record of how test definitions changed over time. Before adopting either route, confirm in the OpenMetadata tests YAML documentation which test types, parameters and workflow fields your version accepts, and check the import and export guide for the exact column layout and how existing test cases are matched on import. Those two checks decide whether a planned bulk change is safe to run.

YAML workflows or CSV: which path fits which change

YAML workflow configurations define test cases alongside the rest of a workflow, so the tests live in the same reviewable text as the pipeline they check. This path suits the first definition of a test suite for a dataset, because the engineer who owns the pipeline can write the tests, run them and commit the file in the same change. Reviews happen in the source control tool your team already uses, with diffs showing exactly which assertion changed and when.

  • Who edits it: Data or analytics engineers who own the pipeline, usually with a platform reviewer for shared standards.
  • How changes are reviewed: Pull requests against the file, with the reviewer checking column names, parameters and the target table.
  • Where it suits: New datasets, tests tied to a specific transformation, and changes that should ship with a pipeline release.
  • Trade-off: Each file belongs to one workflow, so the same rule repeated across many tables means many copies to maintain.
  • Deployment: The workflow run applies the definitions, so a change takes effect on the next execution rather than instantly.

Before relying on this path, confirm in the linked YAML documentation for your OpenMetadata version which test definitions, parameters and workflow options are supported, since field names can change between releases.

Configuration options and when each fits

This table compares the four ways to create or change OpenMetadata test cases: YAML workflow files, CSV export for review, CSV import, and manual UI editing. Read each row as a question of who changes the tests, how the change is reviewed, and what can go wrong. The main takeaway is that bulk files suit teams that want tests reviewed like code, while the UI suits one-off fixes that still need a record.

OptionTypical useReview workflow it supportsMain risk
YAML workflow filesDefining test cases alongside the ingestion or test workflow configuration for a data sourceChanges sit in version control and go through the same pull request review as other pipeline configurationA wrong entity name or key can point a test at the wrong asset, so confirm the keys in the docs before running
CSV exportPulling the current test cases out of OpenMetadata into a spreadsheet for a wide reviewOwners and reviewers can scan many tests in one view and mark what should changeThe export is a snapshot, so edits made in the UI after export can be overwritten on import
CSV importCreating new test cases or updating many existing ones after a review roundThe edited file becomes the change record, which can be stored and compared with earlier exportsRows with mistyped names or wrong parameter values can create or alter tests in bulk, so run a dry review on a copy first
Manual UI editingAdjusting a single test, a threshold or an owner during an incidentChanges are quick and visible on the asset page, but the review trail depends on what your team recordsEdits are hard to reproduce across environments and can drift from the files your team keeps

How to set up a bulk test workflow in OpenMetadata

This sequence moves a team from tests managed one at a time in the UI to a reviewable set of YAML definitions and CSV files that can be checked against the live catalog. Each step ends with a check, so the team knows the baseline, the new definitions and the imported results match before changes reach production.

  1. Confirm the OpenMetadata version in use

    Confirm which OpenMetadata 2.0.x release runs in the production instance and in the non-production instance you will test against, and record both in the change record. Ask the platform owner to check the version on the running server and the version of the ingestion images, since both must agree with the documentation you follow. Done when both version numbers are written down and match. If they differ, resolve that before exporting anything, because CSV columns and YAML keys can change between releases.

  2. Export existing test cases as a CSV baseline

    Use the import and export function for test cases to export every existing test case to CSV from the production instance, and store the file in version control or your change repository as the untouched baseline. Have a second person count the rows and compare the test case names and linked table and column references against the count shown in the UI for the same scope. Done when the row count matches the UI and the file is locked as the reference for later diffs.

  3. Define target tests in YAML workflow files

    Write the target tests as YAML workflow configurations, one file per data domain or owning team so reviews stay small. Map each test to an existing table and column, using the same names as the baseline CSV, and mark any test that is new rather than carried over. The data quality owners review these files in pull requests before merge. Done when every file parses, every referenced table exists in the catalog, and each new or changed test has a named reviewer.

  4. Compare the YAML and CSV against the baseline

    Convert the YAML definitions into the same columns as the baseline CSV and run a line-by-line diff against the export from the earlier step. Each difference should be a deliberate change tied to a pull request, such as an added test, a changed threshold or a retired test. Unexplained differences, including renamed tests or altered parameters you did not intend, stop the work until the author explains them. Done when every row in the diff maps to an approved change.

  5. Validate and import in a non-production instance

    Import the CSV and YAML changes into a non-production OpenMetadata instance that holds a copy of the same catalog entities, and run the affected tests once. Check that the import reports no rejected rows and that each test attaches to the intended asset. Record any row the import rejects, correct the source file, and repeat the import from the start rather than editing the instance by hand. Done when the non-production import completes with zero rejected rows and an exported CSV from that instance matches the reviewed files.

  6. Import into production during a planned window

    Repeat the same import in production with the approved files, using the same account and the same version as the test run. Export the production test cases to CSV again straight after the import and compare that file to the reviewed set. Expect the platform owner to keep the baseline export and the reviewed files as the rollback reference. Done when the post-import export matches the reviewed files exactly.

  7. Verify results on the asset pages

    Open a sample of the affected table and column asset pages in the catalog and confirm that each test appears with the expected definition and parameters. Run or wait for the scheduled run of the changed tests, then check that results appear on the asset and that any failures open incidents for the expected owners. Done when each sampled asset shows the imported tests, the results match what the non-production run produced, and the change record links to the reviewed files.

How YAML, CSV and the OpenMetadata catalog fit together

The flow starts in a version-controlled YAML workflow file or a CSV export, which a reviewer approves before anything touches the catalog. Staging is the first environment that receives the change, and production only receives it after the staging run has been checked. Test cases then run against the table, and their results appear on the asset page, where owners and incidents pick them up. Check that the reviewed file, not an ad hoc UI edit, is the source of truth for each environment.

Reviewed test definitions move from Git through staging into production and onto asset pages.

Access control and change review for bulk test files

Bulk test files change what gets checked and what counts as passing, so they need the same controls as code. The cards below cover who can edit and import them, how definitions move through review, how source credentials stay out of files, and what the audit trail should show. Confirm each permission in your own OpenMetadata deployment before you rely on it.

Who can edit and import

A YAML file or CSV import can create, change or disable many tests in one step, so it deserves more scrutiny than a single UI edit. Decide which roles may upload files and which may edit the source files in your repository. Then check how OpenMetadata's policy and role settings apply to test case creation and editing in your version. Confirm this in a test environment with a non-admin account, since the documented role model may differ from what your deployment enforces.

Security docs

Version control with peer review

Keep every test definition file in a Git repository and merge changes only through a reviewed pull request. A reviewer should confirm the target table, the column, the test type, the threshold and whether the change adds or removes coverage. Run the import from the main branch after merge, not from a developer's workstation. Treat a removed test as a change that needs the same approval as an added one.

Source credentials stay out of files

Test files reference tables and services, but they should never carry database passwords, tokens or key material. Store connection credentials in the secrets mechanism your OpenMetadata deployment uses, and check that exported CSV or YAML files contain only test names, targets and parameters. Scan the repository for credential patterns before each merge. Confirm how your deployment stores service connection secrets and who can read them.

Audit trail for imports

Imports change production metadata, so you need to know who ran one, when, and which file version it came from. Record the Git commit hash in the import job's logs or in your change ticket, and compare the catalog's test list against the repository after each run. Ask your OpenMetadata administrator where change history for test cases is retained and how long it is kept in your deployment. Confirm whether that history shows the imported values and the actor.

Drift between file and catalog

A test changed in the UI after import will no longer match the file in Git, and the next import can overwrite it. Decide whether the repository or the UI is the source of truth for each test, and document that rule for your team. Export the current state regularly and diff it against the repository to find manual edits. Confirm the overwrite behavior of your import option before the first production run.

Questions teams ask before bulk managing OpenMetadata tests

Can our team manage OpenMetadata tests in YAML and CSV without outside help?

Yes, if you have an engineer who can read YAML, run the OpenMetadata ingestion tooling and review a CSV diff in source control. OpenMetadata documents defining data quality tests in YAML workflow configurations and importing, exporting and editing test cases as CSV, so the file formats are not the hard part. Teams usually need outside help when they must map an existing test estate into files, agree review rules across several data owners, or set up a staging instance and a safe promotion path. Confirm the workflow steps against the OpenMetadata YAML tests guide before you commit to an approach.

What drives the effort of bulk managing data quality tests?

Effort rises with four things: the number of test cases, the number of data sources and connectors involved, the governance rules that decide who can change a test, and how much coverage already exists in the UI. A catalog with a few hundred tests spread across several warehouses needs more mapping and review than one with a small, well-named set. Existing tests that were created by hand often differ in naming, thresholds and ownership, so they must be reconciled before export. Ask any partner to inventory these four items first, since the inventory sets the scope.

What access and environments does this work require from us?

Plan for read access to the warehouses or databases the tests target, a non-production OpenMetadata instance where imports can be tried safely, and a source control repository that holds the YAML and CSV files. The test runs need credentials that can query the target tables, so agree on a least-privilege service account before work starts. Confirm how your OpenMetadata is hosted, since bare metal and Kubernetes installs differ in how you reach a staging environment. Your security team should approve the account scope and where the credentials are stored.

How long does a bulk test management project take?

Duration depends on the same drivers as effort: test count, sources, governance rules and existing coverage. Work usually splits into an inventory, a file structure and review process, a staging trial, and a promotion to production with a rollback path. No fixed duration applies to every catalog, so ask for a timeline tied to a written scope with named deliverables. Any partner quoting a timeline without seeing your inventory is guessing.

How does DeployOpen price a bulk test management engagement?

DeployOpen does not publish a price list. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that written scope. Ask for the quote to list the inventory work, the file design, the staging trial, the production promotion, handover documentation and any retainer for ongoing support. Ask which items are one-time and which recur, such as test reviews after each OpenMetadata upgrade.

Who owns the YAML and CSV files after the engagement ends?

Your organization should own the repository, the files and the review process. Agree in writing who holds the source control project, who can approve changes and how the files map to test owners in the catalog. Ask for handover material that explains the folder layout, the import and export steps and the rollback method. Ongoing support, upgrades and continuous testing can be covered by a retainer if you want outside help after handover.

What breaks most often when test definitions move between YAML, CSV and the UI?

The most common problems are mismatched test names or identifiers, thresholds edited in the UI that never reached the source files, and imports that overwrite a test someone else changed. Upgrades can also change behavior, so OpenMetadata 2.0 release notes should be checked before you move files between versions. Add a review step that compares the exported state with the source files on a schedule, and keep a record of who approved each change.

What to ask for in a bulk test migration quote

A quote for moving existing data quality tests into YAML and CSV should break the work into five components: discovery of the tests that already exist, file design, import and validation, review workflow setup, and handover. Discovery is where most of the effort hides, because the team needs an inventory of which tests run today, which tables they cover, who owns them and which ones are stale. Ask the partner to state whether discovery reads the existing tests from OpenMetadata, from pipeline code, or from both, and what they will do with tests that have no clear owner. File design covers how the YAML workflow files and CSV sheets are organized by domain or team, how parameters are named, and how environments are separated. Each component should appear as its own line item in the quote so you can see what you are paying for.

Some costs are one-time and some recur. The initial build, including discovery, file design, the first import and the handover, is one-time. Ongoing changes are recurring: every new test, threshold change or ownership move will go through the same files and the same review path. Ask whether the quote includes a period of support after handover, and what a later change request costs in the same terms. Cost rises with the number of tests, the number of teams that edit them, the amount of custom SQL in the definitions, and how many connectors and environments the files must cover. Ask the partner to confirm whether the quote assumes a single OpenMetadata environment or separate development, staging and production instances.

In writing, request the scope statement, a list of deliverables with the exact files and CSV templates produced, the review workflow document, and a handover session with named attendees. Verification must be explicit: ask for an import test run against a non-production instance, a report of every test that failed to import or changed meaning, and a retest after fixes. Confirm which OpenMetadata version the work targets, such as the 2.0.x line referenced in the OpenMetadata tests YAML guide, and who is responsible if the version changes before go-live. Finally, confirm who holds the repository, the credentials used for import, and the right to keep working on the files after the engagement ends.

How DeployOpen works on this

DeployOpen starts by mapping which tests belong in YAML workflow files and which should stay in the UI, then builds the review and change process around them in your OpenMetadata deployment. The work is delivered in your own infrastructure, with the test definitions, CSV templates and handover documentation your team keeps.

How we scope

  • Inventory existing data quality tests by table, owner and test type before deciding what moves into YAML files
  • Agree in writing which tests are managed as code, which stay in the UI and who approves changes to each set
  • Confirm the OpenMetadata version, connector list and CSV import or export workflow your team will use before work starts
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins

How we build

  • Write YAML workflow configurations for the agreed test set, organized by data domain or owning team
  • Set up CSV export and import so reviewers can edit test cases in a spreadsheet and re-import them safely
  • Test each import on a non-production OpenMetadata instance and check that test results and owners appear as expected
  • Record which tests were created, changed or removed by each import so reviews can be traced

How we hand over

  • Document the folder layout, naming rules, review steps and the import order your team should follow
  • Walk through the YAML and CSV formats with the engineers and data stewards who will maintain them
  • Provide a runbook for common changes, failed imports and rolling back a bad test definition
  • Agree a handover checklist confirming access, ownership of the files and where the source of truth lives

How we support

  • Review new test definitions and CSV changes against the agreed standards before they reach production
  • Support OpenMetadata upgrades that touch test configuration, including checks on the release notes for your version
  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped in writing
  • Confirm with DeployOpen during scoping which support hours and response arrangements apply to your environment

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.