@@ -498,6 +498,21 @@ func TestSuse15Detector(t *testing.T) {
498498 assert .Equal (t , []string {"suse" , "linux" , "unix" , "os" }, di .Family )
499499}
500500
501+ func TestSuse15SapDetector (t * testing.T ) {
502+ di , err := detectPlatformFromMock ("./testdata/detect-suse-sles-15-sap.toml" )
503+ assert .Nil (t , err , "was able to create the provider" )
504+
505+ assert .Equal (t , "sles" , di .Name , "os name should be identified" )
506+ assert .Equal (t , "SUSE Linux Enterprise Server 15 SP2" , di .Title , "os title should be identified" )
507+ assert .Equal (t , "15.2" , di .Version , "os version should be identified" )
508+ assert .Equal (t , "x86_64" , di .Arch , "os arch should be identified" )
509+ assert .Equal (t , []string {"suse" , "linux" , "unix" , "os" }, di .Family )
510+ assert .Equal (t , map [string ]string {
511+ "distro-id" : "sles" ,
512+ "variant-id" : "sles-sap" ,
513+ }, di .Labels )
514+ }
515+
501516func TestSuse5MicroDetector (t * testing.T ) {
502517 di , err := detectPlatformFromMock ("./testdata/detect-suse-micro-5.toml" )
503518 assert .Nil (t , err , "was able to create the provider" )
0 commit comments