Commit Graph

68 Commits

Author SHA1 Message Date
Mahmoud Emad
8285fdb7b9 Merge branch 'main' of https://git.ourworld.tf/herocode/sal
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
2025-05-10 08:50:16 +03:00
Mahmoud Emad
1ebd591f19 feat: Enhance documentation and add .gitignore entries
- Add new documentation sections for PostgreSQL installer
  functions and usage examples.  Improves clarity and
  completeness of the documentation.
- Add new files and patterns to .gitignore to prevent
  unnecessary files from being committed to the repository.
  Improves repository cleanliness and reduces clutter.
2025-05-10 08:50:05 +03:00
7828f82f58 Merge pull request 'Implement PostgreSQL Installer Module for Rhai' (#6) from development_psgl_installer into main
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
Reviewed-on: #6
2025-05-09 14:12:57 +00:00
Mahmoud Emad
138dce66fa feat: Enhance PostgreSQL installation with image pulling
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Pull the PostgreSQL image before installation to ensure the latest
  version is used. This improves reliability and reduces the chance of
  using outdated images.  Improves the robustness of the installation
  process.
- Added comprehensive unit tests for `PostgresInstallerConfig`,
  `PostgresInstallerError`, `install_postgres`, `create_database`,
  `execute_sql`, and `is_postgres_running` functions to ensure
  correctness and handle potential errors effectively.  Improves code
  quality and reduces the risk of regressions.
2025-05-09 16:13:24 +03:00
Mahmoud Emad
49e85ff8e6 docs: Enhance PostgreSQL client module documentation
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled
- Add details about the new PostgreSQL installer feature.
- Include prerequisites for installer and basic operations.
- Expand test file descriptions with installer details.
- Add descriptions for installer functions.
- Include example usage for both basic operations and installer.
2025-05-09 15:47:26 +03:00
663367ea57 Merge pull request 'Add Rhai scripting support for SAL' (#5) from development_tests into main
Some checks are pending
Rhai Tests / Run Rhai Tests (push) Waiting to run
Reviewed-on: #5
2025-05-09 07:49:48 +00:00
Mahmoud Emad
114d63e590 feat: Add PostgreSQL connection pooling support
Some checks failed
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Implement connection pooling using `r2d2` and `r2d2_postgres`
- Add connection pool configuration options to `PostgresConfigBuilder`
- Introduce transaction functions with automatic commit/rollback
- Add functions for executing queries using the connection pool
- Add `QueryParams` struct for building parameterized queries
- Add tests for connection pooling and transaction functions
2025-05-09 10:45:53 +03:00
Mahmoud Emad
22f87b320e feat: Improve package management and testing
Some checks failed
Rhai Tests / Run Rhai Tests (push) Has been cancelled
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Improve platform detection logic for more robust package management.
- Enhance error handling and reporting in package commands.
- Refactor code for better readability and maintainability.
- Add comprehensive tests to cover package management functionality.
- Improve test coverage for various scenarios and edge cases.
2025-05-09 09:54:32 +03:00
Mahmoud Emad
f002445c9e feat: Add PostgreSQL and Redis client support
Some checks failed
Rhai Tests / Run Rhai Tests (push) Waiting to run
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Add PostgreSQL client functionality for database interactions.
- Add Redis client functionality for cache and data store operations.
- Extend Rhai scripting with PostgreSQL and Redis client modules.
- Add documentation and test cases for both clients.
2025-05-09 09:45:50 +03:00
Mahmoud Emad
d3c645e8e6 docs: Add documentation for Nerdctl and RFS module tests
Some checks failed
Rhai Tests / Run Rhai Tests (push) Waiting to run
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Added documentation for Nerdctl module tests, detailing test
  structure, running instructions, and individual test cases.
- Added documentation for RFS module tests, covering test
  structure, running instructions, and individual test cases.  These
  tests verify remote filesystem operations and filesystem layer
  management.
2025-05-08 17:48:00 +03:00
Mahmoud Emad
83662736c0 feat: Add Buildah module tests to Rhai integration tests
Some checks failed
Rhai Tests / Run Rhai Tests (push) Waiting to run
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Added comprehensive test suite for Buildah module functionality.
- Included tests for Builder pattern, image operations, and
  container operations.
- Added documentation describing test structure, execution, and
  details.
2025-05-08 17:11:24 +03:00
Mahmoud Emad
4897eb9133 feat: Add text module tests to SAL
Some checks failed
Rhai Tests / Run Rhai Tests (push) Waiting to run
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Add new test suite for text manipulation functions.
- Extend documentation with details on new text module tests.
- Add .gitignore entry for test template files.
2025-05-08 17:00:22 +03:00
Mahmoud Emad
1286939608 feat: Add Redis client module and tests
Some checks failed
Rhai Tests / Run Rhai Tests (push) Waiting to run
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Add a new Redis client module to the SAL library.
- Implement Rhai wrappers for Redis connection and operations.
- Add comprehensive test suite for the Redis client module.
- Update documentation to include Redis client module details.
- Add .gitignore entries to exclude test logs and files.
2025-05-08 16:32:15 +03:00
Mahmoud Emad
32217b6545 docs: Add documentation for Process module tests
Some checks failed
Rhai Tests / Run Rhai Tests (push) Waiting to run
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Added documentation for the new Process module tests, including
  details on test structure, execution, and individual test
  descriptions.
- Created new documentation files for Process module tests.
- Updated the main Rhai documentation index to include the new
  Process module tests.
2025-05-08 15:54:39 +03:00
Mahmoud Emad
4578b10acb ci: Add CI workflow for Rhai tests
Some checks failed
Rhai Tests / Run Rhai Tests (push) Waiting to run
Rhai Tests / Run Rhai Tests (pull_request) Has been cancelled
- Added a GitHub Actions workflow to automatically run Rhai tests on
  push and pull request events.
- Created documentation for the CI workflow.
- Improved test runner script to log output to a file and check for
  test failures.
2025-05-08 15:09:16 +03:00
Mahmoud Emad
4e166f7750 docs: Add documentation for running Rhai tests
- Added a comprehensive guide on running Rhai tests within the
  SAL library.  This includes instructions for running all tests,
  tests for specific modules, and individual tests.
- Created a shell script (`run_rhai_tests.sh`) to simplify running
  all Rhai tests and provide a summary of results.  This improves
  the testing workflow and makes it easier to identify failures.
2025-05-08 15:05:55 +03:00
Mahmoud Emad
d6905916ee docs: Add documentation for Git module tests
- Added documentation for the Git module's test scripts, including
  test structure, running instructions, and details of each test.
- Added links to Git module tests in the main Rhai documentation.
- Improved overall structure and clarity of the Rhai documentation.
2025-05-08 15:05:25 +03:00
Mahmoud Emad
76582706ab feat: Add Rhai scripting support for SAL
- Add Rhai scripting integration to the SAL library.
- Create documentation for Rhai module usage and available functions.
- Implement comprehensive test suite for the Rhai integration.
- Add `.gitignore` entries for test related temporary files.
2025-05-08 14:29:14 +03:00
2cd9faf4fa ... 2025-05-08 09:54:20 +03:00
104097ee4b git working 2025-05-08 09:05:44 +03:00
21893ce225 ... 2025-04-05 19:00:59 +02:00
0fa9eddd1c ... 2025-04-05 15:38:43 +02:00
7bf2ffe47d ... 2025-04-05 15:10:02 +02:00
768542afd3 ... 2025-04-05 11:30:20 +02:00
e9a73327e3 ... 2025-04-05 11:21:58 +02:00
88e4a2a4b1 ... 2025-04-05 11:09:49 +02:00
8605e08a65 ... 2025-04-05 11:05:24 +02:00
749c60e131 ... 2025-04-05 11:05:07 +02:00
fe7a676cac ... 2025-04-05 11:03:58 +02:00
4be9445702 ... 2025-04-05 09:56:10 +02:00
78db13d738 ... 2025-04-05 09:36:54 +02:00
4c50d4b62c ... 2025-04-05 07:40:32 +02:00
c177ac5efb Merge branch 'main' of git.ourworld.tf:herocode/sal 2025-04-05 07:23:10 +02:00
6d4c1742e7 ... 2025-04-05 07:23:07 +02:00
5fec3b967b ... 2025-04-05 07:23:00 +02:00
6de7bf9b56 ... 2025-04-05 06:34:16 +02:00
245aee12bf ... 2025-04-05 06:21:50 +02:00
d336153247 ... 2025-04-05 06:20:19 +02:00
3803a54529 ... 2025-04-05 05:59:51 +02:00
7cdd9f5559 ... 2025-04-05 05:46:30 +02:00
e48063a79c ... 2025-04-05 04:45:56 +02:00
9f33c94020 ... 2025-04-04 21:51:31 +02:00
5b006ff328 ... 2025-04-04 21:21:50 +02:00
bf5eb2f6fc ... 2025-04-04 18:38:53 +02:00
c9b4010089 ... 2025-04-04 18:21:16 +02:00
eca7e6f552 ... 2025-04-04 15:28:50 +02:00
071dee514a ... 2025-04-04 15:21:45 +02:00
eecbed4b1f ... 2025-04-04 15:05:48 +02:00
dc49e78d00 ... 2025-04-03 06:08:18 +02:00
119d7ee50e added example for nerdctl + testing nerdctl (still a bug with running container from image) 2025-04-02 17:21:39 +02:00