mustResolvedServiceHash mirrors what the executor persists at create time: the service references are resolved before hashing. Use it to seed ObservedContainer.ConfigHash in tests involving network_mode/ipc/pid: service:X or volumes_from: serviceName.
(t *testing.T, svc types.ServiceConfig, containers map[string]Containers)
| 918 | // ObservedContainer.ConfigHash in tests involving network_mode/ipc/pid: |
| 919 | // service:X or volumes_from: serviceName. |
| 920 | func mustResolvedServiceHash(t *testing.T, svc types.ServiceConfig, containers map[string]Containers) string { |
| 921 | t.Helper() |
| 922 | h, err := serviceHashWithResolvedRefs(svc, containers) |
| 923 | assert.NilError(t, err) |
| 924 | return h |
| 925 | } |
no test coverage detected