mirror of
https://github.com/kairos-io/kcrypt-challenger.git
synced 2025-09-13 21:50:41 +00:00
Fix tests
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
VERSION 0.6
|
VERSION 0.6
|
||||||
ARG BASE_IMAGE=quay.io/kairos/core-ubuntu:latest
|
|
||||||
|
# TODO: Find a way to automatically bump this
|
||||||
|
ARG BASE_IMAGE=quay.io/kairos/ubuntu:23.10-core-amd64-generic-v2.5.0
|
||||||
|
|
||||||
ARG OSBUILDER_IMAGE=quay.io/kairos/osbuilder-tools
|
ARG OSBUILDER_IMAGE=quay.io/kairos/osbuilder-tools
|
||||||
# renovate: datasource=docker depName=golang
|
# renovate: datasource=docker depName=golang
|
||||||
ARG GO_VERSION=1.20
|
ARG GO_VERSION=1.20
|
||||||
|
@@ -363,29 +363,9 @@ func getChallengerServerCert() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func createConfigWithCert(server, cert string) client.Config {
|
func createConfigWithCert(server, cert string) client.Config {
|
||||||
return client.Config{
|
c := client.Config{}
|
||||||
Kcrypt: struct {
|
c.Kcrypt.Challenger.Server = server
|
||||||
Challenger struct {
|
c.Kcrypt.Challenger.Certificate = cert
|
||||||
Server string "yaml:\"challenger_server,omitempty\""
|
|
||||||
NVIndex string "yaml:\"nv_index,omitempty\""
|
return c
|
||||||
CIndex string "yaml:\"c_index,omitempty\""
|
|
||||||
TPMDevice string "yaml:\"tpm_device,omitempty\""
|
|
||||||
Certificate string "yaml:\"certificate,omitempty\""
|
|
||||||
}
|
|
||||||
}{
|
|
||||||
Challenger: struct {
|
|
||||||
Server string "yaml:\"challenger_server,omitempty\""
|
|
||||||
NVIndex string "yaml:\"nv_index,omitempty\""
|
|
||||||
CIndex string "yaml:\"c_index,omitempty\""
|
|
||||||
TPMDevice string "yaml:\"tpm_device,omitempty\""
|
|
||||||
Certificate string "yaml:\"certificate,omitempty\""
|
|
||||||
}{
|
|
||||||
Server: server,
|
|
||||||
NVIndex: "",
|
|
||||||
CIndex: "",
|
|
||||||
TPMDevice: "",
|
|
||||||
Certificate: cert,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user