aboutsummaryrefslogtreecommitdiff
path: root/tcl_test.go
blob: 88c34be4be997b58c53c5b0f5c58fe506a487c47 (plain)
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
28
29
30
31
32
33
package tcl

import "testing"

func TestFirst(t *testing.T) {
	input := `#TMSH-VERSION: 12.1.2

cli admin-partitions {
    update-partition Common
}
apm report default-report {
    report-name sessionReports/sessionSummary
    user /Common/admin
}
auth user admin {
    description "Admin User"
    encrypted-password $6$IIhG.HP4$kmWDt3Czta4rK5Ct4rYgaGSCDtqkMbAIgCUUdIDaQ/W8HTVHy7F1EZmSM.KYO9sdxDTuggaAGHj7QO/8f9rB80
    partition-access {
        all-partitions {
            role admin
        }
    }
    shell bash
}`

	d, e := ParseDebug(input)
	if e != nil {
		t.Fatal(e)
	}

	t.Logf("got d: %#v\n", d)

}