Home | History | Annotate | Line # | Download | only in nsupdate
      1 # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      2 #
      3 # SPDX-License-Identifier: MPL-2.0
      4 #
      5 # This Source Code Form is subject to the terms of the Mozilla Public
      6 # License, v. 2.0.  If a copy of the MPL was not distributed with this
      7 # file, you can obtain one at https://mozilla.org/MPL/2.0/.
      8 #
      9 # See the COPYRIGHT file distributed with this work for additional
     10 # information regarding copyright ownership.
     11 
     12 import platform
     13 
     14 import pytest
     15 
     16 pytestmark = pytest.mark.extra_artifacts(
     17     [
     18         "Kxxx*",
     19         "dig.out.*",
     20         "nextpart.out.*",
     21         "nsupdate.*out*",
     22         "perl.update_test.out",
     23         "typelist.out.*",
     24         "update.in.*",
     25         "verylarge",
     26         "ans*/ans.run",
     27         "ns*/*.jnl",
     28         "ns*/*.jnl",
     29         "ns1/ddns.key",
     30         "ns1/example.db",
     31         "ns1/keytests.db",
     32         "ns1/legacy*.key",
     33         "ns1/many.test.db",
     34         "ns1/maxjournal.db",
     35         "ns1/md5.key",
     36         "ns1/other.db",
     37         "ns1/sample.db",
     38         "ns1/sha*.key",
     39         "ns1/tls.conf",
     40         "ns1/tls.options",
     41         "ns1/unixtime.db",
     42         "ns1/update.db",
     43         "ns1/yyyymmddvv.db",
     44         "ns2/example.bk",
     45         "ns2/sample.db",
     46         "ns2/update.alt.bk",
     47         "ns2/update.bk",
     48         "ns3/dsset-*",
     49         "ns3/K*",
     50         "ns3/*.signed",
     51         "ns3/delegation.test.db",
     52         "ns3/dnskey.test.db",
     53         "ns3/example.db",
     54         "ns3/multisigner.test.db",
     55         "ns3/nsec3param.test.db",
     56         "ns3/relaxed.db",
     57         "ns3/too-big.test.db",
     58         "ns5/local.db",
     59         "ns6/2.0.0.2.ip6.addr.db",
     60         "ns6/in-addr.db",
     61         "ns7/_default.tsigkeys",
     62         "ns7/example.com.db",
     63         "ns7/in-addr.db",
     64         "ns8/_default.tsigkeys",
     65         "ns8/example.com.db",
     66         "ns8/in-addr.db",
     67         "ns9/_default.tsigkeys",
     68         "ns9/denyname.example.db",
     69         "ns9/example.com.db",
     70         "ns9/in-addr.db",
     71         "ns10/_default.tsigkeys",
     72         "ns10/example.com.db",
     73         "ns10/in-addr.db",
     74     ]
     75 )
     76 
     77 
     78 MAX_RUNS = 2 if platform.system() == "FreeBSD" else 1  # GL#3846
     79 
     80 
     81 @pytest.mark.flaky(max_runs=MAX_RUNS)
     82 def test_nsupdate(run_tests_sh):
     83     run_tests_sh()
     84