convert_inspec_to_test
Convert InSpec controls to Ansible test format for infrastructure compliance testing during Chef-to-Ansible migration.
Instructions
Convert InSpec controls to Ansible test format.
Args: inspec_path: Path to InSpec profile or control file. output_format: Output format ('testinfra' or 'ansible_assert').
Returns: Converted test code or error message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inspec_path": "<inspec_path>"
},
"name": "convert_inspec_to_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inspec_path | Yes | ||
| output_format | No | testinfra |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |