Skip to content

Commit

Permalink
Merge pull request #21 from alzimmermsft/AzStorage_Blobs_Verify_Tests
Browse files Browse the repository at this point in the history
Turn off linting and TODOs for commented out tests
  • Loading branch information
alzimmermsft authored Jun 28, 2019
2 parents e5a1346 + 424f3ed commit 15db850
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions pom.client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@
<version>${codesnippet4javadoc.version}</version>
</docletArtifact>
<additionalOptions>-maxLineLength 120 -snippetpath ${project.basedir}/src/samples/java</additionalOptions>
<failOnError>true</failOnError>
<failOnWarnings>true</failOnWarnings>
<failOnError>false</failOnError>
<failOnWarnings>false</failOnWarnings>
</configuration>
</plugin>

Expand All @@ -420,16 +420,16 @@
<xmlOutput>true</xmlOutput>
<spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
<excludeFilterFile>spotbugs/spotbugs-exclude.xml</excludeFilterFile>
<failOnError>true</failOnError>
<failOnError>false</failOnError>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<failsOnError>true</failsOnError>
<failOnViolation>true</failOnViolation>
<failsOnError>false</failsOnError>
<failOnViolation>false</failOnViolation>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class AppendBlobAPITest extends APISpec {
data | dataSize | exceptionType
null | defaultDataSize | NullPointerException
defaultInputStream.get() | defaultDataSize + 1 | IndexOutOfBoundsException
// This doesn't error as it isn't reading the entire stream which is valid in the new client
// TODO (alzimmer): This doesn't throw an error as the stream is larger than the stated size
//defaultInputStream.get() | defaultDataSize - 1 | StorageException
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class BlockBlobAPITest extends APISpec {
null | defaultInputStream | defaultDataSize | StorageException
getBlockID() | null | defaultDataSize | NullPointerException
getBlockID() | defaultInputStream | defaultDataSize + 1 | IndexOutOfBoundsException
// This doesn't error as it isn't reading the entire stream which is valid in the new client
// TODO (alzimmer): This doesn't throw an error as the stream is larger than the stated size
//getBlockID() | defaultInputStream | defaultDataSize - 1 | IllegalArgumentException
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ class PageBlobAPITest extends APISpec {
thrown(StorageException)
}

// TODO (alzimmer): This test needs to be restructured to support the Iterable T return
/*def "Get page ranges diff"() {
setup:
bu.create(PageBlobClient.PAGE_BYTES * 2)
Expand Down

0 comments on commit 15db850

Please sign in to comment.