Skip to content

Commit

Permalink
fix last test
Browse files Browse the repository at this point in the history
  • Loading branch information
clux committed Mar 29, 2021
1 parent daf8814 commit 8876644
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/crd_derive_no_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ fn main() {
#[cfg(not(feature = "schema"))]
#[test]
fn verify_bar_is_a_custom_resource() {
use k8s_openapi::Resource;
use kube::Resource;
use schemars::JsonSchema; // only for ensuring it's not implemented
use static_assertions::{assert_impl_all, assert_not_impl_any};

println!("Kind {}", Bar::KIND);
println!("Kind {}", Bar::kind(&()));
let bar = Bar::new("five", MyBar { bars: 5 });
println!("Spec: {:?}", bar.spec);
assert_impl_all!(Bar: k8s_openapi::Resource, k8s_openapi::Metadata);
assert_impl_all!(Bar: kube::Resource);
assert_not_impl_any!(MyBar: JsonSchema); // but no schemars schema implemented

let crd = Bar::crd_with_manual_schema();
Expand Down

0 comments on commit 8876644

Please sign in to comment.