source: tests/00820_dns

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 1.3 KB
RevLine 
[c5c522c]1#!/bin/bash
2
3
4source testlib || exit 1
5
6DESCRIPTION1="Ssh beschikbaar?"
7VERIFYEXIT=0
8sshtest || exit 1
9
10DESCRIPTION1="Sla test over indien we niet de juiste licentieoptie hebben."
11CMD="cat /etc/webint/REG"
12VERIFYPOSITIVE='"I"'
13if ! sshtest; then
14        echo "Dit is geen internetserver, test overgeslagen"
15        exit 0
16fi
17
18#################################
19
20DESCRIPTION1="zooi opruim"
21PAGE="dns/editadr.php?rule_txt=%3Dtest.local%3A1.1.1.1&del=1"
22scc_add
23#niet te snel, ivm timestamps en make commando.
24#vandaar extra scc_test
25scc_test || exit 1
26
27DESCRIPTION1="test dns entrie aanmaken"
28METHOD="post"
29POSTBODY="save=1&new_type==&new_src=test.local&new_dst=1.1.1.1"
30PAGE="dns/editadr.php"
31VERIFYPOSITIVE="Nieuw DNS adres:"
32scc_add
33scc_test || exit 1
34
35
36DESCRIPTION1="test onze forward"
37CMD="dnsip test.local"
38VERIFYPOSITIVE="1.1.1.1"
39sshtest || exit 1
40
41DESCRIPTION1="test onze reverse"
42CMD="dnsname 1.1.1.1"
43VERIFYPOSITIVE="test.local"
44sshtest || exit 1
45
46DESCRIPTION1="haal weer weg"
47PAGE="dns/editadr.php?rule_txt=%3Dtest.local%3A1.1.1.1&del=1"
48scc_add
49scc_test || exit 1
50
51DESCRIPTION1="test onze forward weg is"
52CMD="dnsip test.local"
53VERIFYNEGATIVE="1.1.1.1"
54sshtest || exit 1
55
56DESCRIPTION1="test onze reverse weg is"
57CMD="dnsname 1.1.1.1"
58VERIFYNEGATIVE="test.local"
59sshtest || exit 1
60
Note: See TracBrowser for help on using the repository browser.