mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-18 13:54:23 -05:00

* Deploy activation service on cluster init * Use base image with CA certificates for activation service * Improve KMS server Signed-off-by: Daniel Weiße <dw@edgeless.systems>
19 lines
463 B
Go
19 lines
463 B
Go
package resources
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestNewActivationDaemonset(t *testing.T) {
|
|
deployment := NewActivationDaemonset("csp", "measurementsJSON", "idJSON")
|
|
deploymentYAML, err := deployment.Marshal()
|
|
require.NoError(t, err)
|
|
|
|
var recreated activationDaemonset
|
|
require.NoError(t, UnmarshalK8SResources(deploymentYAML, &recreated))
|
|
assert.Equal(t, deployment, &recreated)
|
|
}
|