GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(locality): exercise actual publisher and main hook with dual-sta… · arencloud/unf@807a130

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .containerignore
  • bins/unf-agent/src
    • locality_publisher.rs
    • main.rs
    • tests
      • locality_delivery.rs
      • locality_delivery
        • sockets.rs
  • docs
    • adr
      • 0437-real-publisher-main-hook-socket-gate.md
    • development
      • phase9-attested-encryption-fabric-plan.md
      • phase9-required-locality-plan.md
    • project-status.md
  • hack
    • verify-locality-incarnation-gate.sh
    • verify-main-locality-composition.sh
  • images
    • KernelMainLocalityTestContainerfile
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.containerignore‎

Copy file name to clipboardExpand all lines: .containerignore
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ebpf/unf-ebpf-tc/target/
1515
docs/
1616
hack/*
1717
!hack/verify-main-locality-bridge.sh
18+
!hack/verify-main-locality-composition.sh
1819
!hack/verify-cni-workload-ownership.sh
1920
!hack/verify-local-delivery-device-lifetime.sh
2021
!hack/local-delivery-device-gate.jq
Collapse file

‎bins/unf-agent/src/locality_publisher.rs‎

Copy file name to clipboardExpand all lines: bins/unf-agent/src/locality_publisher.rs
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ impl OriginalCut {
5858
}
5959

6060
impl BankPublisher {
61+
#[cfg(test)]
62+
pub(super) fn selected_for_test(&self, context: &EncryptionLocalityContext) -> Result<bool> {
63+
match (&self.active, &self.admission) {
64+
(Some((_, bank)), Some(admission)) => admission.is_published(bank, context),
65+
_ => Ok(false),
66+
}
67+
}
68+
6169
pub(super) fn clear(&mut self) -> Result<()> {
6270
// Retain active ownership if withdrawal fails; the runtime health
6371
// supervisor treats that uncertain kernel fence as fatal.
Collapse file

‎bins/unf-agent/src/main.rs‎

Copy file name to clipboardExpand all lines: bins/unf-agent/src/main.rs
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20143,6 +20143,7 @@ fn init_tracing() {
2014320143
#[cfg(test)]
2014420144
mod tests {
2014520145
mod key_rotation;
20146+
mod locality_delivery;
2014620147
mod service_reply;
2014720148

2014820149
use super::*;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.