go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/explorer/query_hub_test.go (about) 1 // Copyright (c) Mondoo, Inc. 2 // SPDX-License-Identifier: BUSL-1.1 3 4 package explorer 5 6 import ( 7 "testing" 8 9 "github.com/stretchr/testify/assert" 10 ) 11 12 func TestQueryPackMrn(t *testing.T) { 13 // given 14 namespace := "test-namespace" 15 uid := "test-uid" 16 17 // when 18 mrn := NewQueryPackMrn(namespace, uid) 19 20 // then 21 assert.Equal(t, "//registry.mondoo.com/namespace/test-namespace/querypacks/test-uid", mrn) 22 }