2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-30 05:47:56 +00:00

fix recordsetrepo, conf for running mysql (#365)

* fix recordsetrepo, conf for running mysql
This commit is contained in:
Rebecca Star 2018-11-20 17:04:49 -05:00 committed by GitHub
parent ad99525cdf
commit 97bf1b50f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 2 deletions

View File

@ -29,6 +29,7 @@ akka.http {
}
vinyldns {
data-stores = ["mysql", "dynamodb"]
mysql {
settings {

View File

@ -51,8 +51,6 @@ vinyldns {
port = 9000
}
data-stores = ["mysql", "dynamodb"]
mysql {
class-name = "vinyldns.mysql.repository.MySqlDataStoreProvider"

View File

@ -233,6 +233,7 @@ object MySqlRecordSetRepository extends ProtobufConversions {
case RecordType.SRV => 8
case RecordType.SSHFP => 9
case RecordType.TXT => 10
case RecordType.SOA => 11
case RecordType.UNKNOWN => unknownRecordType
}
}

View File

@ -32,6 +32,7 @@ class MySqlRecordSetRepositorySpec extends WordSpec with Matchers {
fromRecordType(RecordType.SRV) shouldBe 8
fromRecordType(RecordType.SSHFP) shouldBe 9
fromRecordType(RecordType.TXT) shouldBe 10
fromRecordType(RecordType.SOA) shouldBe 11
fromRecordType(RecordType.UNKNOWN) shouldBe unknownRecordType
}
}