mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-16 11:58:43 -04:00
18 lines
431 B
Go
18 lines
431 B
Go
package fetcher_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/edgelesssys/constellation/v2/internal/api/fetcher"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGetVersion(t *testing.T) {
|
|
ctx := context.Background()
|
|
fetcher := fetcher.NewConfigAPIFetcher()
|
|
res, err := fetcher.FetchLatestAzureSEVSNPVersion(ctx)
|
|
require.NoError(t, err)
|
|
assert.Equal(t, uint8(2), res.Bootloader)
|
|
}
|