Skip to content

Commit

Permalink
Remove \t from medusa.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Feb 23, 2024
1 parent 2d6579e commit d2cddb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/medusa/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ func CreateMedusaIni(kc *k8ss.K8ssandraCluster, dcConfig *cassandra.DatacenterCo
// Create Kubernetes config here and append it
if dcConfig.ManagementApiAuth != nil && dcConfig.ManagementApiAuth.Manual != nil {
medusaConfiig += `
cassandra_url = https://127.0.0.1:8080/api/v0/ops/node/snapshots
ca_cert = /etc/encryption/mgmt/ca.crt
tls_cert = /etc/encryption/mgmt/tls.crt
tls_key = /etc/encryption/mgmt/tls.key`
cassandra_url = https://127.0.0.1:8080/api/v0/ops/node/snapshots
ca_cert = /etc/encryption/mgmt/ca.crt
tls_cert = /etc/encryption/mgmt/tls.crt
tls_key = /etc/encryption/mgmt/tls.key`
} else {
medusaConfiig += `
cassandra_url = http://127.0.0.1:8080/api/v0/ops/node/snapshots`
cassandra_url = http://127.0.0.1:8080/api/v0/ops/node/snapshots`
}

return medusaConfiig
Expand Down
2 changes: 2 additions & 0 deletions pkg/medusa/reconcile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ func testMedusaIniSecured(t *testing.T) {
assert.Contains(medusaIni, "tls_cert = /etc/encryption/mgmt/tls.crt")
assert.Contains(medusaIni, "tls_key = /etc/encryption/mgmt/tls.key")
assert.Contains(medusaIni, "cassandra_url = https://127.0.0.1:8080/api/v0/ops/node/snapshots")

assert.NotContains(medusaIni, "\t")
}

func testMedusaIniSecuredDcLevelSetting(t *testing.T) {
Expand Down

0 comments on commit d2cddb9

Please sign in to comment.