Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Change data conversion to allow for nil resources. Fix azure monitor as an example #2321

Closed
wants to merge 2 commits into from

Always set StateIsNull.

e6b00eb
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

🐛 Change data conversion to allow for nil resources. Fix azure monitor as an example #2321

Always set StateIsNull.
e6b00eb
Select commit
Loading
Failed to load commit list.
GitHub Actions / Report test results succeeded Oct 21, 2023 in 0s

Report test results ✅

Tests passed successfully

✅ report.xml

699 tests were completed in 6s with 699 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
go.mondoo.com/cnquery/v9 1✅ 0ms
go.mondoo.com/cnquery/v9/apps/cnquery 0ms
go.mondoo.com/cnquery/v9/apps/cnquery/cmd 0ms
go.mondoo.com/cnquery/v9/apps/gen-docs 0ms
go.mondoo.com/cnquery/v9/apps/provider-scaffold 1✅ 6ms
go.mondoo.com/cnquery/v9/checksums 1✅ 0ms
go.mondoo.com/cnquery/v9/checksums/bench 0ms
go.mondoo.com/cnquery/v9/cli/components 0ms
go.mondoo.com/cnquery/v9/cli/config 12✅ 1ms
go.mondoo.com/cnquery/v9/cli/execruntime 7✅ 1ms
go.mondoo.com/cnquery/v9/cli/inventoryloader 0ms
go.mondoo.com/cnquery/v9/cli/printer 32✅ 65ms
go.mondoo.com/cnquery/v9/cli/prof 7✅ 0ms
go.mondoo.com/cnquery/v9/cli/progress 10✅ 26ms
go.mondoo.com/cnquery/v9/cli/providers 0ms
go.mondoo.com/cnquery/v9/cli/reporter 3✅ 65ms
go.mondoo.com/cnquery/v9/cli/shell 3✅ 118ms
go.mondoo.com/cnquery/v9/cli/sysinfo 0ms
go.mondoo.com/cnquery/v9/cli/theme 0ms
go.mondoo.com/cnquery/v9/cli/theme/colors 0ms
go.mondoo.com/cnquery/v9/explorer 35✅ 93ms
go.mondoo.com/cnquery/v9/explorer/executor 1✅ 16ms
go.mondoo.com/cnquery/v9/explorer/scan 1✅ 29ms
go.mondoo.com/cnquery/v9/internal/datalakes/inmemory 0ms
go.mondoo.com/cnquery/v9/llx 97✅ 1ms
go.mondoo.com/cnquery/v9/logger 3✅ 0ms
go.mondoo.com/cnquery/v9/logger/stackdriver 0ms
go.mondoo.com/cnquery/v9/mql 21✅ 201ms
go.mondoo.com/cnquery/v9/mql/internal 43✅ 1ms
go.mondoo.com/cnquery/v9/mqlc 267✅ 1s
go.mondoo.com/cnquery/v9/mqlc/parser 52✅ 1ms
go.mondoo.com/cnquery/v9/mrn 4✅ 1ms
go.mondoo.com/cnquery/v9/providers 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory 15✅ 1ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory/ansibleinventory 12✅ 16ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory/domainlist 1✅ 12ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory/manager 3✅ 60ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/lr 23✅ 138ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/lr/cli 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/lr/cli/cmd 1✅ 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/lr/docs 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/plugin/gen 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/resources 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/testutils 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/testutils/mockprovider 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/testutils/mockprovider/resources 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream 1✅ 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream/health 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream/mvd 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream/mvd/cvss 15✅ 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/util/configure 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/util/convert 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/util/defaults 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/util/jobpool 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/util/linefeed 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/util/version 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault 6✅ 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/awsparameterstore 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/awssecretsmanager 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/cache 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/config 1✅ 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/credentials_resolver 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/gcpberglas 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/gcpsecretmanager 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/hashivault 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/inmemory 1✅ 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/keyring 1✅ 13ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/mock 0ms
go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/multivault 1✅ 0ms
go.mondoo.com/cnquery/v9/shared 0ms
go.mondoo.com/cnquery/v9/shared/proto 0ms
go.mondoo.com/cnquery/v9/types 7✅ 0ms
go.mondoo.com/cnquery/v9/utils/multierr 3✅ 0ms
go.mondoo.com/cnquery/v9/utils/sortx 0ms
go.mondoo.com/cnquery/v9/utils/stringx 7✅ 0ms
go.mondoo.com/cnquery/v9/utils/syncx 0ms

✅ go.mondoo.com/cnquery/v9

✅ TestFeatureFlags

✅ go.mondoo.com/cnquery/v9/apps/provider-scaffold

✅ TestGenerator

✅ go.mondoo.com/cnquery/v9/checksums

✅ TestChecksums

✅ go.mondoo.com/cnquery/v9/cli/config

✅ TestNewSSMParameter
✅ TestParseSSMParameterPath
✅ TestNewSSMParameterPathReturnsErrWhenNoRegion
✅ TestParseSSMParameterPathBadPathReturnsError
✅ Test_autodetectConfig/test_homeConfig_returned_if_exists
✅ Test_autodetectConfig/test_homeConfig_returned_even_if_systemConfig_exists
✅ Test_autodetectConfig/test_systemConfig_returned
✅ Test_autodetectConfig
✅ Test_probeConfigMemFs
✅ Test_probeConfigOsFs
✅ Test_inventoryPath
✅ TestConfigParsing

✅ go.mondoo.com/cnquery/v9/cli/execruntime

