@@ -0,0 +1,1367 @@
+package io.digdag.server.rs;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.TemporaryFolder;%0Aimport utils.CommandStatus;%0Aimport utils.TemporaryDigdagServer;%0A%0Aimport java.nio.file.Path;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.containsString;%0Aimport static utils.TestUtils.copyResource;%0Aimport static utils.TestUtils.main;%0A%0Apublic class ProjectResourceTest%0A%7B%0A    @Rule%0A    public TemporaryFolder folder = new TemporaryFolder();%0A%0A    private Path projectDir;%0A%0A    @Before%0A    public void setUp()%0A            throws Exception%0A    %7B%0A        // TODO create projectDir/sub%0A        projectDir = folder.getRoot().toPath();%0A    %7D%0A%0A    @Test%0A    public void uploadProjectLargerThanLimit()%0A            throws Exception%0A    %7B%0A        TemporaryDigdagServer server = TemporaryDigdagServer.builder()%0A                .configuration(%22api.max_archive_total_size_limit = 1%22)%0A                .build();%0A        server.start();%0A%0A        String expectMessage = %22Size of the uploaded archive file exceeds limit%22;%0A%0A        copyResource(%22acceptance/basic.dig%22, projectDir.resolve(%22basic.dig%22));%0A        CommandStatus pushStatus = main(%22push%22, %22--project%22, projectDir.toString(), %22foobar%22, %22-e%22, server.endpoint());%0A%0A        assertThat(pushStatus.errUtf8(), containsString(expectMessage));%0A    %7D%0A%7D

Add ProjectResourceTest