Skip to content

Commit adc07c2

Browse files
authored
start adding basic integration tests (#3)
Add some simple integration tests for lockstep APIs (mostly generated by Claude and cleaned up by me). In the future, we'll add integration tests for versioned APIs as well.
1 parent 84ef441 commit adc07c2

File tree

9 files changed

+649
-3
lines changed

9 files changed

+649
-3
lines changed

Cargo.lock

Lines changed: 133 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ anyhow = "1.0.99"
1919
assert_matches = "1.5.0"
2020
atomicwrites = "0.4.4"
2121
camino = "1.2.0"
22+
camino-tempfile = "1.4.1"
23+
camino-tempfile-ext = "0.3.3"
24+
chrono = { version = "0.4.38", features = ["serde"] }
2225
clap = "4.5"
2326
debug-ignore = "1.0.5"
2427
drift = "0.1.0"

crates/dropshot-api-manager/src/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ pub fn display_resolution(
402402
/// The result of a check operation.
403403
///
404404
/// Returned by the `check_apis_up_to_date` function.
405-
#[derive(Clone, Copy, Debug)]
405+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
406406
pub enum CheckResult {
407407
/// The APIs are up-to-date.
408408
Success,
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[package]
2+
name = "integration-tests"
3+
version = "0.1.0"
4+
edition.workspace = true
5+
license.workspace = true
6+
repository.workspace = true
7+
rust-version.workspace = true
8+
publish = false
9+
10+
[dependencies]
11+
anyhow.workspace = true
12+
camino.workspace = true
13+
camino-tempfile.workspace = true
14+
camino-tempfile-ext.workspace = true
15+
chrono.workspace = true
16+
clap.workspace = true
17+
dropshot.workspace = true
18+
dropshot-api-manager.workspace = true
19+
dropshot-api-manager-types.workspace = true
20+
openapiv3.workspace = true
21+
schemars = { workspace = true, features = ["chrono"] }
22+
semver.workspace = true
23+
serde.workspace = true
24+
serde_json.workspace = true
25+
26+
[dev-dependencies]
27+
assert_matches.workspace = true

0 commit comments

Comments
 (0)