diff options
author | Özgür Kesim <oec@codeblau.de> | 2019-06-16 20:45:30 +0200 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2019-06-16 20:45:30 +0200 |
commit | e3ea0f0201479558d72192ecbbb07afded1f9553 (patch) | |
tree | 519bcb9e80a94b8e99650d7edff5109699fe5ffe /tcl_test.go | |
parent | 54d8301b96ad12f85066e13145fc0daf85aad31e (diff) |
non functioning init
Diffstat (limited to 'tcl_test.go')
-rw-r--r-- | tcl_test.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tcl_test.go b/tcl_test.go new file mode 100644 index 0000000..88c34be --- /dev/null +++ b/tcl_test.go @@ -0,0 +1,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) + +} |