is_deeply $data->{sources}, {
config => {
sources_list => {
- file => {
- file_name => $source_list,
- body => join "", map "$_\n",
- "deb http://main.example.com foo",
- "deb http://main.example.com bar",
- },
+ file_name => $source_list,
+ body => join "", map "$_\n",
+ "deb http://main.example.com foo",
+ "deb http://main.example.com bar",
},
sources_list_dir => {
files => {
"other.list" => {
- file => {
- file_name => "$source_list_dir/other.list",
- body => join "", map "$_\n",
- "deb http://other.example.com foo",
- "deb http://other.example.com bar",
- },
+ file_name => "$source_list_dir/other.list",
+ body => join "", map "$_\n",
+ "deb http://other.example.com foo",
+ "deb http://other.example.com bar",
},
},
}