Repository: usergrid Updated Branches: refs/heads/master fb94d6e7a -> a51ee2c2e
Added apache header to testing text. Fun fact time: The apache header adds 803 bytes unto every file. For the 251 files of apache rat checked files we use 201 KB on headers alone! Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/a51ee2c2 Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/a51ee2c2 Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/a51ee2c2 Branch: refs/heads/master Commit: a51ee2c2e114e55ddd638c2ecde11823282195f1 Parents: fb94d6e Author: George Reyes <[email protected]> Authored: Wed Jan 13 14:20:56 2016 -0800 Committer: George Reyes <[email protected]> Committed: Wed Jan 13 14:20:56 2016 -0800 ---------------------------------------------------------------------- .../rest/applications/assets/AssetResourceIT.java | 2 +- stack/rest/src/test/resources/test.txt | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/usergrid/blob/a51ee2c2/stack/rest/src/test/java/org/apache/usergrid/rest/applications/assets/AssetResourceIT.java ---------------------------------------------------------------------- diff --git a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/assets/AssetResourceIT.java b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/assets/AssetResourceIT.java index 82fc999..144893d 100644 --- a/stack/rest/src/test/java/org/apache/usergrid/rest/applications/assets/AssetResourceIT.java +++ b/stack/rest/src/test/java/org/apache/usergrid/rest/applications/assets/AssetResourceIT.java @@ -167,7 +167,7 @@ public class AssetResourceIT extends AbstractRestIT { assertEquals( assetId, entity.getUuid() ); assertNotNull(entity.get( "file" )); assertEquals( "text/plain", fileMetadata.get( AssetUtils.CONTENT_TYPE ) ); - assertEquals( 76, fileMetadata.get( AssetUtils.CONTENT_LENGTH )); + assertEquals( 879, fileMetadata.get( AssetUtils.CONTENT_LENGTH )); //now change it back to the picture asset data = IOUtils.toByteArray( this.getClass().getResourceAsStream( "/cassandra_eye.jpg" ) ); http://git-wip-us.apache.org/repos/asf/usergrid/blob/a51ee2c2/stack/rest/src/test/resources/test.txt ---------------------------------------------------------------------- diff --git a/stack/rest/src/test/resources/test.txt b/stack/rest/src/test/resources/test.txt index 79a34fc..3b06c3e 100644 --- a/stack/rest/src/test/resources/test.txt +++ b/stack/rest/src/test/resources/test.txt @@ -1 +1,17 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ random text to test assets and how they handle differing file formats here.
