Skip to content

Commit 2b99ad5

Browse files
bring imports down
1 parent d223eb5 commit 2b99ad5

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

DynamoDbEncryption/runtimes/rust/examples/migration/plaintext_to_awsdbe/awsdbe/migration_step_1.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ use crate::migration::plaintext_to_awsdbe::migration_utils::{
99
verify_returned_item, ENCRYPTED_AND_SIGNED_VALUE, SIGN_ONLY_VALUE, DO_NOTHING_VALUE,
1010
};
1111
use crate::migration::plaintext_to_awsdbe::awsdbe::common::create_table_configs;
12-
// We import these packages for testing combination of migration steps
13-
use crate::migration::plaintext_to_awsdbe::plaintext::migration_step_0::migration_step_0_example;
14-
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_2::migration_step_2_example;
15-
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_3::migration_step_3_example;
16-
use crate::test_utils;
17-
use uuid::Uuid;
1812

1913
/*
2014
Migration Step 1: This is the first step in the migration process from
@@ -143,6 +137,12 @@ pub async fn migration_step_1_example(
143137

144138
#[tokio::test(flavor = "multi_thread")]
145139
async fn test_migration_step_1() -> Result<(), Box<dyn std::error::Error>> {
140+
use crate::migration::plaintext_to_awsdbe::plaintext::migration_step_0::migration_step_0_example;
141+
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_2::migration_step_2_example;
142+
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_3::migration_step_3_example;
143+
use crate::test_utils;
144+
use uuid::Uuid;
145+
146146
let kms_key_id = test_utils::TEST_KMS_KEY_ID;
147147
let table_name = test_utils::TEST_DDB_TABLE_NAME;
148148
let partition_key = Uuid::new_v4().to_string();

DynamoDbEncryption/runtimes/rust/examples/migration/plaintext_to_awsdbe/awsdbe/migration_step_2.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ use crate::migration::plaintext_to_awsdbe::migration_utils::{
99
verify_returned_item, ENCRYPTED_AND_SIGNED_VALUE, SIGN_ONLY_VALUE, DO_NOTHING_VALUE,
1010
};
1111
use crate::migration::plaintext_to_awsdbe::awsdbe::common::create_table_configs;
12-
// We import these packages for testing combination of migration steps
13-
use crate::migration::plaintext_to_awsdbe::plaintext::migration_step_0::migration_step_0_example;
14-
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_1::migration_step_1_example;
15-
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_3::migration_step_3_example;
16-
use crate::test_utils;
17-
use uuid::Uuid;
1812

1913
/*
2014
Migration Step 2: This is the second step in the migration process from
@@ -145,6 +139,12 @@ pub async fn migration_step_2_example(
145139

146140
#[tokio::test(flavor = "multi_thread")]
147141
async fn test_migration_step_2() -> Result<(), Box<dyn std::error::Error>> {
142+
use crate::migration::plaintext_to_awsdbe::plaintext::migration_step_0::migration_step_0_example;
143+
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_2::migration_step_2_example;
144+
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_3::migration_step_3_example;
145+
use crate::test_utils;
146+
use uuid::Uuid;
147+
148148
let kms_key_id = test_utils::TEST_KMS_KEY_ID;
149149
let table_name = test_utils::TEST_DDB_TABLE_NAME;
150150
let partition_key = Uuid::new_v4().to_string();

DynamoDbEncryption/runtimes/rust/examples/migration/plaintext_to_awsdbe/awsdbe/migration_step_3.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ use crate::migration::plaintext_to_awsdbe::migration_utils::{
99
verify_returned_item, ENCRYPTED_AND_SIGNED_VALUE, SIGN_ONLY_VALUE, DO_NOTHING_VALUE,
1010
};
1111
use crate::migration::plaintext_to_awsdbe::awsdbe::common::create_table_configs;
12-
// We import these packages for testing combination of migration steps
13-
use crate::migration::plaintext_to_awsdbe::plaintext::migration_step_0::migration_step_0_example;
14-
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_1::migration_step_1_example;
15-
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_2::migration_step_2_example;
16-
use crate::test_utils;
17-
use uuid::Uuid;
1812

1913
/*
2014
Migration Step 3: This is the final step in the migration process from
@@ -146,6 +140,12 @@ pub async fn migration_step_3_example(
146140

147141
#[tokio::test(flavor = "multi_thread")]
148142
async fn test_migration_step_3() -> Result<(), Box<dyn std::error::Error>> {
143+
use crate::migration::plaintext_to_awsdbe::plaintext::migration_step_0::migration_step_0_example;
144+
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_2::migration_step_2_example;
145+
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_3::migration_step_3_example;
146+
use crate::test_utils;
147+
use uuid::Uuid;
148+
149149
let kms_key_id = test_utils::TEST_KMS_KEY_ID;
150150
let table_name = test_utils::TEST_DDB_TABLE_NAME;
151151
let partition_key = Uuid::new_v4().to_string();

DynamoDbEncryption/runtimes/rust/examples/migration/plaintext_to_awsdbe/plaintext/migration_step_0.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ use std::collections::HashMap;
66
use crate::migration::plaintext_to_awsdbe::migration_utils::{
77
verify_returned_item, ENCRYPTED_AND_SIGNED_VALUE, SIGN_ONLY_VALUE, DO_NOTHING_VALUE,
88
};
9-
// We import these packages for testing combination of migration steps
10-
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_1::migration_step_1_example;
11-
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_2::migration_step_2_example;
12-
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_3::migration_step_3_example;
13-
use crate::test_utils;
14-
use uuid::Uuid;
159

1610
/*
1711
Migration Step 0: This is the pre-migration step for the
@@ -118,6 +112,12 @@ pub async fn migration_step_0_example(
118112

119113
#[tokio::test(flavor = "multi_thread")]
120114
async fn test_migration_step_0() -> Result<(), Box<dyn std::error::Error>> {
115+
use crate::migration::plaintext_to_awsdbe::plaintext::migration_step_0::migration_step_0_example;
116+
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_2::migration_step_2_example;
117+
use crate::migration::plaintext_to_awsdbe::awsdbe::migration_step_3::migration_step_3_example;
118+
use crate::test_utils;
119+
use uuid::Uuid;
120+
121121
let kms_key_id = test_utils::TEST_KMS_KEY_ID;
122122
let table_name = test_utils::TEST_DDB_TABLE_NAME;
123123
let partition_key = Uuid::new_v4().to_string();

0 commit comments

Comments
 (0)