File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : org.containers.bootc/v1alpha1
2+ kind : BootcHost
3+ metadata :
4+ name : host
5+ spec :
6+ image :
7+ image : quay.io/example/someimage:latest
8+ transport : registry
9+ signature : insecure
10+ status :
11+ booted :
12+ image :
13+ image :
14+ image : quay.io/example/someimage:latest
15+ transport : registry
16+ architecture : arm64
17+ version : nightly
18+ timestamp : 2023-09-30T19:22:16Z
19+ imageDigest : sha256:736b359467c9437c1ac915acaae952aad854e07eb4a16a94999a48af08c83c34
20+ incompatible : false
21+ pinned : false
22+ downloadOnly : false
23+ ostree :
24+ checksum : 26836632adf6228d64ef07a26fd3efaf177104efd1f341a2cf7909a3e4e2c72c
25+ deploySerial : 0
26+ stateroot : default
27+ rollback : null
28+ isContainer : false
29+ usrOverlay :
30+ accessMode : readWrite
31+ persistence : transient
Original file line number Diff line number Diff line change @@ -1197,4 +1197,18 @@ mod tests {
11971197 " } ;
11981198 similar_asserts:: assert_eq!( output, expected) ;
11991199 }
1200+
1201+ #[ test]
1202+ fn test_human_readable_booted_usroverlay ( ) {
1203+ let w =
1204+ human_status_from_spec_fixture ( include_str ! ( "fixtures/spec-booted-usroverlay.yaml" ) )
1205+ . unwrap ( ) ;
1206+ let expected = indoc:: indoc! { r"
1207+ ● Booted image: quay.io/example/someimage:latest
1208+ Digest: sha256:736b359467c9437c1ac915acaae952aad854e07eb4a16a94999a48af08c83c34 (arm64)
1209+ Version: nightly (2023-09-30T19:22:16Z)
1210+ /usr overlay: transient, read/write
1211+ " } ;
1212+ similar_asserts:: assert_eq!( w, expected) ;
1213+ }
12001214}
You can’t perform that action at this time.
0 commit comments