Skip to content

Conversation

@sipke
Copy link
Contributor

@sipke sipke commented Nov 14, 2022

To allow extension of data tables against test runs, proposing the use of a special metadata tag, similar to series# and team#, namely table#<table_name> whose value is a json record defining the field to be written to a table with name <table_name>.

For example a metadata entry
table#host_info:{"host_name":"test_machine01", "host_location":"Paris", "user":"James"}
would result in a record written to the database table host_info, with the json specified parameters host_name, host_location, user against TestArchiver's suite_id and test_run_id.

This will allow for extended information, specific to a test environment, to be defined as required by a test team.
TestArchiver would remain agnostic of this table and its contents, leaving the user to ensure the table is created via a different process and its field match the json data.
The full json value is also written to the metadata table as per any other metadata.

sipke added 2 commits October 24, 2022 18:19
To provide a way for users of TestArchiver to extend the data, add a
special metadata name table#<table-name>:{json-fields} where json-fields
is of format {"field1":"value1", "field2":"value2"} and has to
correspond exactly to the fields in the table-name table or naturally
an exception will be thrown.
The creation of the table is left to the user, as TestArchiver can not
know what the table is.
Add documentation to help clarify how the table#<table-name> metadata can
be used to extend any information against a test run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant