github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/acceptance/test_data/mods/dashboard_parsing_validation/query_providers_nested.sp (about) 1 dashboard "query_providers_nested" { 2 title = "Query providers(nested) that always require a query/sql block" 3 description = "This is a dashboard that validates - nested Query providers always need a query/sql block" 4 5 container { 6 chart "nested_chart" { 7 sql = "select 1 as chart" 8 width = 5 9 title = "Nested Chart" 10 } 11 12 flow "nested_flow" { 13 title = "Nested flow" 14 width = 3 15 16 node "node_nested_flow" { 17 sql = <<-EOQ 18 select 1 as node 19 EOQ 20 } 21 edge "edge_nested_flow" { 22 sql = <<-EOQ 23 select 1 as edge 24 EOQ 25 } 26 } 27 28 graph "nested_graph" { 29 title = "Nested graph" 30 width = 5 31 32 node "node_nested_graph" { 33 sql = <<-EOQ 34 select 1 as node 35 EOQ 36 } 37 edge "edge_nested_graph" { 38 sql = <<-EOQ 39 select 1 as edge 40 EOQ 41 } 42 } 43 44 hierarchy "nested_hierarchy" { 45 title = "Nested hierarchy" 46 width = 5 47 48 node "node_nested_hierarchy" { 49 sql = <<-EOQ 50 select 1 as node 51 EOQ 52 } 53 edge "edge_nested_hierarchy" { 54 sql = <<-EOQ 55 select 1 as edge 56 EOQ 57 } 58 } 59 60 table "nested_table" { 61 sql = "select 1 as table" 62 width = 4 63 title = "Nested table" 64 } 65 66 # input type="text" does not require a query/sql block, 67 # anything other than that requires a query/sql 68 input "nested_input" { 69 sql = "select 1 as input" 70 width = 2 71 title = "Nested input" 72 } 73 74 input "nested_input_type_text" { 75 type = "text" 76 width = 2 77 title = "Nested input type text" 78 } 79 } 80 }