mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
22 lines
600 B
Go
22 lines
600 B
Go
package v1
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/kubescape/kubescape/v2/core/cautils/getter"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestGetPrometheusDefaultScanCommand(t *testing.T) {
|
|
scanID := "1234"
|
|
outputFile := filepath.Join(OutputDir, scanID)
|
|
scanInfo := getPrometheusDefaultScanCommand(scanID, outputFile)
|
|
|
|
assert.Equal(t, scanID, scanInfo.ScanID)
|
|
assert.Equal(t, outputFile, scanInfo.Output)
|
|
assert.Equal(t, "prometheus", scanInfo.Format)
|
|
// assert.False(t, *scanInfo.HostSensorEnabled.Get())
|
|
assert.Equal(t, getter.DefaultLocalStore, scanInfo.UseArtifactsFrom)
|
|
}
|