mirror of
https://github.com/VinylDNS/vinyldns
synced 2025-08-31 14:25:30 +00:00
fix recordsetrepo, conf for running mysql (#365)
* fix recordsetrepo, conf for running mysql
This commit is contained in:
@@ -29,6 +29,7 @@ akka.http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
vinyldns {
|
vinyldns {
|
||||||
|
data-stores = ["mysql", "dynamodb"]
|
||||||
|
|
||||||
mysql {
|
mysql {
|
||||||
settings {
|
settings {
|
||||||
|
@@ -51,8 +51,6 @@ vinyldns {
|
|||||||
port = 9000
|
port = 9000
|
||||||
}
|
}
|
||||||
|
|
||||||
data-stores = ["mysql", "dynamodb"]
|
|
||||||
|
|
||||||
mysql {
|
mysql {
|
||||||
class-name = "vinyldns.mysql.repository.MySqlDataStoreProvider"
|
class-name = "vinyldns.mysql.repository.MySqlDataStoreProvider"
|
||||||
|
|
||||||
|
@@ -233,6 +233,7 @@ object MySqlRecordSetRepository extends ProtobufConversions {
|
|||||||
case RecordType.SRV => 8
|
case RecordType.SRV => 8
|
||||||
case RecordType.SSHFP => 9
|
case RecordType.SSHFP => 9
|
||||||
case RecordType.TXT => 10
|
case RecordType.TXT => 10
|
||||||
|
case RecordType.SOA => 11
|
||||||
case RecordType.UNKNOWN => unknownRecordType
|
case RecordType.UNKNOWN => unknownRecordType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -32,6 +32,7 @@ class MySqlRecordSetRepositorySpec extends WordSpec with Matchers {
|
|||||||
fromRecordType(RecordType.SRV) shouldBe 8
|
fromRecordType(RecordType.SRV) shouldBe 8
|
||||||
fromRecordType(RecordType.SSHFP) shouldBe 9
|
fromRecordType(RecordType.SSHFP) shouldBe 9
|
||||||
fromRecordType(RecordType.TXT) shouldBe 10
|
fromRecordType(RecordType.TXT) shouldBe 10
|
||||||
|
fromRecordType(RecordType.SOA) shouldBe 11
|
||||||
fromRecordType(RecordType.UNKNOWN) shouldBe unknownRecordType
|
fromRecordType(RecordType.UNKNOWN) shouldBe unknownRecordType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user