Class TestAttachmentZipServlet
java.lang.Object
com.atlassian.jira.functest.framework.BaseJiraFuncTest
com.atlassian.jira.webtests.ztests.attachment.TestAttachmentZipServlet
-
Field Summary
Modifier and TypeFieldDescriptionorg.junit.rules.TestRule
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.atlassian.jira.functest.framework.BaseJiraFuncTest
assertions, backdoor, environmentData, initClass, navigation, tester, testRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
Methods inherited from class com.atlassian.jira.functest.framework.BaseJiraFuncTest
getAssertions, getBackdoor, getEnvironmentData, getTester
-
Field Details
-
ID_OF_ISSUE_WITH_MANY_ATTACHMENTS
public static final int ID_OF_ISSUE_WITH_MANY_ATTACHMENTS- See Also:
-
ID_OF_ISSUE_WITH_ZIP_ARCHIVE_ATTACHMENT
public static final int ID_OF_ISSUE_WITH_ZIP_ARCHIVE_ATTACHMENT- See Also:
-
XML_ATTACHMENT_ID
public static final int XML_ATTACHMENT_ID- See Also:
-
ZIP_ATTACHMENT_ID
public static final int ZIP_ATTACHMENT_ID- See Also:
-
PNG_ATTACHMENT_ID
public static final int PNG_ATTACHMENT_ID- See Also:
-
JPEG_ATTACHMENT_ID
public static final int JPEG_ATTACHMENT_ID- See Also:
-
copyAttachmentsRule
public org.junit.rules.TestRule copyAttachmentsRule
-
-
Constructor Details
-
TestAttachmentZipServlet
public TestAttachmentZipServlet()
-
-
Method Details
-
setUpTest
- Throws:
URISyntaxException
-
testDownloadAllAttachmentsOfIssueAsZip
- Throws:
Exception
-
testCanDownloadOneEntryFromZip
- Throws:
Exception
-
testShouldHaveAppropriateHeaderAccordingToFileType
public void testShouldHaveAppropriateHeaderAccordingToFileType() throws IOException, URISyntaxException- Throws:
IOException
URISyntaxException
-
testShouldHaveContentSecurityPolicySandbox
- Throws:
IOException
URISyntaxException
-
testShouldNotAllowToUnzipFileBiggerThanMaxAttachmentProperty
- Throws:
Exception
-
testShouldNotAllowToUnzipAttachmentIfUserDoesntHaveAccessToIssueWhenProvidingThatIssue
public void testShouldNotAllowToUnzipAttachmentIfUserDoesntHaveAccessToIssueWhenProvidingThatIssue() throws URISyntaxException, IOException- Throws:
URISyntaxException
IOException
-
testShouldNotAllowToUnzipAttachmentIfUserDoesntHaveAccessToIssueWhenProvidingAnotherIssue
public void testShouldNotAllowToUnzipAttachmentIfUserDoesntHaveAccessToIssueWhenProvidingAnotherIssue() throws URISyntaxException, IOException- Throws:
URISyntaxException
IOException
-