github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/manual_testing/demo/control_demo/control.sp (about)

     1  benchmark "cg_1"{
     2  }
     3  benchmark "cg_1_1"{
     4      parent = benchmark.cg_1
     5      tags = {
     6          Name = "example instance"
     7      }
     8  }
     9  benchmark "cg_1_2"{
    10      parent = benchmark.cg_1
    11  }
    12  benchmark "cg_1_1_1"{
    13      parent = benchmark.cg_1_1
    14  }
    15  benchmark "cg_1_1_2"{
    16      parent = benchmark.cg_1_1
    17      documentation="foo"
    18  }
    19  control "c1"{
    20      description = "control 1"
    21      sql = "query.q1"
    22      parent = benchmark.cg_1_1_1
    23  }
    24  control "c2"{
    25      description = "control 2"
    26      sql = "select 'control 2' as control, 'pass' as result"
    27      parent = benchmark.cg_1_1_2
    28      labels = ["foo", "https://twitter.com/home?lang=en-gb", "\"sgsg\""]
    29  }
    30  control "c3"{
    31      description = "control 3"
    32      sql = "select 'control 3' as control, 'pass' as result"
    33      parent = benchmark.cg_1_1
    34  }
    35  control "c4"{
    36      description = "control 4"
    37      sql = "select 'control 4' as control, 'pass' as result"
    38      severity = "terrible"
    39      parent = benchmark.cg_1_1_2
    40  }
    41  control "c5"{
    42      description = "control 5"
    43      sql = "select 'control 5' as control, 'pass' as result"
    44      parent = benchmark.cg_1_1_2
    45  }
    46  control "c6"{
    47      description = "control 6"
    48      sql = "select 'control 6' as control, 'FAIL' as result"
    49      // no parent - under mod
    50  }