summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_nontemporaryaddress_test.go
diff options
context:
space:
mode:
authorSean Karlage <skarlage@fb.com>2018-08-11 14:30:48 -0700
committerSean Karlage <skarlage@fb.com>2018-08-11 14:32:26 -0700
commit8ea2525c898436a2a935580de67727bbe7035c85 (patch)
tree69d35d17c238feabb07ef07a907aae5520104911 /dhcpv6/option_nontemporaryaddress_test.go
parent2b05c7d03724d31529886d98f738499ac06ead7e (diff)
parenta6212f1f72e94821a29894fb66656a981bd035d0 (diff)
Merge branch 'master' into dhcpv4-moar-tests
Diffstat (limited to 'dhcpv6/option_nontemporaryaddress_test.go')
-rw-r--r--dhcpv6/option_nontemporaryaddress_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/dhcpv6/option_nontemporaryaddress_test.go b/dhcpv6/option_nontemporaryaddress_test.go
index 54df8f0..39c3c36 100644
--- a/dhcpv6/option_nontemporaryaddress_test.go
+++ b/dhcpv6/option_nontemporaryaddress_test.go
@@ -47,7 +47,7 @@ func TestOptIANAGetOneOption(t *testing.T) {
opt := OptIANA{
Options: []Option{&OptElapsedTime{}, oaddr},
}
- require.Equal(t, oaddr, opt.GetOneOption(OPTION_IAADDR))
+ require.Equal(t, oaddr, opt.GetOneOption(OptionIAAddr))
}
func TestOptIANAGetOneOptionMissingOpt(t *testing.T) {
@@ -57,7 +57,7 @@ func TestOptIANAGetOneOptionMissingOpt(t *testing.T) {
opt := OptIANA{
Options: []Option{&OptElapsedTime{}, oaddr},
}
- require.Equal(t, nil, opt.GetOneOption(DNS_RECURSIVE_NAME_SERVER))
+ require.Equal(t, nil, opt.GetOneOption(OptionDNSRecursiveNameServer))
}
func TestOptIANADelOption(t *testing.T) {
@@ -69,13 +69,13 @@ func TestOptIANADelOption(t *testing.T) {
optiana1.Options = append(optiana1.Options, &optsc)
optiana1.Options = append(optiana1.Options, &optiaaddr)
optiana1.Options = append(optiana1.Options, &optiaaddr)
- optiana1.DelOption(OPTION_IAADDR)
+ optiana1.DelOption(OptionIAAddr)
require.Equal(t, optiana1.Options, []Option{&optsc})
optiana2.Options = append(optiana2.Options, &optiaaddr)
optiana2.Options = append(optiana2.Options, &optsc)
optiana2.Options = append(optiana2.Options, &optiaaddr)
- optiana2.DelOption(OPTION_IAADDR)
+ optiana2.DelOption(OptionIAAddr)
require.Equal(t, optiana2.Options, []Option{&optsc})
}
@@ -91,7 +91,7 @@ func TestOptIANAToBytes(t *testing.T) {
},
}
expected := []byte{
- 0, 3, // OPTION_IA_NA
+ 0, 3, // OptionIANA
0, 18, // length
1, 2, 3, 4, // IA ID
0, 0, 0x30, 0x39, // T1 = 12345