Unverified Commit 24fdd042 authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Sensitive trait (#229)

* Add support for the Sensitive Trait

* Add kms integration test for sensitive trait

* Add additional test

* Always generate a custom debug impl

This actually causes a reduction in llvm-lines & apparently can improve compile performance. It also simplifies the code.
parent c7fba4d0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -43,3 +43,6 @@ gradle-app.setting

# MacOS
.DS_Store

# Rust build artifacts
target/
+5 −0
Original line number Diff line number Diff line
@@ -105,6 +105,11 @@ task("relocateServices") {
                from("$buildDir/smithyprojections/sdk/${it.module}/rust-codegen")
                into(sdkOutputDir.resolve(it.module))
            }

            copy {
                from(projectDir.resolve("integration-tests/${it.module}/tests"))
                into(sdkOutputDir.resolve(it.module).resolve("tests"))
            }
        }
    }
    outputs.upToDateWhen { false }
+2 −0
Original line number Diff line number Diff line
Cargo.lock
target/
+8 −0
Original line number Diff line number Diff line
# Handwritten Integration Test Root

This folder contains hand-written integration tests that are specific to individual services. In order for your test to be merged into the final artifact:

- The crate name must match the generated crate name, eg. `kms`, `dynamodb`
- Your test must be placed into the `tests` folder. **Everything else in your test crate is ignored.**

The contents of the `test` folder will be combined with codegenerated integration tests & inserted into the `tests` folder of the final generated service crate.
+11 −0
Original line number Diff line number Diff line
# This Cargo.toml is unused in generated code. It exists solely to enable these tests to compile in-situ
[package]
name = "kms-tests"
version = "0.1.0"
authors = ["Russell Cohen <rcoh@amazon.com>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
kms = { path = "../../build/aws-sdk/kms" }
Loading