github.com/Jeffail/benthos/v3@v3.65.0/template/test/plugin_alias.yaml (about)

     1  name: plugin_alias
     2  type: processor
     3  status: experimental
     4  summary: This is a test template to check that plugin aliases work.
     5  
     6  fields:
     7    - name: url
     8      description: the url of the thing.
     9      type: string
    10      default: http://defaultschemas.example.com
    11  
    12  mapping: 'root.schema_registry_decode.url = this.url'
    13  
    14  tests:
    15    - name: Basic fields
    16      config:
    17        url: 'http://schemas.example.com'
    18      expected:
    19        schema_registry_decode:
    20          url: 'http://schemas.example.com'
    21  
    22    - name: Use Default
    23      config: {}
    24      expected:
    25        schema_registry_decode:
    26          url: 'http://defaultschemas.example.com'