shouldTriggerOnConfigMapAtomicMoveUpdates() — spring-boot Function Reference
Architecture documentation for the shouldTriggerOnConfigMapAtomicMoveUpdates() function in FileWatcherTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 89ded34b_3f76_fb02_6ff3_fe9164a7de41["shouldTriggerOnConfigMapAtomicMoveUpdates()"] 60db6896_e005_40e9_de2f_9666d994c2fd["createConfigMap()"] 89ded34b_3f76_fb02_6ff3_fe9164a7de41 -->|calls| 60db6896_e005_40e9_de2f_9666d994c2fd 81b644c4_4e4c_8206_3e48_f26a23a082c4["expectChanges()"] 89ded34b_3f76_fb02_6ff3_fe9164a7de41 -->|calls| 81b644c4_4e4c_8206_3e48_f26a23a082c4 5f7f9e48_0af3_b72a_4a17_7e03600aeae8["reset()"] 89ded34b_3f76_fb02_6ff3_fe9164a7de41 -->|calls| 5f7f9e48_0af3_b72a_4a17_7e03600aeae8 style 89ded34b_3f76_fb02_6ff3_fe9164a7de41 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ssl/FileWatcherTests.java lines 295–315
@Test
void shouldTriggerOnConfigMapAtomicMoveUpdates(@TempDir Path tempDir) throws Exception {
Path configMap1 = createConfigMap(tempDir, "keystore.jks");
Path data = Files.createSymbolicLink(tempDir.resolve("..data"), configMap1);
Files.createSymbolicLink(tempDir.resolve("keystore.jks"), data.resolve("keystore.jks"));
WaitingCallback callback = new WaitingCallback();
this.fileWatcher.watch(Set.of(tempDir.resolve("keystore.jks")), callback);
// First update
Path configMap2 = createConfigMap(tempDir, "keystore.jks");
Path dataTmp = Files.createSymbolicLink(tempDir.resolve("..data_tmp"), configMap2);
move(dataTmp, data);
FileSystemUtils.deleteRecursively(configMap1);
callback.expectChanges();
callback.reset();
// Second update
Path configMap3 = createConfigMap(tempDir, "keystore.jks");
dataTmp = Files.createSymbolicLink(tempDir.resolve("..data_tmp"), configMap3);
move(dataTmp, data);
FileSystemUtils.deleteRecursively(configMap2);
callback.expectChanges();
}
Domain
Subdomains
Calls
- createConfigMap()
- expectChanges()
- reset()
Source
Frequently Asked Questions
What does shouldTriggerOnConfigMapAtomicMoveUpdates() do?
shouldTriggerOnConfigMapAtomicMoveUpdates() is a function in the spring-boot codebase.
What does shouldTriggerOnConfigMapAtomicMoveUpdates() call?
shouldTriggerOnConfigMapAtomicMoveUpdates() calls 3 function(s): createConfigMap, expectChanges, reset.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free