Skip to content

Commit 86abff6

Browse files
committed
Preserve legacy Redis APIs and integrate current test packages
2 parents 68d2801 + 3abb6e4 commit 86abff6

47 files changed

Lines changed: 1018 additions & 510 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.mex/context/http.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ mex:
1313

1414
# HTTP transport boundary
1515

16-
The HTTP transport uses pinned TLS and enrollment; certificate binding authenticates peers, while the envelopes are strictly parsed but not independently signed. Proxy-to-backend outgoing messages are durably queued, and both sides have durable inbound replay fences. Backend-to-proxy outgoing messages remain in memory with a bounded shutdown flush. A network response, queue write, and application acknowledgement are different events. A valid nonempty queue directory reports pending work; invalid or inaccessible queue structure throws `IOException`, which callers must handle conservatively. A restart-visible `RUNNING` callback is neither replayed nor acknowledged because its side effects are uncertain. Source: `SimpleAPI/src/main/java/com/bencodez/simpleapi/servercomm/http/`, `SimpleAPI/src/test/java/com/bencodez/simpleapi/servercomm/http/`.
16+
The HTTP transport uses pinned TLS and enrollment; certificate binding authenticates peers, while the envelopes are strictly parsed but not independently signed. Proxy-to-backend outgoing messages are durably queued, and both sides have durable inbound replay fences. Backend-to-proxy outgoing messages remain in memory with a bounded shutdown flush. A network response, queue write, and application acknowledgement are different events. A valid nonempty queue directory reports pending work; invalid or inaccessible queue structure throws `IOException`, which callers must handle conservatively. A restart-visible `RUNNING` callback is neither replayed nor acknowledged because its side effects are uncertain. Source: `SimpleAPI/src/main/java/com/bencodez/simpleapi/servercomm/http/`, `SimpleAPI/src/test/java/com/bencodez/simpleapi/tests/servercomm/http/`.
1717

1818
Transport work must keep size bounds, shutdown behavior, and authentication checks together. Inspect current tests for the exact guarantee instead of inferring exactly-once behavior from a queue name.

‎.mex/patterns/http-transport-change.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ mex:
1313

1414
# HTTP transport change
1515

16-
Map enqueue, persisted state, send, acknowledgement, restart recovery, and unreadable state before changing completion semantics. Keep TLS/enrollment and bounded execution checks in the same review. See `context/http.md` and current tests under `SimpleAPI/src/test/java/com/bencodez/simpleapi/servercomm/http/`.
16+
Map enqueue, persisted state, send, acknowledgement, restart recovery, and unreadable state before changing completion semantics. Keep TLS/enrollment and bounded execution checks in the same review. See `context/http.md` and current tests under `SimpleAPI/src/test/java/com/bencodez/simpleapi/tests/servercomm/http/`.

‎AGENTS.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ mvn -B -f SimpleAPI/pom.xml test
1515
mvn -B -f SimpleAPI/pom.xml package
1616
```
1717

18+
All test classes and test-only helpers belong under `com.bencodez.simpleapi.tests` (or its subpackages), with matching paths under `SimpleAPI/src/test/java/com/bencodez/simpleapi/tests/`. Keep production package names and visibility unchanged when organizing tests; use narrowly scoped test-only reflection access where an existing test needs implementation internals. Preserve test discovery and both full/shared artifact checks when moving tests.
19+
1820
Confirm current CI and POM settings before relying on these commands. Verify that the package invocation produced both the legacy/full artifact and every configured classifier, especially the `shared` JAR. Run `git diff --check` and confirm tests actually ran.
1921

2022
## Packaging boundaries

‎SimpleAPI/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@
327327
<dependency>
328328
<groupId>redis.clients</groupId>
329329
<artifactId>jedis</artifactId>
330-
<version>8.0.1</version>
330+
<version>7.5.3</version>
331331
</dependency>
332332
<dependency>
333333
<groupId>org.spongepowered</groupId>

‎SimpleAPI/src/test/java/com/bencodez/simpleapi/servercomm/redis/RedisHandlerClientConfigTest.java‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

SimpleAPI/src/test/java/com/bencodez/simpleapi/build/BuildInputPinningTest.java renamed to SimpleAPI/src/test/java/com/bencodez/simpleapi/tests/build/BuildInputPinningTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
package com.bencodez.simpleapi.build;
1+
package com.bencodez.simpleapi.tests.build;
2+
3+
24

35
import static org.junit.jupiter.api.Assertions.assertFalse;
46
import static org.junit.jupiter.api.Assertions.assertTrue;

SimpleAPI/src/test/java/com/bencodez/simpleapi/core/CoreClasspathTest.java renamed to SimpleAPI/src/test/java/com/bencodez/simpleapi/tests/core/CoreClasspathTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
package com.bencodez.simpleapi.core;
1+
package com.bencodez.simpleapi.tests.core;
2+
3+
24

35
import static org.junit.jupiter.api.Assertions.*;
46
import java.net.URLClassLoader;

SimpleAPI/src/test/java/com/bencodez/simpleapi/file/PrivateFilePermissionsTest.java renamed to SimpleAPI/src/test/java/com/bencodez/simpleapi/tests/file/PrivateFilePermissionsTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
package com.bencodez.simpleapi.file;
1+
package com.bencodez.simpleapi.tests.file;
2+
3+
import com.bencodez.simpleapi.file.PrivateFilePermissions;
24

35
import static org.junit.jupiter.api.Assertions.assertEquals;
46
import static org.junit.jupiter.api.Assertions.assertThrows;

SimpleAPI/src/test/java/com/bencodez/simpleapi/file/config/configurate/ConfigurateConfigViewTest.java renamed to SimpleAPI/src/test/java/com/bencodez/simpleapi/tests/file/config/configurate/ConfigurateConfigViewTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
package com.bencodez.simpleapi.file.config.configurate;
1+
package com.bencodez.simpleapi.tests.file.config.configurate;
2+
3+
import com.bencodez.simpleapi.file.config.configurate.ConfigurateConfigView;
24

35
import static org.junit.jupiter.api.Assertions.*;
46
import java.util.ArrayList;

SimpleAPI/src/test/java/com/bencodez/simpleapi/file/config/configurate/YamlConfigDocumentTest.java renamed to SimpleAPI/src/test/java/com/bencodez/simpleapi/tests/file/config/configurate/YamlConfigDocumentTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
package com.bencodez.simpleapi.file.config.configurate;
1+
package com.bencodez.simpleapi.tests.file.config.configurate;
2+
3+
import com.bencodez.simpleapi.file.config.configurate.ConfigurateConfigView;
4+
import com.bencodez.simpleapi.file.config.configurate.YamlConfigDocument;
25

36
import static org.junit.jupiter.api.Assertions.*;
47
import static org.junit.jupiter.api.Assumptions.assumeTrue;

0 commit comments

Comments
 (0)