make mock transport framework work
This commit is contained in:
Родитель
7873afa11d
Коммит
b9e9f28ae7
|
@ -46,7 +46,7 @@ chrono = "*"
|
|||
oauth2 = "*"
|
||||
|
||||
[features]
|
||||
default = ["arrow", "mock_transport_framework"]
|
||||
default = ["arrow"]
|
||||
mock_transport_framework = ["azure_core/mock_transport_framework"]
|
||||
#into_future = [] TODO - properly turn it on
|
||||
test_e2e = []
|
||||
|
|
|
@ -110,7 +110,7 @@ impl async_convert::TryFrom<HttpResponse> for KustoResponseDataSetV1 {
|
|||
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
||||
#[serde(rename_all = "PascalCase")]
|
||||
pub struct KustoResponseDataSetV1 {
|
||||
tables: Vec<TableV1>,
|
||||
pub tables: Vec<TableV1>,
|
||||
}
|
||||
|
||||
impl KustoResponseDataSetV1 {
|
||||
|
@ -132,7 +132,7 @@ pub struct ColumnV1 {
|
|||
pub struct TableV1 {
|
||||
pub table_name: String,
|
||||
pub columns: Vec<ColumnV1>,
|
||||
pub rows: serde_json::Value,
|
||||
pub rows: Vec<Vec<serde_json::Value>>,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
|
@ -1,38 +1,49 @@
|
|||
#![cfg(feature = "mock_transport_framework")]
|
||||
use dotenv::dotenv;
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
mod setup;
|
||||
|
||||
#[tokio::test]
|
||||
#[ignore]
|
||||
async fn create_query_delete_table() {
|
||||
dotenv().ok();
|
||||
|
||||
let cargo_root = std::env::var("CARGO_MANIFEST_DIR").expect("Set by cargo");
|
||||
let kql_root = Path::new(&cargo_root).join("tests/inputs/e2e");
|
||||
|
||||
let (client, database) = setup::create_kusto_client("data_create_query_delete_table")
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let filename = kql_root.join("01_prepare_table.kql");
|
||||
let query = fs::read_to_string(filename).expect("Something went wrong reading the file");
|
||||
let query = ".set KustoRsTest <| let text=\"Hello, World!\"; print str=text";
|
||||
let response = client
|
||||
.execute_command(&database, query)
|
||||
.into_future()
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
println!("{:?}", response);
|
||||
assert_eq!(response.table_count(), 1);
|
||||
|
||||
let filename = kql_root.join("02_drop_table.kql");
|
||||
let query = fs::read_to_string(filename).expect("Something went wrong reading the file");
|
||||
let query = ".show tables | where TableName == \"KustoRsTest\"";
|
||||
let response = client
|
||||
.execute_command(&database, query)
|
||||
.into_future()
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
println!("{:?}", response)
|
||||
assert_eq!(response.table_count(), 4);
|
||||
|
||||
let query = "KustoRsTest | take 1";
|
||||
let response = client
|
||||
.execute_query(&database, query)
|
||||
.into_future()
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let results = response.into_primary_results().collect::<Vec<_>>();
|
||||
assert_eq!(results[0].rows.len(), 1);
|
||||
|
||||
let query = ".drop table KustoRsTest | where TableName == \"KustoRsTest\"";
|
||||
let response = client
|
||||
.execute_command(&database, query)
|
||||
.into_future()
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(response.tables[0].rows.len(), 0)
|
||||
}
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
.set KustoRsTest <|
|
||||
let text="Hello, World!";
|
||||
print str=text
|
|
@ -1 +0,0 @@
|
|||
.drop table KustoRsTest
|
|
@ -46,7 +46,8 @@ pub async fn create_kusto_client(
|
|||
let database = (std::env::var(azure_core::mock::TESTING_MODE_KEY).as_deref()
|
||||
== Ok(azure_core::mock::TESTING_MODE_RECORD))
|
||||
.then(get_database)
|
||||
.unwrap_or_else(String::new);
|
||||
// TODO This name is hardcoded in CI/CD - this this will only work until a new run is recorded
|
||||
.unwrap_or_else(|| String::from("ctna"));
|
||||
|
||||
let options = KustoClientOptions::new_with_transaction_name(transaction_name.to_string());
|
||||
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
"accept": "application/json",
|
||||
"accept-encoding": "gzip",
|
||||
"authorization": "<<STRIPPED>>",
|
||||
"content-length": "86",
|
||||
"content-length": "84",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"user-agent": "azsdk-rust-azure-kusto-data/0.1.0 (1.59.0; linux; x86_64)",
|
||||
"x-ms-client-version": "Kusto.Rust.Client:0.1.0",
|
||||
"x-ms-version": "2019-02-13"
|
||||
},
|
||||
"body": "eyJkYiI6ImN0bmEiLCJjc2wiOiIuc2V0IEt1c3RvUnNUZXN0IDx8XG5sZXQgdGV4dD1cIkhlbGxvLCBXb3JsZCFcIjtcbnByaW50IHN0cj10ZXh0In0="
|
||||
"body": "eyJkYiI6ImN0bmEiLCJjc2wiOiIuc2V0IEt1c3RvUnNUZXN0IDx8IGxldCB0ZXh0PVwiSGVsbG8sIFdvcmxkIVwiOyBwcmludCBzdHI9dGV4dCJ9"
|
||||
}
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
"status": 200,
|
||||
"headers": {
|
||||
"content-type": "application/json; charset=UTF-8",
|
||||
"date": "Sat, 23 Apr 2022 23:01:55 GMT",
|
||||
"date": "Sun, 24 Apr 2022 07:43:37 GMT",
|
||||
"server": "Microsoft-HTTPAPI/2.0",
|
||||
"strict-transport-security": "max-age=15724800; includeSubDomains",
|
||||
"transfer-encoding": "chunked",
|
||||
"vary": "Accept-Encoding",
|
||||
"x-ms-activity-id": "8ed01694-6c7b-48a9-a38b-d31aace619b0",
|
||||
"x-ms-client-request-id": "unspecified;43c0cb94-5281-4ccf-89d5-98fcbb8d2214"
|
||||
"x-ms-activity-id": "4a35efa7-62ff-4a20-a0fd-378deec9f61b",
|
||||
"x-ms-client-request-id": "unspecified;7a0e24d7-6932-4a8e-988d-9c118ee0df83"
|
||||
},
|
||||
"body": "eyJUYWJsZXMiOlt7IlRhYmxlTmFtZSI6IlRhYmxlXzAiLCJDb2x1bW5zIjpbeyJDb2x1bW5OYW1lIjoiRXh0ZW50SWQiLCJEYXRhVHlwZSI6Ikd1aWQiLCJDb2x1bW5UeXBlIjoiZ3VpZCJ9LHs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XBlIjoiRG91YmxlIiwiQ29sdW1uVHlwZSI6InJlYWwifSx7IkNvbHVtbk5hbWUiOiJSb3dDb3VudCIsIkRhdGFUeXBlIjoiSW50NjQiLCJDb2x1bW5UeXBlIjoibG9uZyJ9XSwiUm93cyI6W1siNWY2OTUxZDctZDZlZS00YjgzLWI4MjQtNzk0OTMzNDcyMzg1IiwyMS4wLDMzNS4wLDEyOC4wLDIwNy4wLDFdXX1dfQ=="
|
||||
}
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
"accept": "application/json",
|
||||
"accept-encoding": "gzip",
|
||||
"authorization": "<<STRIPPED>>",
|
||||
"content-length": "45",
|
||||
"content-length": "71",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"user-agent": "azsdk-rust-azure-kusto-data/0.1.0 (1.59.0; linux; x86_64)",
|
||||
"x-ms-client-version": "Kusto.Rust.Client:0.1.0",
|
||||
"x-ms-version": "2019-02-13"
|
||||
},
|
||||
"body": "eyJkYiI6ImN0bmEiLCJjc2wiOiIuZHJvcCB0YWJsZSBLdXN0b1JzVGVzdCJ9"
|
||||
"body": "eyJkYiI6ImN0bmEiLCJjc2wiOiIuc2hvdyB0YWJsZXMgfCB3aGVyZSBUYWJsZU5hbWUgPT0gXCJLdXN0b1JzVGVzdFwiIn0="
|
||||
}
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
"status": 200,
|
||||
"headers": {
|
||||
"content-type": "application/json; charset=UTF-8",
|
||||
"date": "Sat, 23 Apr 2022 23:01:55 GMT",
|
||||
"date": "Sun, 24 Apr 2022 07:43:37 GMT",
|
||||
"server": "Microsoft-HTTPAPI/2.0",
|
||||
"strict-transport-security": "max-age=15724800; includeSubDomains",
|
||||
"transfer-encoding": "chunked",
|
||||
"vary": "Accept-Encoding",
|
||||
"x-ms-activity-id": "3fa85740-2a34-4fbb-b048-defd4483a2b5",
|
||||
"x-ms-client-request-id": "unspecified;c0407779-644b-49b2-a8ff-37ab1c327f06"
|
||||
"x-ms-activ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
||||
}
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"uri": "/v2/rest/query",
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"accept": "application/json",
|
||||
"accept-encoding": "gzip",
|
||||
"authorization": "<<STRIPPED>>",
|
||||
"content-length": "42",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"user-agent": "azsdk-rust-azure-kusto-data/0.1.0 (1.59.0; linux; x86_64)",
|
||||
"x-ms-client-version": "Kusto.Rust.Client:0.1.0",
|
||||
"x-ms-version": "2019-02-13"
|
||||
},
|
||||
"body": "eyJkYiI6ImN0bmEiLCJjc2wiOiJLdXN0b1JzVGVzdCB8IHRha2UgMSJ9"
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"content-type": "application/json; charset=UTF-8",
|
||||
"date": "Sun, 24 Apr 2022 07:43:37 GMT",
|
||||
"server": "Microsoft-HTTPAPI/2.0",
|
||||
"strict-transport-security": "max-age=15724800; includeSubDomains",
|
||||
"transfer-encoding": "chunked",
|
||||
"vary": "Accept-Encoding",
|
||||
"x-ms-activity-id": "eeb7ad5b-699a-48cc-a714-152e2ea6f7ed",
|
||||
"x-ms-client-request-id": "unspecified;96536d13-544b-4e63-859d-122b2976265c"
|
||||
},
|
||||
"body": "W3siRnJhbWVUeXBlIjoiRGF0YVNldEhlYWRlciIsIklzUHJvZ3Jlc3NpdmUiOmZhbHNlLCJWZXJzaW9uIjoidjIuMCJ9LHsiRnJhbWVUeXBlIjoiRGF0YVRhYmxlIiwiVGFibGVJZCI6MCwiVGFibGVLaW5kIjoiUXVlcnlQcm9wZXJ0aWVzIiwiVGFibGVOYW1lIjoiQEV4dGVuZGVkUHJvcGVydGllcyIsIkNvbHVtbnMiOlt7IkNvbHVtbk5hbWUiOiJUYWJsZUlkIiwiQ29sdW1uVHlwZSI6ImludCJ9LHsiQ29sdW1uTmFtZSI6IktleSIsIkNvbHVtblR5cGUiOiJz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2NDMsXCJjcm9zc19jbHVzdGVyX3RvdGFsX2J5dGVzXCI6MH19LFwiaW5wdXRfZGF0YXNldF9zdGF0aXN0aWNzXCI6e1wiZXh0ZW50c1wiOntcInRvdGFsXCI6MSxcInNjYW5uZWRcIjoxLFwic2Nhbm5lZF9taW5fZGF0ZXRpbWVcIjpcIjIwMjItMDQtMjRUMDc6NDM6MzcuMDg0OTgxN1pcIixcInNjYW5uZWRfbWF4X2RhdGV0aW1lXCI6XCIyMDIyLTA0LTI0VDA3OjQzOjM3LjA4NDk4MTdaXCJ9LFwicm93c1wiOntcInRvdGFsXCI6MSxcInNjYW5uZWRcIjoxfSxcInJvd3N0b3Jlc1wiOntcInNjYW5uZWRfcm93c1wiOjAsXCJzY2FubmVkX3ZhbHVlc19zaXplXCI6MH0sXCJzaGFyZHNcIjp7XCJxdWVyaWVzX2dlbmVyaWNcIjowLFwicXVlcmllc19zcGVjaWFsaXplZFwiOjB9fSxcImRhdGFzZXRfc3RhdGlzdGljc1wiOlt7XCJ0YWJsZV9yb3dfY291bnRcIjoxLFwidGFibGVfc2l6ZVwiOjR9XX0iXV19LHsiRnJhbWVUeXBlIjoiRGF0YVNldENvbXBsZXRpb24iLCJIYXNFcnJvcnMiOmZhbHNlLCJDYW5jZWxsZWQiOmZhbHNlfV0="
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"uri": "/v1/rest/mgmt",
|
||||
"method": "POST",
|
||||
"headers": {
|
||||
"accept": "application/json",
|
||||
"accept-encoding": "gzip",
|
||||
"authorization": "<<STRIPPED>>",
|
||||
"content-length": "82",
|
||||
"content-type": "application/json; charset=utf-8",
|
||||
"user-agent": "azsdk-rust-azure-kusto-data/0.1.0 (1.59.0; linux; x86_64)",
|
||||
"x-ms-client-version": "Kusto.Rust.Client:0.1.0",
|
||||
"x-ms-version": "2019-02-13"
|
||||
},
|
||||
"body": "eyJkYiI6ImN0bmEiLCJjc2wiOiIuZHJvcCB0YWJsZSBLdXN0b1JzVGVzdCB8IHdoZXJlIFRhYmxlTmFtZSA9PSBcIkt1c3RvUnNUZXN0XCIifQ=="
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"status": 200,
|
||||
"headers": {
|
||||
"content-type": "application/json; charset=UTF-8",
|
||||
"date": "Sun, 24 Apr 2022 07:43:38 GMT",
|
||||
"server": "Microsoft-HTTPAPI/2.0",
|
||||
"strict-transport-security": "max-age=15724800; includeSubDomains",
|
||||
"transfer-encoding": "chunked",
|
||||
"vary": "Accept-Encoding",
|
||||
"x-ms-activity-id": "2fc58e57-6f86-47d0-972a-aca9e8ac9cb1",
|
||||
"x-ms-client-request-id": "unspecified;b31308bb-ca59-422a-a8c7-91d5265a00a1"
|
||||
},
|
||||
"body": "eyJUYWJsZXMiOlt7IlRhYmxlTmFtZSI6IlRhYmxlXzAiLCJDb2x1bW5zIjpbeyJDb2x1bW5OYW1lIjoiVGFibGVOYW1lIiwiRGF0YVR5cGUiOiJTdHJpbmciLCJDb2x1bW5UeXBlIjoic3RyaW5nIn0seyJDb2x1bW5OYW1lIjoiRGF0YWJhc2VOYW1lIiwiRGF0YVR5cGUiOiJTdHJpbmciLCJDb2x1bW5UeXBlIjoic3RyaW5nIn0seyJDb2x1bW5OYW1lIjoiRm9sZGVyIiwiRGF0YVR5cGUiOiJTdHJpbmciLCJDb2x1bW5UeXBlIjoic3RyaW5nIn0seyJDb2x1bW5OYW1lIjoiRG9jU3RyaW5nIiwiRGF0YVR5cGUiOiJTdHJpbmciLCJDb2x1bW5UeXBlIjoic3RyaW5nIn1dLCJSb3dzIjpbXX0seyJUYWJsZU5hbWUiOiJUYWJsZV8xIiwiQ29sdW1ucyI6W3siQ29sdW1uTmFtZSI6IlZhbHVlIiwiRGF0YVR5cGUiOiJTdHJpbmciLCJDb2x1bW5UeXBlIjoic3RyaW5nIn1dLCJSb3dzIjpbWyJ7XCJWaXN1YWxpemF0aW9uXCI6bnVsbCxcIlRpdGxlXCI6bnVsbCxcIlhDb2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