Skip to content

Commit

Permalink
enhancement(azure_blob_sink): fix content type & integration scripts …
Browse files Browse the repository at this point in the history
…comments

Signed-off-by: ArtemTrofimushkin <artemtrofimushkin@gmail.com>
  • Loading branch information
ArtemTrofimushkin committed Jun 22, 2021
1 parent 4ce3adc commit 3e46344
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions scripts/setup_integration/azure_integration_env.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash
set -o pipefail

# aws_integration_env.sh
# azure_integration_env.sh
#
# SUMMARY
#
# Builds and pulls down the Vector AWS Integration test environment
# Builds and pulls down the Vector Azure Integration test environment

set -x

Expand Down Expand Up @@ -43,6 +43,6 @@ stop_docker() {
docker network rm vector-test-integration-azure 2>/dev/null; true
}

echo "Running $ACTION action for AWS integration tests environment"
echo "Running $ACTION action for Azure integration tests environment"

"${ACTION}"_"${CONTAINER_TOOL}"
8 changes: 4 additions & 4 deletions src/sinks/azure_blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ impl Compression {
pub fn content_type(&self) -> Option<&'static str> {
match self {
Self::None => Some("text/plain"),
Self::Gzip(_) => Some("application/octet-stream"),
Self::Gzip(_) => Some("application/gzip"),
}
}
}
Expand Down Expand Up @@ -471,7 +471,7 @@ mod tests {
assert_eq!(request.container_name, "logs".to_string());
assert_eq!(request.blob_name, "blob.log.gz".to_string());
assert_eq!(request.content_encoding, Some("gzip"));
assert_eq!(request.content_type.unwrap(), "application/octet-stream");
assert_eq!(request.content_type.unwrap(), "application/gzip");
}

#[test]
Expand Down Expand Up @@ -633,7 +633,7 @@ mod integration_tests {
let (blob, blob_lines) = config.get_blob(blobs[0].clone()).await;
assert_eq!(
blob.properties.content_type,
String::from("application/octet-stream")
String::from("application/gzip")
);
assert_eq!(lines, blob_lines);
}
Expand Down Expand Up @@ -662,7 +662,7 @@ mod integration_tests {
let (blob, blob_lines) = config.get_blob(blobs[0].clone()).await;
assert_eq!(
blob.properties.content_type,
String::from("application/octet-stream")
String::from("application/gzip")
);
let expected = events
.iter()
Expand Down

0 comments on commit 3e46344

Please sign in to comment.