github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/acceptance/test_data/mods/introspection_table_mod/resources.sp (about) 1 variable "sample_var_1"{ 2 type = string 3 default = "steampipe_var" 4 } 5 6 7 query "sample_query_1"{ 8 title ="Sample query 1" 9 description = "query 1 - 3 params all with defaults" 10 sql = "select 'ok' as status, 'steampipe' as resource, concat($1::text, $2::text, $3::text) as reason" 11 param "p1"{ 12 description = "p1" 13 default = var.sample_var_1 14 } 15 param "p2"{ 16 description = "p2" 17 default = "because_def " 18 } 19 param "p3"{ 20 description = "p3" 21 default = "string" 22 } 23 } 24 25 control "sample_control_1" { 26 title = "Sample control 1" 27 description = "Sample control to test introspection functionality" 28 query = query.sample_query_1 29 severity = "high" 30 tags = { 31 "foo": "bar" 32 } 33 } 34 35 benchmark "sample_benchmark_1" { 36 title = "Sample benchmark 1" 37 description = "Sample benchmark to test introspection functionality" 38 children = [ 39 control.sample_control_1 40 ] 41 } 42 43 dashboard "sample_dashboard_1" { 44 title = "Sample dashboard 1" 45 description = "Sample dashboard to test introspection functionality" 46 47 container "sample_conatiner_1" { 48 card "sample_card_1" { 49 title = "Sample card 1" 50 } 51 52 image "sample_image_1" { 53 title = "Sample image 1" 54 width = 3 55 src = "https://steampipe.io/images/logo.png" 56 alt = "steampipe" 57 } 58 59 text "sample_text_1" { 60 title = "Sample text 1" 61 } 62 63 chart "sample_chart_1" { 64 sql = "select 1 as chart" 65 width = 5 66 title = "Sample chart 1" 67 } 68 69 flow "sample_flow_1" { 70 title = "Sample flow 1" 71 width = 3 72 73 node "sample_node_1" { 74 sql = <<-EOQ 75 select 1 as node 76 EOQ 77 } 78 edge "sample_edge_1" { 79 sql = <<-EOQ 80 select 1 as edge 81 EOQ 82 } 83 } 84 85 graph "sample_graph_1" { 86 title = "Sample graph 1" 87 width = 5 88 89 node "sample_node_2" { 90 sql = <<-EOQ 91 select 1 as node 92 EOQ 93 } 94 edge "sample_edge_2" { 95 sql = <<-EOQ 96 select 1 as edge 97 EOQ 98 } 99 } 100 101 hierarchy "sample_hierarchy_1" { 102 title = "Sample hierarchy 1" 103 width = 5 104 105 node "sample_node_3" { 106 sql = <<-EOQ 107 select 1 as node 108 EOQ 109 } 110 edge "sample_edge_3" { 111 sql = <<-EOQ 112 select 1 as edge 113 EOQ 114 } 115 } 116 117 table "sample_table_1" { 118 sql = "select 1 as table" 119 width = 4 120 title = "Sample table 1" 121 } 122 123 input "sample_input_1" { 124 sql = "select 1 as input" 125 width = 2 126 title = "Sample input 1" 127 } 128 } 129 }