summaryrefslogtreecommitdiff
path: root/test/lib/powerdnsx/models/zone_test.exs
blob: 8a616021454bf375b798b04bbfcbc05c2feac05d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# defmodule PowerDNSx.Models.ZoneTest do
# 
#   use ExUnit.Case, async: true
# 
#   alias PowerDNSx.Models.Zone
# 
#   describe "Zone.build/1" do
#     test "build zone with all attributes" do
#       ns_servers = ["ns1.powerdnsx.tst", "ns2.powerdnsx.tst"]
# 
#       zone_params = %{id: nil,
#                       name: "test.tst",
#                       nameservers: ns_servers,
#                       account: "pdnaccount",
#                       kind: "Native",
#                       masters: [],
#                       records: [],
#                       serial: nil,
#                       comments: [],
#                       soa_edit: nil,
#                       soa_edit_api: nil}
# 
#      zone_built = Zone.build(zone_params)
#      assert zone_params === Map.from_struct(zone_built)
#     end
#   end
# end