Add unit tests for models and services
- Implemented unit tests for the Package model, covering methods such as generateId, findById, findByName, and version management. - Created unit tests for the Repository model, including repository creation, name validation, and retrieval methods. - Added tests for the Session model, focusing on session creation, validation, and invalidation. - Developed unit tests for the User model, ensuring user creation, password hashing, and retrieval methods function correctly. - Implemented AuthService tests, validating login, token refresh, and session management. - Added TokenService tests, covering token creation, validation, and revocation processes.
This commit is contained in:
9
test/fixtures/oci/Dockerfile.multi-layer
vendored
Normal file
9
test/fixtures/oci/Dockerfile.multi-layer
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM alpine:3.19 AS builder
|
||||
RUN echo "Building..." > /build.log
|
||||
|
||||
FROM alpine:3.19
|
||||
LABEL org.opencontainers.image.title="stack-test-demo-multi"
|
||||
LABEL org.opencontainers.image.version="1.0.0"
|
||||
COPY --from=builder /build.log /build.log
|
||||
RUN echo "Stack.Gallery Multi-Layer Demo" > /README.txt
|
||||
CMD ["cat", "/README.txt"]
|
||||
6
test/fixtures/oci/Dockerfile.simple
vendored
Normal file
6
test/fixtures/oci/Dockerfile.simple
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
FROM alpine:3.19
|
||||
LABEL org.opencontainers.image.title="stack-test-demo"
|
||||
LABEL org.opencontainers.image.version="1.0.0"
|
||||
LABEL org.opencontainers.image.description="Demo image for Stack.Gallery Registry e2e tests"
|
||||
RUN echo "Stack.Gallery Demo Image" > /README.txt
|
||||
CMD ["cat", "/README.txt"]
|
||||
Reference in New Issue
Block a user