Skip to content

Commit 055fd3d

Browse files
authored
Merge pull request #1249 from SteveL-MSFT/v3.2-p8
Update version to 3.2-preview.8
2 parents 614a7f1 + 439a5df commit 055fd3d

File tree

6 files changed

+63
-86
lines changed

6 files changed

+63
-86
lines changed

Cargo.lock

Lines changed: 14 additions & 73 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ os_info = { version = "3.11" }
151151
# dsc, dsc-lib
152152
path-absolutize = { version = "3.1" }
153153
# dsc, dsc-lib
154-
regex = { version = "1.11" }
154+
regex = { version = "1.12" }
155155
# registry, dsc-lib-registry
156156
registry = { version = "1.3" }
157157
# dsc
@@ -161,7 +161,7 @@ rt-format = { version = "0.3" }
161161
# dsc, dsc-lib, dscecho, registry, dsc-lib-registry, runcommandonset, sshdconfig
162162
rust-i18n = { version = "3.1" }
163163
# dsc, dsc-lib, dscecho, registry, dsc-lib-registry, sshdconfig, dsctest, test_group_resource
164-
schemars = { version = "1.0", features = ["preserve_order"] }
164+
schemars = { version = "1.1", features = ["preserve_order"] }
165165
# dsc, dsc-lib
166166
semver = { version = "1.0" }
167167
# dsc, dsc-lib, dscecho, dsc-lib-osinfo, process, registry, dsc-lib-registry, runcommandonset, sshdconfig, dsctest, test_group_resource
@@ -179,7 +179,7 @@ tempfile = { version = "3.23" }
179179
# dsc, dsc-lib, registry, dsc-lib-registry, sshdconfig
180180
thiserror = { version = "2.0" }
181181
# dsc, dsc-lib
182-
tokio = { version = "1.47" }
182+
tokio = { version = "1.48" }
183183
# dsc
184184
tokio-util = { version = "0.7" }
185185
# dsc, dsc-lib, registry, dsc-lib-registry, runcommandonset, sshdconfig

dsc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dsc"
3-
version = "3.2.0-preview.7"
3+
version = "3.2.0-preview.8"
44
edition = "2021"
55

66
[dependencies]

lib/dsc-lib-jsonschema/src/tests/schema_utility_extensions/mod.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,6 @@ test_cases_for_get_keyword_as_mut!(
572572
}
573573

574574
#[cfg(test)] mod get_defs_subschema_from_reference_mut {
575-
use pretty_assertions::assert_ne;
576575
use schemars::json_schema;
577576
use serde_json::json;
578577

@@ -623,13 +622,6 @@ test_cases_for_get_keyword_as_mut!(
623622
None
624623
);
625624
}
626-
/// Inverted the test - current logic fails due to a bug in [`schemars::Schema::pointer_mut()`],
627-
/// see [schemars#478].
628-
///
629-
/// This bug will be fixed when schemars merges [schemars#479] and makes a new release.
630-
///
631-
/// [schemars#478]: https://github.com/GREsau/schemars/issues/478
632-
/// [schemars#479]: https://github.com/GREsau/schemars/pull/479
633625
#[test] fn with_defs_pointer_reference() {
634626
let ref mut schema = json_schema!({
635627
"$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -647,7 +639,7 @@ test_cases_for_get_keyword_as_mut!(
647639
"title": "Foo"
648640
});
649641

