{
  "scenarios": [
    {
      "type": "create",
      "name": "Create  Subscription",
      "endpoint": "NODE-subscription.obj",
      "sql_endpoint": "NODE-subscription.sql_id",
      "msql_endpoint": "NODE-subscription.msql",
      "data": {
        "username": "postgres",
        "name": "test_create_subscription",
        "connect": false,
        "connect_timeout": 10,
        "copy_data": false,
        "create_slot": false,
        "db": "postgres",
        "subowner": "<OWNER>",
        "enabled": false,
        "host": "localhost",
        "slot_name": "None",
        "service": "",
        "port": 5434,
        "password": "edb",
        "sync": "remote_apply",
        "binary": true,
        "streaming": "on",
        "disable_on_error": true,
        "two_phase": true,
        "password_required": true,
        "run_as_owner": true,
        "origin": "any",
        "sslmode": "prefer",
        "pub": [
          "test_pub"
        ]
      },
      "expected_sql_file": "create_subscription.sql",
      "expected_msql_file": "create_subscription_msql.sql"
    },
    {
      "type": "alter",
      "name": "Alter  parameters of subscription",
      "endpoint": "NODE-subscription.obj_id",
      "sql_endpoint": "NODE-subscription.sql_id",
      "msql_endpoint": "NODE-subscription.msql_id",
      "data": {
        "sync": "off",
        "binary": false,
        "streaming": "parallel",
        "disable_on_error": false,
        "origin": "none"
      },
      "expected_sql_file": "alter_parameters.sql",
      "expected_msql_file": "alter_parameters_msql.sql"
    },
    {
      "type": "delete",
      "name": "Drop subscription",
      "endpoint": "NODE-subscription.delete_id",
      "data": {
        "name": "test_create_subscription"
      }
    }
  ]
}