✅ TestAzureRuntimeEnv
✅ TestCircleCIRuntimeEnv
✅ TestGithubRuntimeEnv
✅ TestGitlabRuntimeEnv
✅ TestJenkinsRuntimeEnv
✅ TestMondooOperatorRuntimeEnv
✅ TestDetectGitlab

✅ go.mondoo.com/cnquery/v9/cli/printer

✅ TestPrinter/if_(_mondoo.version_!=_null_)_{_mondoo.build_}
✅ TestPrinter/file('zzz')_{_content_}
✅ TestPrinter/[]
✅ TestPrinter/{}
✅ TestPrinter/['1-2']_{__.split('-')_}
✅ TestPrinter/mondoo_{_version_}
✅ TestPrinter/mondoo_{__.version_}
✅ TestPrinter/[1].where(___>_0_)
✅ TestPrinter/a_=_3__if(true)_{__a_==_3__}
✅ TestPrinter/mondoo
✅ TestPrinter/users
✅ TestPrinter
✅ TestPrinter_Assessment/mondoo.build_==_1;_user(name:_'notthere').authorizedkeys.file
✅ TestPrinter_Assessment/mondoo.build_==_1;_mondoo.version
✅ TestPrinter_Assessment/[1,2,3]._#_@msg_Found_${length}_numbers_none(___>_1_)
✅ TestPrinter_Assessment/#_@msg_Expected_${$expected.length}_users_but_got_${length}_users.none(_uid_==_0_)
✅ TestPrinter_Assessment/mondoo.build_==_1
✅ TestPrinter_Assessment/sshd.config_{_params['test']_}
✅ TestPrinter_Assessment/mondoo.build_==_1;mondoo.version_=='unstable';
✅ TestPrinter_Assessment/if(true)_{___#_@msg_Expected_${$expected.length}_users_but_got_${length}___users.none(_uid_==_0_)_}
✅ TestPrinter_Assessment/users.list.duplicates(gid).none()_
✅ TestPrinter_Assessment/users.all(_uid_<_1000_)_
✅ TestPrinter_Assessment/users.all(_1000_>_uid_)_
✅ TestPrinter_Assessment/users.all(_uid_==_0_&&_enabled_==_true_)_
✅ TestPrinter_Assessment/users.none(_'/root'_==_home_);_users.all(_name_!=_'root'_)_
✅ TestPrinter_Assessment/users.all(sshkeys.length_>_2)_
✅ TestPrinter_Assessment
✅ TestPrinter_Blocks/['a',_'b']_{_x=____x_}
✅ TestPrinter_Blocks/['a',_'b']_{_x=____x_==_'a'_}
✅ TestPrinter_Blocks
✅ TestPrinter_Buggy/mondoo
✅ TestPrinter_Buggy

✅ go.mondoo.com/cnquery/v9/cli/prof

✅ TestParse/no_options_provided
✅ TestParse/enable
✅ TestParse/enabled
✅ TestParse/listen
✅ TestParse/memprofilerate
✅ TestParse/all_together
✅ TestParse

✅ go.mondoo.com/cnquery/v9/cli/progress

✅ TestMultiProgressBar
✅ TestMultiProgressBarSingleAsset
✅ TestMultiProgressBarFinished
✅ TestMultiProgressBarErrored
✅ TestMultiProgressBarLastErrored
✅ TestMultiProgressBarOnlyOneErrored
✅ TestMultiProgressBarLimitedOneMore
✅ TestMultiProgressBarError
✅ TestMultiProgressBarOrdering
✅ TestMultiProgressBarNotApplicable

✅ go.mondoo.com/cnquery/v9/cli/reporter

✅ TestCSVExport
✅ TestJsonReporter/users.where(uid==0)
✅ TestJsonReporter

✅ go.mondoo.com/cnquery/v9/cli/shell

✅ TestShell_RunOnce
✅ TestShell_Help
✅ TestShell_Centos8

✅ go.mondoo.com/cnquery/v9/explorer

✅ TestBundleLoad/load_bundle_from_file
✅ TestBundleLoad/load_bundle_from_memory
✅ TestBundleLoad
✅ TestParsing/simple_number
✅ TestParsing/complex_definition
✅ TestParsing/invalid_low_impact
✅ TestParsing/invalid_high_impact
✅ TestParsing/invalid_low_impact_in_complex_struct
✅ TestParsing/invalid_high_impact_in_complex_struct
✅ TestParsing
✅ TestMerging/nil_base
✅ TestMerging/empty_base
✅ TestMerging/empty_main
✅ TestMerging/inherit_value
✅ TestMerging/inherit_scoring_(explicit)
✅ TestMerging
✅ TestMquery_Refresh
✅ TestMqueryMerge
✅ TestMquery_Remediation/parse_default_remediation,_string-only
✅ TestMquery_Remediation/parse_multiple_remediation_via_array
✅ TestMquery_Remediation/parse_internal_structure,_which_uses_items
✅ TestMquery_Remediation/marshal_remediation_to_json
✅ TestMquery_Remediation
✅ TestMatchFilters/one_matching_filter
✅ TestMatchFilters/no_matching_filter_(matching_is_provided)
✅ TestMatchFilters/no_matching_filter_(matching_is_empty)
✅ TestMatchFilters
✅ TestQueryPackMrn
✅ TestNewFilters/empty
✅ TestNewFilters/two_filters
✅ TestNewFilters
✅ TestSummarize/with_NewFilters_initialization
✅ TestSummarize/with_mixed_filters
✅ TestSummarize
✅ TestBundleAssetFilter

✅ go.mondoo.com/cnquery/v9/explorer/executor

✅ TestMustCompile

✅ go.mondoo.com/cnquery/v9/explorer/scan

✅ TestFilterPreprocess

✅ go.mondoo.com/cnquery/v9/llx

✅ TestPrimitiveBool
✅ TestPrimitiveFloat
✅ TestPrimitiveInt
✅ TestPrimitiveString
✅ TestPrimitiveRegex
✅ TestPrimitiveTime
✅ TestPrimitiveArray
✅ TestPrimitiveMap
✅ TestPrimitiveFunction
✅ TestPrimitiveNil/nil_type
✅ TestPrimitiveNil/string_without_value_is_an_empty_string_(not_nil)
✅ TestPrimitiveNil/string_with_value_is_not_nil
✅ TestPrimitiveNil/map_type_without_value_is_empty_map_(not_nil)
✅ TestPrimitiveNil/map_type_with_empty_value_is_not_nil
✅ TestPrimitiveNil/array_type_without_value_is_empty_array_(not_nil)
✅ TestPrimitiveNil/array_type_with_empty_value_is_not_nil
✅ TestPrimitiveNil
✅ TestRange/single_line
✅ TestRange/line_range
✅ TestRange/column_range
✅ TestRange/line_and_column_range
✅ TestRange
✅ TestRawDataJson_removeUnderscoreKeys/no_underscores
✅ TestRawDataJson_removeUnderscoreKeys/trailing_underscore
✅ TestRawDataJson_removeUnderscoreKeys/leading_underscore
✅ TestRawDataJson_removeUnderscoreKeys/alternating_underscores
✅ TestRawDataJson_removeUnderscoreKeys/all_underscores
✅ TestRawDataJson_removeUnderscoreKeys
✅ TestRawData_String
✅ TestTruthy/<null>
✅ TestTruthy/true
✅ TestTruthy/false
✅ TestTruthy/0
✅ TestTruthy/123
✅ TestTruthy/0#01
✅ TestTruthy/1.23
✅ TestTruthy/""
✅ TestTruthy/"b"
✅ TestTruthy/<null>#01
✅ TestTruthy/"yo"
✅ TestTruthy///
✅ TestTruthy//r/
✅ TestTruthy/0001-01-01_00:00:00_+0000_UTC
✅ TestTruthy/2023-10-15_16:04:07.799346663_+0000_UTC_m=+0.000832753
✅ TestTruthy/<null>#02
✅ TestTruthy/2023-10-15_16:04:07.799346663_+0000_UTC_m=+0.000832753#01
✅ TestTruthy/[]
✅ TestTruthy/[false]
✅ TestTruthy/[true]
✅ TestTruthy/{}
✅ TestTruthy/{"a":false}
✅ TestTruthy/{"a":true}
✅ TestTruthy/<null>#03
✅ TestTruthy/<null>#04
✅ TestTruthy
✅ TestSuccess/<null>
✅ TestSuccess/true
✅ TestSuccess/false
✅ TestSuccess/0
✅ TestSuccess/123
✅ TestSuccess/0#01
✅ TestSuccess/1.23
✅ TestSuccess/""
✅ TestSuccess/"b"
✅ TestSuccess///
✅ TestSuccess//r/
✅ TestSuccess/0001-01-01_00:00:00_+0000_UTC
✅ TestSuccess/<null>#01
✅ TestSuccess/2023-10-15_16:04:07.799346663_+0000_UTC_m=+0.000832753
✅ TestSuccess/[]
✅ TestSuccess/[true,false,true]
✅ TestSuccess/[true,true]
✅ TestSuccess/<null>#02
✅ TestSuccess/?value?_(typ:block)
✅ TestSuccess/?value?_(typ:block)#01
✅ TestSuccess/?value?_(typ:block)#02
✅ TestSuccess/?value?_(typ:block)#03
✅ TestSuccess/<null>#03
✅ TestSuccess
✅ TestRawData_JSON/<null>
✅ TestRawData_JSON/true
✅ TestRawData_JSON/false
✅ TestRawData_JSON/0
✅ TestRawData_JSON/123
✅ TestRawData_JSON/0#01
✅ TestRawData_JSON/1.23
✅ TestRawData_JSON/""
✅ TestRawData_JSON/"b"
✅ TestRawData_JSON///
✅ TestRawData_JSON//r/
✅ TestRawData_JSON/0001-01-01_00:00:00_+0000_UTC
✅ TestRawData_JSON/292277026596-12-04_15:30:07_+0000_UTC
✅ TestRawData_JSON/292277026596-12-04_15:30:09_+0000_UTC
✅ TestRawData_JSON/["a","b"]
✅ TestRawData_JSON/{"a":"b"}
✅ TestRawData_JSON/<null>#01
✅ TestRawData_JSON

✅ go.mondoo.com/cnquery/v9/logger

✅ TestRequestIDLoggingContext/outputs_the_provided_request_id_with_the_log_message
✅ TestRequestIDLoggingContext/generates_a_request_id_if_one_is_not_provided
✅ TestRequestIDLoggingContext

✅ go.mondoo.com/cnquery/v9/mql

✅ TestMqlSimple/asset.platform
✅ TestMqlSimple/asset_{_platform_version_}
✅ TestMqlSimple/users_{_name_uid_}
✅ TestMqlSimple
✅ TestCustomData
✅ TestMqlProps
✅ TestMqlIfElseProps
✅ TestMqlIfAndProps
✅ TestResourceAliases/os.unix.sshd.config.file.path
✅ TestResourceAliases/os.unix.sshd_{_config.file.path_}
✅ TestResourceAliases
✅ TestNullResources/muser.group
✅ TestNullResources/muser.nullgroup
✅ TestNullResources/muser.nullgroup.name
✅ TestNullResources/muser.nullgroup_==_null
✅ TestNullResources/muser.nullgroup_==_empty
✅ TestNullResources/muser.groups.where(null)_==_empty
✅ TestNullResources/muser.groups.where(name_==_'')_==_empty
✅ TestNullResources/muser.groups
✅ TestNullResources/muser_{_nullgroup_}
✅ TestNullResources

✅ go.mondoo.com/cnquery/v9/mql/internal

✅ TestPrioritizeNode
✅ TestBuilder
✅ TestDatapointNode/initialize/recalculate/does_not_recalculate_if_data_is_not_provided
✅ TestDatapointNode/initialize/recalculate/recalculates_if_data_is_provided
✅ TestDatapointNode/initialize/recalculate/casts_if_required_type_is_provided
✅ TestDatapointNode/initialize/recalculate
✅ TestDatapointNode/consume/recalculate/ignores_nils
✅ TestDatapointNode/consume/recalculate/recalculate_when_data_arrives
✅ TestDatapointNode/consume/recalculate/doesn't_recalculate_multiple_times
✅ TestDatapointNode/consume/recalculate/casts_if_required_type_is_provided
✅ TestDatapointNode/consume/recalculate/skips_cast_if_required_type_are_same
✅ TestDatapointNode/consume/recalculate/skips_cast_if_datapoint_is_error
✅ TestDatapointNode/consume/recalculate/skips_cast_if_expected_type_is_unset
✅ TestDatapointNode/consume/recalculate
✅ TestDatapointNode
✅ TestExecutionQueryNode/initialize/recalculate/does_not_recalculate_if_dependencies_not_satisfied
✅ TestExecutionQueryNode/initialize/recalculate/recalculates_if_dependencies_are_satisfied
✅ TestExecutionQueryNode/initialize/recalculate
✅ TestExecutionQueryNode/consume/recalculate/does_not_recalculate_if_dependencies_not_satisfied
✅ TestExecutionQueryNode/consume/recalculate/only_recalculates_once
✅ TestExecutionQueryNode/consume/recalculate/recalculates_after_all_dependencies_are_satisfied
✅ TestExecutionQueryNode/consume/recalculate
✅ TestExecutionQueryNode
✅ TestCollectionFinisherNode/initialize/recalculate/recalculates_if_there_are_no_remaining_datapoints
✅ TestCollectionFinisherNode/initialize/recalculate/does_not_recalculate_if_there_are_remaining_datapoints
✅ TestCollectionFinisherNode/initialize/recalculate
✅ TestCollectionFinisherNode/consume/recalculate/notifies_progress_when_partially_complete
✅ TestCollectionFinisherNode/consume/recalculate/notifies_progress_and_signals_finish_when_fully_complete
✅ TestCollectionFinisherNode/consume/recalculate
✅ TestCollectionFinisherNode
✅ TestDatapointCollectorNode/initialize/recalculate/recalculates_if_unreported_datapoints_are_available
✅ TestDatapointCollectorNode/initialize/recalculate/does_not_recalculate_if_no_unreported_data
✅ TestDatapointCollectorNode/initialize/recalculate
✅ TestDatapointCollectorNode/consume/recalculate/recalculates_if_unreported_datapoints_are_available
✅ TestDatapointCollectorNode/consume/recalculate
✅ TestDatapointCollectorNode
✅ TestWaitGroupInvalidUsage/calling_Add_with_an_active_workID_panics
✅ TestWaitGroupInvalidUsage/calling_Done_with_an_id_that_was_never_added_panics
✅ TestWaitGroupInvalidUsage
✅ TestWaitGroup/finishing_completed_workIDs_unblocks_Wait
✅ TestWaitGroup/decommissioning_unblocks_Wait
✅ TestWaitGroup/usable_after_decommission
✅ TestWaitGroup

✅ go.mondoo.com/cnquery/v9/mqlc

✅ TestDedent
✅ TestIfChecksumming
✅ TestSwitchChecksumming
✅ TestLabels/mondoo.version_==_'yo'
✅ TestLabels/true
✅ TestLabels/1
✅ TestLabels/1.23
✅ TestLabels/"string"
✅ TestLabels/sshd
✅ TestLabels/sshd.config
✅ TestLabels/sshd.config.params
✅ TestLabels/sshd.config("/my/path").params
✅ TestLabels/asset.name_asset.version
✅ TestLabels/asset_{_name_version_}
✅ TestLabels/users.list_{_uid_}
✅ TestLabels/users.list[0]
✅ TestLabels/users.list[0]_{_uid_}
✅ TestLabels/sshd.config.params["UsePAM"]
✅ TestLabels/sshd.config_{_file_{_path_}_}
✅ TestLabels/a_=_1;_a
✅ TestLabels/a_=_1;_b_=_2;_c_=_a+b;_c
✅ TestLabels
✅ TestCompiler_Basics/#00
✅ TestCompiler_Basics///_some_comment
✅ TestCompiler_Basics///_some_comment_
✅ TestCompiler_Basics
✅ TestCompiler_Buggy/parse_parse
✅ TestCompiler_Buggy/parse_#_mondoo
✅ TestCompiler_Buggy/parse_}
✅ TestCompiler_Buggy/parse_]
✅ TestCompiler_Buggy/parse_)
✅ TestCompiler_Buggy/mondoo_{_version_}
✅ TestCompiler_Buggy/#_.._mondoo_{__#_.._version_#_.._}_#_..
✅ TestCompiler_Buggy/users.list[]
✅ TestCompiler_Buggy/file(not-there)
✅ TestCompiler_Buggy/if(true)_{
✅ TestCompiler_Buggy/if(true)_{_return_1_}_else_{_return_2_}_return_3
✅ TestCompiler_Buggy/parse.date
✅ TestCompiler_Buggy/parse.date()
✅ TestCompiler_Buggy/switch(mondoo)_{_case
✅ TestCompiler_Buggy
✅ TestCompiler_Semicolon
✅ TestCompiler_DeterministicChecksum
✅ TestCompiler_Simple/null
✅ TestCompiler_Simple/false
✅ TestCompiler_Simple/true
✅ TestCompiler_Simple/123
✅ TestCompiler_Simple/010
✅ TestCompiler_Simple/12.3
✅ TestCompiler_Simple/"hi"
✅ TestCompiler_Simple//hi/
✅ TestCompiler_Simple/[true,_false]
✅ TestCompiler_Simple/[1,_2]
✅ TestCompiler_Simple/[1.2,3.4]
✅ TestCompiler_Simple/["a","b"]
✅ TestCompiler_Simple/[1.2,1]
✅ TestCompiler_Simple/[___1.2,___1_]
✅ TestCompiler_Simple/{a:_123}
✅ TestCompiler_Simple
✅ TestCompiler_Comparisons/1_==_1
✅ TestCompiler_Comparisons/1.2_==_1.2
✅ TestCompiler_Comparisons/"str"_==_"str"
✅ TestCompiler_Comparisons/"str"_!=_"str"
✅ TestCompiler_Comparisons/1_!=_1
✅ TestCompiler_Comparisons/1.2_!=_1.2
✅ TestCompiler_Comparisons/1_>_1
✅ TestCompiler_Comparisons/1.2_>_1.2
✅ TestCompiler_Comparisons/"str"_>_"str"
✅ TestCompiler_Comparisons/1_<_1
✅ TestCompiler_Comparisons/1.2_<_1.2
✅ TestCompiler_Comparisons/"str"_<_"str"
✅ TestCompiler_Comparisons/1_>=_1
✅ TestCompiler_Comparisons/1.2_>=_1.2
✅ TestCompiler_Comparisons/"str"_>=_"str"
✅ TestCompiler_Comparisons/"str"_<=_"str"
✅ TestCompiler_Comparisons/1_<=_1
✅ TestCompiler_Comparisons/1.2_<=_1.2
✅ TestCompiler_Comparisons
✅ TestCompiler_LogicalOps/1_&&_[]
✅ TestCompiler_LogicalOps/1_&&_{}
✅ TestCompiler_LogicalOps/1_&&_1
✅ TestCompiler_LogicalOps/1_&&_1.2
✅ TestCompiler_LogicalOps/1_&&_true
✅ TestCompiler_LogicalOps/1_&&_"str"
✅ TestCompiler_LogicalOps/1_&&_/str/
✅ TestCompiler_LogicalOps/1.2_&&_[]
✅ TestCompiler_LogicalOps/1.2_&&_{}
✅ TestCompiler_LogicalOps/1.2_&&_1
✅ TestCompiler_LogicalOps/1.2_&&_1.2
✅ TestCompiler_LogicalOps/1.2_&&_true
✅ TestCompiler_LogicalOps/1.2_&&_"str"
✅ TestCompiler_LogicalOps/1.2_&&_/str/
✅ TestCompiler_LogicalOps/true_&&_true
✅ TestCompiler_LogicalOps/true_&&_"str"
✅ TestCompiler_LogicalOps/true_&&_/str/
✅ TestCompiler_LogicalOps/true_&&_[]
✅ TestCompiler_LogicalOps/true_&&_{}
✅ TestCompiler_LogicalOps/true_&&_1
✅ TestCompiler_LogicalOps/true_&&_1.2
✅ TestCompiler_LogicalOps/"str"_&&_[]
✅ TestCompiler_LogicalOps/"str"_&&_{}
✅ TestCompiler_LogicalOps/"str"_&&_1
✅ TestCompiler_LogicalOps/"str"_&&_1.2
✅ TestCompiler_LogicalOps/"str"_&&_true
✅ TestCompiler_LogicalOps/"str"_&&_"str"
✅ TestCompiler_LogicalOps/"str"_&&_/str/
✅ TestCompiler_LogicalOps//str/_&&_/str/
✅ TestCompiler_LogicalOps//str/_&&_[]
✅ TestCompiler_LogicalOps//str/_&&_{}
✅ TestCompiler_LogicalOps//str/_&&_1
✅ TestCompiler_LogicalOps//str/_&&_1.2
✅ TestCompiler_LogicalOps//str/_&&_true
✅ TestCompiler_LogicalOps//str/_&&_"str"
✅ TestCompiler_LogicalOps/[]_&&_true
✅ TestCompiler_LogicalOps/[]_&&_"str"
✅ TestCompiler_LogicalOps/[]_&&_/str/
✅ TestCompiler_LogicalOps/[]_&&_[]
✅ TestCompiler_LogicalOps/[]_&&_{}
✅ TestCompiler_LogicalOps/[]_&&_1
✅ TestCompiler_LogicalOps/[]_&&_1.2
✅ TestCompiler_LogicalOps/{}_&&_1
✅ TestCompiler_LogicalOps/{}_&&_1.2
✅ TestCompiler_LogicalOps/{}_&&_true
✅ TestCompiler_LogicalOps/{}_&&_"str"
✅ TestCompiler_LogicalOps/{}_&&_/str/
✅ TestCompiler_LogicalOps/{}_&&_[]
✅ TestCompiler_LogicalOps/{}_&&_{}
✅ TestCompiler_LogicalOps/1_||_{}
✅ TestCompiler_LogicalOps/1_||_1
✅ TestCompiler_LogicalOps/1_||_1.2
✅ TestCompiler_LogicalOps/1_||_true
✅ TestCompiler_LogicalOps/1_||_"str"
✅ TestCompiler_LogicalOps/1_||_/str/
✅ TestCompiler_LogicalOps/1_||_[]
✅ TestCompiler_LogicalOps/1.2_||_"str"
✅ TestCompiler_LogicalOps/1.2_||_/str/
✅ TestCompiler_LogicalOps/1.2_||_[]
✅ TestCompiler_LogicalOps/1.2_||_{}
✅ TestCompiler_LogicalOps/1.2_||_1
✅ TestCompiler_LogicalOps/1.2_||_1.2
✅ TestCompiler_LogicalOps/1.2_||_true
✅ TestCompiler_LogicalOps/true_||_"str"
✅ TestCompiler_LogicalOps/true_||_/str/
✅ TestCompiler_LogicalOps/true_||_[]
✅ TestCompiler_LogicalOps/true_||_{}
✅ TestCompiler_LogicalOps/true_||_1
✅ TestCompiler_LogicalOps/true_||_1.2
✅ TestCompiler_LogicalOps/true_||_true
✅ TestCompiler_LogicalOps/"str"_||_"str"
✅ TestCompiler_LogicalOps/"str"_||_/str/
✅ TestCompiler_LogicalOps/"str"_||_[]
✅ TestCompiler_LogicalOps/"str"_||_{}
✅ TestCompiler_LogicalOps/"str"_||_1
✅ TestCompiler_LogicalOps/"str"_||_1.2
✅ TestCompiler_LogicalOps/"str"_||_true
✅ TestCompiler_LogicalOps//str/_||_{}
✅ TestCompiler_LogicalOps//str/_||_1
✅ TestCompiler_LogicalOps//str/_||_1.2
✅ TestCompiler_LogicalOps//str/_||_true
✅ TestCompiler_LogicalOps//str/_||_"str"
✅ TestCompiler_LogicalOps//str/_||_/str/
✅ TestCompiler_LogicalOps//str/_||_[]
✅ TestCompiler_LogicalOps/[]_||_"str"
✅ TestCompiler_LogicalOps/[]_||_/str/
✅ TestCompiler_LogicalOps/[]_||_[]
✅ TestCompiler_LogicalOps/[]_||_{}
✅ TestCompiler_LogicalOps/[]_||_1
✅ TestCompiler_LogicalOps/[]_||_1.2
✅ TestCompiler_LogicalOps/[]_||_true
✅ TestCompiler_LogicalOps/{}_||_"str"
✅ TestCompiler_LogicalOps/{}_||_/str/
✅ TestCompiler_LogicalOps/{}_||_[]
✅ TestCompiler_LogicalOps/{}_||_{}
✅ TestCompiler_LogicalOps/{}_||_1
✅ TestCompiler_LogicalOps/{}_||_1.2
✅ TestCompiler_LogicalOps/{}_||_true
✅ TestCompiler_LogicalOps
✅ TestCompiler_Arithmetics/concat_arrays
✅ TestCompiler_Arithmetics
✅ TestCompiler_OperatorPrecedence/1_||_2_&&_3
✅ TestCompiler_OperatorPrecedence/1_&&_2_||_3
✅ TestCompiler_OperatorPrecedence
✅ TestCompiler_Assignment
✅ TestCompiler_Props
✅ TestCompiler_Dict
✅ TestCompiler_If
✅ TestCompiler_Switch/test_types_fall_back_to_any
✅ TestCompiler_Switch
✅ TestCompiler_ArrayEmptyWhere
✅ TestCompiler_ArrayWhereStatic
✅ TestCompiler_ArrayContains
✅ TestCompiler_ArrayOne
✅ TestCompiler_ArrayAll
✅ TestCompiler_All_Issue1316
✅ TestCompiler_Resource
✅ TestCompiler_Resource_versioning
✅ TestCompiler_Resource_versioning2
✅ TestCompiler_ResourceWithCall
✅ TestCompiler_LongResource
✅ TestCompiler_ResourceMap
✅ TestCompiler_ResourceMapLength
✅ TestCompiler_ResourceExpansion/mondoo
✅ TestCompiler_ResourceExpansion/users
✅ TestCompiler_ResourceExpansion/users_{_group_}
✅ TestCompiler_ResourceExpansion/pam.conf.entries['.']
✅ TestCompiler_ResourceExpansion
✅ TestCompiler_ArrayResource/packages[123]
✅ TestCompiler_ArrayResource/packages.length
✅ TestCompiler_ArrayResource
✅ TestCompiler_ResourceFieldGlob
✅ TestCompiler_ArrayResourceFieldGlob
✅ TestCompiler_ResourceFieldArrayAccessor
✅ TestCompiler_ResourceWithUnnamedArgs
✅ TestCompiler_ResourceWithNamedArgs
✅ TestCompiler_LongResourceWithUnnamedArgs
✅ TestCompiler_ExpectSimplest
✅ TestCompiler_ExpectEq
✅ TestCompiler_EmptyBlock
✅ TestCompiler_Block
✅ TestCompiler_BlockWithSelf
✅ TestCompiler_ContainsWithResource
✅ TestCompiler_StringContainsWithInt
✅ TestCompiler_CallWithResource
✅ TestCompiler_List
✅ TestCompiler_ResourceEmptyWhere
✅ TestCompiler_ResourceWhere
✅ TestCompiler_ResourceContains
✅ TestChecksums/no_duplicate_code_IDs/users.list_{_uid_==_1_}_!=_users.list_{_uid_==_2_}
✅ TestChecksums/no_duplicate_code_IDs/asset.platform_asset.version_!=_asset.platform
✅ TestChecksums/no_duplicate_code_IDs/asset.platform_asset.version_!=_asset.version
✅ TestChecksums/no_duplicate_code_IDs/if_(true)_{_2_}_!=_if_(true)_{_3_}
✅ TestChecksums/no_duplicate_code_IDs/mondoo_{_version_==_'a'}_!=_mondoo_{_version_==_'b'_version_==_'a'}
✅ TestChecksums/no_duplicate_code_IDs
✅ TestChecksums
✅ TestChecksums_block
✅ TestSuggestions/does_not_get_suggestions
✅ TestSuggestions/ssh
✅ TestSuggestions/sshd.
✅ TestSuggestions/users.
✅ TestSuggestions/sshd.config.para
✅ TestSuggestions/sshd.config_{_para_}
✅ TestSuggestions/sshd.config.params.leng
✅ TestSuggestions/parse.d
✅ TestSuggestions/docker.containers[0].hostnam
✅ TestSuggestions/docker.containers[0].hostnam#01
✅ TestSuggestions
✅ TestImplicitSuggestion
✅ TestCompiler_Error/unknown_term
✅ TestCompiler_Error
✅ TestCompiler_Multiline
✅ TestCompiler_Entrypoints/1
✅ TestCompiler_Entrypoints/mondoo.version_==_1
✅ TestCompiler_Entrypoints/mondoo.version_==_mondoo.build
✅ TestCompiler_Entrypoints/_____a_=_"a"_____b_=_"b"_____a_==_"a"_____b_==_"b"_____c_=_"c"_____c_==_"c"____
✅ TestCompiler_Entrypoints/_____a_=_"a"_____b_=_"b"_____a_==_"a"_____b_==_"b"_____c_=_a_==_b_____c_==_false____
✅ TestCompiler_Entrypoints
✅ TestCompiler_NestedEntrypoints/_____if(true)_{______a_=_"a"______b_=_"b"______a_==_b_____}____
✅ TestCompiler_NestedEntrypoints/_____if(true)_{______a_=_"a"______b_=_"b"______a_==_b_____}_else_{______x_=_"x"______y_=_"y"______x_==_y_____}____
✅ TestCompiler_NestedEntrypoints/______z_=_"z"_____if(z_==_"z")_{______a_=_"a"______b_=_"b"______a_==_b_____}_else_if_(z_==_"a")_{______x_=_"x"______y_=_"y"______x_==_y_____}_else_{______j_=_"j"______k_=_"k"______j_==_k_____}____
✅ TestCompiler_NestedEntrypoints/_____switch_{_____case_"a"_==_"a":______a_=_"a"______b_=_"b"______a_==_b;_____case_"b"_==_"b":______x_=_"x"______y_=_"y"______x_==_y_____}____
✅ TestCompiler_NestedEntrypoints/_____mondoo_{______a_=_"a"______b_=_"b"______a_==_b_____}____
✅ TestCompiler_NestedEntrypoints/_____{a:_"a"}_{______x_=_"x"______y_=_"y"______x_==_y_____}____
✅ TestCompiler_NestedEntrypoints/_____[1,2,3]_{______x_=_"x"______y_=_"y"______x_==_y_____}____
✅ TestCompiler_NestedEntrypoints/_____mondoo_{____________}____
✅ TestCompiler_NestedEntrypoints/_____mondoo_{______a_=_true______a_____}____
✅ TestCompiler_NestedEntrypoints/_____if(true)_{______a_=_true______a_____}____
✅ TestCompiler_NestedEntrypoints

✅ go.mondoo.com/cnquery/v9/mqlc/parser

✅ TestParser_Lex
✅ TestParser_ParseValues/null
✅ TestParser_ParseValues/NaN
✅ TestParser_ParseValues/Infinity
✅ TestParser_ParseValues/Never
✅ TestParser_ParseValues/true
✅ TestParser_ParseValues/false
✅ TestParser_ParseValues/name
✅ TestParser_ParseValues/1.23
✅ TestParser_ParseValues/123
✅ TestParser_ParseValues/'hi'
✅ TestParser_ParseValues/'h\ni'
✅ TestParser_ParseValues/'h\i'
✅ TestParser_ParseValues/"hi"
✅ TestParser_ParseValues/"h\ni"
✅ TestParser_ParseValues/"h\i"
✅ TestParser_ParseValues//hi/
✅ TestParser_ParseValues/[]
✅ TestParser_ParseValues/[1]
✅ TestParser_ParseValues/[1,2.3]
✅ TestParser_ParseValues/[1,2,]
✅ TestParser_ParseValues/{}
✅ TestParser_ParseValues/{'a':_'word'}
✅ TestParser_ParseValues/{"b":_"there"}
✅ TestParser_ParseValues/{c:_123}
✅ TestParser_ParseValues/{a:_1,_b:_2,}
✅ TestParser_ParseValues/name.last
✅ TestParser_ParseValues/name[1]
✅ TestParser_ParseValues/name()
✅ TestParser_ParseValues/name(1)
✅ TestParser_ParseValues/name(arg)
✅ TestParser_ParseValues/name(uid:_1)
✅ TestParser_ParseValues/a(b(c,d))
✅ TestParser_ParseValues/a(_b(_c,_d_)_)
✅ TestParser_ParseValues/user_{_name_uid_}
✅ TestParser_ParseValues/user_{___name___uid_}
✅ TestParser_ParseValues/users.list_{_uid_}
✅ TestParser_ParseValues/users.where()
✅ TestParser_ParseValues/users.where(uid_>_2).list_{_uid_}
✅ TestParser_ParseValues/1_+_2_==_3
✅ TestParser_ParseValues/1_&&_2_||_3
✅ TestParser_ParseValues/true_+_'some'.length()
✅ TestParser_ParseValues///_this_//_is_a_comment_'hi'
✅ TestParser_ParseValues/#_this_#_is_a_comment_'hi'
✅ TestParser_ParseValues
✅ TestParser_Comments/#
✅ TestParser_Comments///
✅ TestParser_Comments///_1_sshd_//_2__._//_3_config_//_4
✅ TestParser_Comments/file_//_1_{_//_2_path_//_3_==_//_4_'abc'_//_5_}_//_6
✅ TestParser_Comments
✅ TestParser_Multiline/true_1_2_
✅ TestParser_Multiline

✅ go.mondoo.com/cnquery/v9/mrn

✅ TestMrnParser
✅ TestCollectionID
✅ TestEquals
✅ TestMrnToPropertyName

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory

✅ TestAddMondooLabels
✅ TestInventoryParser
✅ TestPreprocess/preprocess_empty_inventory
✅ TestPreprocess/normal_inventory
✅ TestPreprocess/idempotent_preprocess
✅ TestPreprocess/preprocess_private_key
✅ TestPreprocess/preprocess_pkcs12_credential_with_loading_from_file
✅ TestPreprocess/preprocess_pkcs12_credential_with_loading_from_file#01
✅ TestPreprocess
✅ TestParseGCPInventory
✅ TestParseVsphereInventory
✅ TestParseSshInventory
✅ TestParseVaultInventory
✅ TestNilPointer
✅ TestMarkInsecure

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory/ansibleinventory

✅ TestValidInventory
✅ TestParseInventory
✅ TestParseInventoryUngrouped
✅ TestFullInventory
✅ TestHostExtraction
✅ TestHostConnectionLocal
✅ TestHostConnectionLocalYaml
✅ TestHostConnectionWinrm
✅ TestHostSSHPrivateKey
✅ TestInventoryConversion
✅ TestInventoryWithUsernameConversion
✅ TestTagsAndGroups

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory/domainlist

✅ TestParseInventory

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/inventory/manager

✅ TestSecretKeySimple
✅ TestSecretKeyIfReturn
✅ TestSecretKeyIfConditionalReturn

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/lr

✅ TestParse/empty
✅ TestParse/empty_resource
✅ TestParse/empty_resources
✅ TestParse/defaults
✅ TestParse/resource_with_a_static_field
✅ TestParse/resource_with_a_list_type
✅ TestParse/resource_with_a_map_type
✅ TestParse/resource_with_a_dependent_field,_no_args
✅ TestParse/resource_with_a_dependent_field,_with_args
✅ TestParse/resource_with_init,_with_args
✅ TestParse/resource_which_is_a_list_type
✅ TestParse/resource_which_is_a_list_type,_with_args
✅ TestParse/resource_which_is_a_list_type_based_on_resource_chain
✅ TestParse/embedded_resource
✅ TestParse/embedded_resource_with_an_alias
✅ TestParse/complex_resource
✅ TestParse
✅ TestParseLR/core/resources/core.lr
✅ TestParseLR/os/resources/os.lr
✅ TestParseLR
✅ TestSchema/empty
✅ TestSchema/chain_resource_creation
✅ TestSchema

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/lr/cli/cmd

✅ TestPlatformMapping

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream

✅ TestHash

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream/mvd/cvss

✅ TestCvss2Parsing
✅ TestCvss2Parsing2
✅ TestCvss2Parsing3
✅ TestCvss30Parsing
✅ TestCvss30Parsing2
✅ TestCvss30Parsing3
✅ TestCvss31Parsing1
✅ TestCvss3Comparison
✅ TestCvss3ParseEmpty
✅ TestCvssNone
✅ TestCvssVector
✅ TestCvssVectorWithTrailingSlash
✅ TestCvssVectorWithTrailingSpace
✅ TestMaxCvss
✅ TestMaxCvss2

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/vault

✅ TestVaultTypeParser
✅ TestVaultTypeMarshal
✅ TestCredentialParser
✅ TestCredentialMarshal
✅ TestSecretEncoding
✅ TestSecretCredentialConversion

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/config

✅ TestVaultConfiguration

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/inmemory

✅ TestVault

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/keyring

✅ TestEncryptedFile

✅ go.mondoo.com/cnquery/v9/providers-sdk/v1/vault/multivault

✅ TestMultiVault

✅ go.mondoo.com/cnquery/v9/types

✅ TestMaps_StringSet/all_functions
✅ TestMaps_StringSet/concurrent_runs
✅ TestMaps_StringSet
✅ TestMaps_StringToStrings/all_functions
✅ TestMaps_StringToStrings/concurrent_runs
✅ TestMaps_StringToStrings
✅ TestTypes

✅ go.mondoo.com/cnquery/v9/utils/multierr

✅ TestMultiErr/add_nil_errors
✅ TestMultiErr/add_mixed_errors
✅ TestMultiErr

✅ go.mondoo.com/cnquery/v9/utils/stringx

✅ TestContains
✅ TestContainsAnyOf
✅ TestRemoveEmpty
✅ TestDedupStringArray
✅ TestIntersection
✅ TestIntersectionNoOverlap
✅ TestMerge