650-
assert_ne!(
642+
assert_eq!(
651643
schema.get_defs_subschema_from_reference_mut("#/$defs/foo"),
652644
expected.as_object_mut()
653645
);

lib/dsc-lib/tests/integration/schemas/schema_for.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ macro_rules! test_schema_for {
2929
#[allow(non_snake_case)]
3030
#[cfg(test)] mod dsc_lib {
3131
#[cfg(test)] mod configure {
32+
#[allow(unused_must_use)]
3233
#[cfg(test)] mod config_doc {
3334
test_schema_for!(dsc_lib::configure::config_doc::SecurityContextKind);
3435
test_schema_for!(dsc_lib::configure::config_doc::Operation);
@@ -51,6 +52,7 @@ macro_rules! test_schema_for {
5152
test_schema_for!(dsc_lib::configure::config_doc::Sku);
5253
test_schema_for!(dsc_lib::configure::config_doc::Resource);
5354
}
55+
#[allow(unused_must_use)]
5456
#[cfg(test)] mod config_results {
5557
test_schema_for!(dsc_lib::configure::config_result::MessageLevel);
5658
test_schema_for!(dsc_lib::configure::config_result::ResourceMessage);
@@ -64,6 +66,7 @@ macro_rules! test_schema_for {
6466
test_schema_for!(dsc_lib::configure::config_result::ConfigurationTestResult);
6567
test_schema_for!(dsc_lib::configure::config_result::ConfigurationExportResult);
6668
}
69+
#[allow(unused_must_use)]
6770
#[cfg(test)] mod parameters {
6871
test_schema_for!(dsc_lib::configure::parameters::Input);
6972
test_schema_for!(dsc_lib::configure::parameters::SecureString);
@@ -72,17 +75,20 @@ macro_rules! test_schema_for {
7275
}
7376
}
7477
#[cfg(test)] mod discovery {
78+
#[allow(unused_must_use)]
7579
#[cfg(test)] mod command_discovery {
7680
test_schema_for!(dsc_lib::discovery::command_discovery::ImportedManifest);
7781
}
7882
}
7983

8084
#[cfg(test)] mod dscresources {
85+
#[allow(unused_must_use)]
8186
#[cfg(test)] mod dscresource {
8287
test_schema_for!(dsc_lib::dscresources::dscresource::DscResource);
8388
test_schema_for!(dsc_lib::dscresources::dscresource::Capability);
8489
test_schema_for!(dsc_lib::dscresources::dscresource::ImplementedAs);
8590
}
91+
#[allow(unused_must_use)]
8692
#[cfg(test)] mod invoke_result {
8793
test_schema_for!(dsc_lib::dscresources::invoke_result::GetResult);
8894
test_schema_for!(dsc_lib::dscresources::invoke_result::ResourceGetResponse);
@@ -94,6 +100,7 @@ macro_rules! test_schema_for {
94100
test_schema_for!(dsc_lib::dscresources::invoke_result::ExportResult);
95101
test_schema_for!(dsc_lib::dscresources::invoke_result::ResolveResult);
96102
}
103+
#[allow(unused_must_use)]
97104
#[cfg(test)] mod resource_manifest {
98105
test_schema_for!(dsc_lib::dscresources::resource_manifest::Kind);
99106
test_schema_for!(dsc_lib::dscresources::resource_manifest::ArgKind);
@@ -116,21 +123,26 @@ macro_rules! test_schema_for {
116123
}
117124

118125
#[cfg(test)] mod extensions {
126+
#[allow(unused_must_use)]
119127
#[cfg(test)] mod discover {
120128
test_schema_for!(dsc_lib::extensions::discover::DiscoverMethod);
121129
test_schema_for!(dsc_lib::extensions::discover::DiscoverResult);
122130
}
131+
#[allow(unused_must_use)]
123132
#[cfg(test)] mod dscextension {
124133
test_schema_for!(dsc_lib::extensions::dscextension::DscExtension);
125134
test_schema_for!(dsc_lib::extensions::dscextension::Capability);
126135
}
136+
#[allow(unused_must_use)]
127137
#[cfg(test)] mod extension_manifest {
128138
test_schema_for!(dsc_lib::extensions::extension_manifest::ExtensionManifest);
129139
}
140+
#[allow(unused_must_use)]
130141
#[cfg(test)] mod import {
131142
test_schema_for!(dsc_lib::extensions::import::ImportMethod);
132143
test_schema_for!(dsc_lib::extensions::import::ImportArgKind);
133144
}
145+
#[allow(unused_must_use)]
134146
#[cfg(test)] mod secret {
135147
test_schema_for!(dsc_lib::extensions::secret::SecretArgKind);
136148
test_schema_for!(dsc_lib::extensions::secret::SecretMethod);

pal/Cargo.lock

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

0 commit comments

Comments
 (0)