window.qunitTestsArray['guiViews[group]']={test:function(){let list_path='/group/';let page_path=list_path+'{'+path_pk_key+'}/';let instances_info=guiTests.getEmptyInstancesInfo();guiTests.createRandomUser(instances_info);guiTests.testSetOfViews(list_path,instances_info,{new:[{is_valid:true,data:{name:{value:randomString(6),},notes:{value:randomString(6),},},},],edit:[{is_valid:true,data:{notes:{value:randomString(6)+randomString(6)},},},],},true);guiTests.copyInstanceFromPageView(page_path,instances_info,{is_valid:true,remove:true,data:{name:{value:randomString(8),},}});guiTests.executeActionFromSomeView(page_path,instances_info,{is_valid:true,action:'set_owner',data:()=>{return{user_id:{value:{prefetch_value:instances_info.key_fields_data.user.username,value:instances_info.key_fields_data.user.id,},do_not_compare:true,},};},});guiTests.testSetOfViews(page_path+"variables/",instances_info,{new:[{is_valid:true,data:{key:{value:"ansible_user"},value:{value:"ubuntu"},},},],edit:[{is_valid:true,data:{value:{value:"centos"},},},],page:{remove:true,},},false);guiTests.testSetOfViews(page_path+"host/",instances_info,{new:[{is_valid:true,data:{name:{value:randomString(6),},notes:{value:randomString(6),},type:{value:"RANGE",},},},],edit:[{is_valid:true,data:{notes:{value:randomString(6)+randomString(6)},},},],add_child:{child_path:'/host/',data:{name:{value:'child-host-'+randomString(6)+randomString(6)},},},},false);guiTests.executeActionFromSomeView(page_path+"host/{host_id}/",instances_info,{is_valid:true,action:'set_owner',data:()=>{return{user_id:{value:{prefetch_value:instances_info.key_fields_data.user.username,value:instances_info.key_fields_data.user.id,},do_not_compare:true,},};},});guiTests.testSetOfViews(page_path+"host/{host_id}/variables/",instances_info,{new:[{is_valid:true,data:{key:{value:"ansible_user"},value:{value:"ubuntu"},},},],edit:[{is_valid:true,data:{value:{value:"centos"},},},],page:{remove:true,},},false);[page_path+"host/{host_id}/","/host/{host_id}/",page_path,].forEach((path)=>{guiTests.testRemovePageViewInstance(path,instances_info,true);});guiTests.testSetOfViews(list_path,instances_info,{new:[{is_valid:true,data:{name:{value:randomString(6),},children:{value:true},notes:{value:randomString(6),},},},],edit:[{is_valid:true,data:{notes:{value:randomString(6)+randomString(6)},},},],},true);guiTests.testSetOfViews(page_path+"variables/",instances_info,{new:[{is_valid:true,data:{key:{value:"ansible_user"},value:{value:"ubuntu"},},},],edit:[{is_valid:true,data:{value:{value:"centos"},},},],page:{remove:true,},},false);guiTests.testSetOfViews(page_path+"group/",instances_info,{new:[{is_valid:true,data:{name:{value:randomString(6),},notes:{value:randomString(6),},},},],edit:[{is_valid:true,data:{notes:{value:randomString(6)+randomString(6)},},},],add_child:{child_path:'/group/',data:{name:{value:'child-group-'+randomString(6)+randomString(6)},},},},false);guiTests.executeActionFromSomeView(page_path+"group/{group_id}/",instances_info,{is_valid:true,action:'set_owner',data:()=>{return{user_id:{value:{prefetch_value:instances_info.key_fields_data.user.username,value:instances_info.key_fields_data.user.id,},do_not_compare:true,},};},});guiTests.testSetOfViews(page_path+"group/{group_id}/variables/",instances_info,{new:[{is_valid:true,data:{key:{value:"ansible_user"},value:{value:"ubuntu"},},},],edit:[{is_valid:true,data:{value:{value:"centos"},},},],page:{remove:true,},},false);[page_path+"group/{group_id}/","/group/{group_id}/",page_path,"/user/{user_id}/",].forEach((path)=>{guiTests.testRemovePageViewInstance(path,instances_info,true);});},};