3 Provides unit tests and examples for the <Anaconda> lens.
5 - 'exampleN' snippets are taken from the documentation:
6 https://anaconda-installer.readthedocs.io/en/latest/user-interaction-config-file-spec.html
7 - 'installedN' snippets are taken from the resulting files after
8 a successful installation
11 module Test_Anaconda =
13 let example1 = "# comment example - before the section headers
16 # comment example - inside section 1
17 key_a_in_section1=some_value
18 key_b_in_section1=some_value
21 # comment example - inside section 2
22 key_a_in_section2=some_value
25 test Anaconda.lns get example1 =
26 { "#comment" = "comment example - before the section headers" }
29 { "#comment" = "comment example - inside section 1" }
30 { "key_a_in_section1" = "some_value" }
31 { "key_b_in_section1" = "some_value" }
35 { "#comment" = "comment example - inside section 2" }
36 { "key_a_in_section2" = "some_value" }
39 let example2 = "# this is the user interaction config file
42 post_install_tools_disabled=0
45 # the date and time spoke has been visited
52 # the keyboard spoke has not been visited
56 test Anaconda.lns get example2 =
57 { "#comment" = "this is the user interaction config file" }
60 { "post_install_tools_disabled" = "0" }
64 { "#comment" = "the date and time spoke has been visited" }
66 { "changed_timezone" = "1" }
67 { "changed_ntp" = "0" }
68 { "changed_timedate" = "1" }
72 { "#comment" = "the keyboard spoke has not been visited" }
76 let installed1 = "# This file has been generated by the Anaconda Installer 21.48.22.134-1
83 test Anaconda.lns get installed1 =
84 { "#comment" = "This file has been generated by the Anaconda Installer 21.48.22.134-1" }