mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
4842d29aff
* 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)
|
|
}
|