Skip to content

Commit

Permalink
update dependencies, bump to 0.7.0
Browse files Browse the repository at this point in the history
Signed-off-by: stevelr <steve@cosmonic.com>
  • Loading branch information
stevelr committed Feb 28, 2023
1 parent 1536328 commit a1f2733
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 5 additions & 6 deletions wasmcloud-test-util/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasmcloud-test-util"
version = "0.6.5"
version = "0.7.0"
edition = "2021"
authors = [ "wasmcloud Team" ]
license = "Apache-2.0"
Expand All @@ -10,21 +10,20 @@ repository = "https://github.com/wasmcloud/wasmcloud-test"
readme = "README.md"

[dependencies]
smithy-bindgen = { git="https://github.com/wasmcloud/weld", branch="feat/smithy-bindgen" }
wasmbus-rpc = { git="https://github.com/wasmcloud/weld", rev="4faec462d1dd41efbfe95c9e2d2061a9a40f2fcc", features = [ "otel" ] }
smithy-bindgen = "0.1.0"
wasmbus-rpc = { version = "0.12", features = [ "otel" ] }
serde_bytes = "0.11"
regex = "1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
anyhow = "1.0"
async-trait = "0.1"
async-nats = "0.23.0"
futures = "0.3"
base64 = "0.13"
base64 = "0.21"
log = "0.4"
nkeys = "0.2.0"
serde = { version = "1.0", features=["derive"]}
serde_json = "1.0"
termcolor = "1.1"
tokio = { version = "1", features = ["full"]}
toml = "0.5"
toml = "0.7"
6 changes: 4 additions & 2 deletions wasmcloud-test-util/src/provider_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use crate::testing::TestResult;
use anyhow::anyhow;
use async_trait::async_trait;
use base64::{engine::general_purpose::STANDARD_NO_PAD, engine::Engine};
use futures::future::BoxFuture;
use nkeys::{KeyPair, KeyPairType};
use serde::Serialize;
Expand All @@ -20,6 +21,7 @@ use std::{
use tokio::sync::OnceCell;
use toml::value::Value as TomlValue;
use wasmbus_rpc::{
async_nats,
common::{Context, Message, SendOpts, Transport},
core::{HealthCheckRequest, HealthCheckResponse, HostData, LinkDefinition, WasmCloudEntity},
error::{RpcError, RpcResult},
Expand Down Expand Up @@ -59,7 +61,7 @@ fn to_value_map(data: &toml::map::Map<String, TomlValue>) -> RpcResult<SimpleVal
// copy the entire map as base64-encoded json with value "config_b64"
let json = serde_json::to_string(data)
.map_err(|e| RpcError::Ser(format!("invalid 'values' map: {}", e)))?;
let b64 = base64::encode_config(json, base64::STANDARD_NO_PAD);
let b64 = STANDARD_NO_PAD.encode(json);
map.insert("config_b64".to_string(), b64);
Ok(map)
}
Expand Down Expand Up @@ -352,7 +354,7 @@ pub async fn start_provider_test(
host_data.structured_logging = false;

let buf = serde_json::to_vec(&host_data).map_err(|e| RpcError::Ser(e.to_string()))?;
let mut encoded = base64::encode_config(&buf, base64::STANDARD_NO_PAD);
let mut encoded = STANDARD_NO_PAD.encode(&buf);
encoded.push_str("\r\n");

// provider's stdout is piped through our stdout
Expand Down

0 comments on commit a1f2733

Please sign in to comment.