std::string exec = "basicui";
ASSERT_EQ(backend.InstallPreload(path), ci::AppInstaller::Result::OK);
+ ci::PkgQueryInterface pkg_query1(pkgid, params.test_user.uid);
+ PackageAttributes original(pkg_query1);
ASSERT_EQ(backend.Install(path), ci::AppInstaller::Result::OK);
ValidatePackage(pkgid, {appid, exec}, params);
TestParameters nonreadonly_params(params);
nonreadonly_params.is_readonly = false;
ValidatePackage(pkgid, {appid, exec}, nonreadonly_params);
ASSERT_EQ(backend.Uninstall(pkgid), ci::AppInstaller::Result::OK);
+ ci::PkgQueryInterface pkg_query2(pkgid, params.test_user.uid, true);
+ PackageAttributes restored(pkg_query2);
+ ASSERT_EQ(original, restored);
ValidatePackage(pkgid, {appid, exec}, params);
}