@@ -90,10 +90,9 @@ func TestIgnition_getTemplateData(t *testing.T) {
9090 }
9191 clusterName := "test-agent-cluster-install.test"
9292
93- privateKey := "-----BEGIN EC PUBLIC KEY-----\n MFkwEwYHKoAiDHV4tg==\n -----END EC PUBLIC KEY-----\n "
94- publicKey := "-----BEGIN EC PRIVATE KEY-----\n MHcCAQEEIOSCfDNmx0qe6dncV4tg==\n -----END EC PRIVATE KEY-----\n " //nolint:gosec
93+ publicKey := "-----BEGIN EC PUBLIC KEY-----\n MHcCAQEEIOSCfDNmx0qe6dncV4tg==\n -----END EC PUBLIC KEY-----\n "
9594
96- templateData := getTemplateData (clusterName , pullSecret , releaseImageList , releaseImage , releaseImageMirror , haveMirrorConfig , publicContainerRegistries , agentClusterInstall .Spec .ProvisionRequirements .ControlPlaneAgents , agentClusterInstall .Spec .ProvisionRequirements .WorkerAgents , infraEnvID , osImage , proxy , "minimal-iso" , privateKey , publicKey , "" )
95+ templateData := getTemplateData (clusterName , pullSecret , releaseImageList , releaseImage , releaseImageMirror , haveMirrorConfig , publicContainerRegistries , agentClusterInstall .Spec .ProvisionRequirements .ControlPlaneAgents , agentClusterInstall .Spec .ProvisionRequirements .WorkerAgents , infraEnvID , osImage , proxy , "minimal-iso" , publicKey , "" )
9796 assert .Equal (t , clusterName , templateData .ClusterName )
9897 assert .Equal (t , "http" , templateData .ServiceProtocol )
9998 assert .Equal (t , pullSecret , templateData .PullSecret )
@@ -107,7 +106,6 @@ func TestIgnition_getTemplateData(t *testing.T) {
107106 assert .Equal (t , infraEnvID , templateData .InfraEnvID )
108107 assert .Equal (t , osImage , templateData .OSImage )
109108 assert .Equal (t , proxy , templateData .Proxy )
110- assert .Equal (t , privateKey , templateData .PrivateKeyPEM )
111109 assert .Equal (t , publicKey , templateData .PublicKeyPEM )
112110}
113111
0 commit comments