убрал возможность задавать тип машины как кластера
This commit is contained in:
@@ -374,6 +374,9 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
Print("Получить максимальную установленную версию Sapfor");
|
||||
GetSapforMaxVersion();
|
||||
break;
|
||||
case TestCode:
|
||||
checkUnpackedTests();
|
||||
break;
|
||||
default:
|
||||
throw new RepositoryRefuseException("Неподдерживаемый код: " + code);
|
||||
}
|
||||
@@ -742,5 +745,18 @@ public class TestingServer extends RepositoryServer<TestsDatabase> {
|
||||
//--
|
||||
return target;
|
||||
}
|
||||
public void checkUnpackedTests() throws Exception{
|
||||
for (Test test: db.tests.Data.values()){
|
||||
File testHome = test.getServerPath();
|
||||
if (!testHome.exists()){
|
||||
throw new RepositoryRefuseException(test.id+" не существует папка");
|
||||
}
|
||||
File testArchive = test.getArchive();
|
||||
if (!testArchive.exists()){
|
||||
throw new RepositoryRefuseException(test.id+" не существует архив");
|
||||
}
|
||||
}
|
||||
response = new ServerExchangeUnit_2021(ServerCode.OK);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user