Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UNOMI-828] Support for OpenSearch persistence #715

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
88522d6
Minor Quickstart refactoring
sergehuber Dec 5, 2024
d64bb8c
Merge changes from master branch
sergehuber Dec 5, 2024
b33711b
Additional remove commands for actions, conditions, sessions, rules t…
sergehuber Dec 5, 2024
9633313
Initial working OpenSearch implementation. Basic functionality is wor…
sergehuber Dec 5, 2024
542e185
Merges from master
sergehuber Dec 5, 2024
9a2a6c4
Bump all versions to 2.7
sergehuber Dec 5, 2024
d3f3d52
Merge remote-tracking branch 'origin/master' into opensearch-persistence
sergehuber Dec 5, 2024
fd3d315
Fix interface in blueprint descriptor
sergehuber Dec 7, 2024
157e195
Fix interface in blueprint descriptor
sergehuber Dec 7, 2024
aad652b
Fix interface in blueprint descriptor
sergehuber Dec 7, 2024
e3fc559
- Fix issues with integration tests, ES tests now work 100%
sergehuber Dec 17, 2024
0213604
- Remove old build scripts
sergehuber Dec 17, 2024
88bfdc1
- Add new conditions bundle for ElasticSearch-specific conditions
sergehuber Dec 20, 2024
16c6de9
Work on making integration tests work with OpenSearch:
sergehuber Dec 22, 2024
8b6da3d
Work on making integration tests work with OpenSearch:
sergehuber Dec 22, 2024
11c64e2
Add missing ASL header
sergehuber Dec 22, 2024
4675847
- Introduce new ProgressListener system to indicate the current progr…
sergehuber Dec 31, 2024
dc14b20
- Introduce new ProgressListener system to indicate the current progr…
sergehuber Dec 31, 2024
00584ac
- Small cosmetic changes to the progress listener's top 10 slowest te…
sergehuber Dec 31, 2024
1746cbe
- Add auto-start and no-karaf options to build script
sergehuber Jan 2, 2025
f38336c
- Fix NO_COLOR handling
sergehuber Jan 2, 2025
3827c24
- Add support for OpenSearch in docker images
sergehuber Jan 3, 2025
c277570
- Improve plugin documentation to explain how to implement plugins fo…
sergehuber Jan 5, 2025
1f7e585
- Add support for OpenSearch in docker images
sergehuber Jan 6, 2025
9398f38
Merge remote-tracking branch 'origin/master' into opensearch-persistence
sergehuber Jan 6, 2025
43016ca
Change max parallel stragegy to 1 to avoid port conflicts
sergehuber Jan 6, 2025
e2125d6
- Make the search port configurable so that we can avoid conflicts be…
sergehuber Jan 7, 2025
e4d021b
Update persistence-opensearch/conditions/src/main/java/org/apache/uno…
sergehuber Feb 4, 2025
13b8018
Update persistence-opensearch/conditions/src/main/java/org/apache/uno…
sergehuber Feb 4, 2025
1706f2b
Update persistence-opensearch/conditions/src/main/java/org/apache/uno…
sergehuber Feb 4, 2025
65d035e
Update persistence-opensearch/core/src/main/java/org/apache/unomi/per…
sergehuber Feb 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing ASL header
  • Loading branch information
sergehuber committed Dec 22, 2024
commit 11c64e2e9facf2613aa2f4a61bd77832daa5c768
50 changes: 34 additions & 16 deletions itests/kt.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,33 @@
#!/bin/bash
################################################################################
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
################################################################################

# ASCII art and version
print_header() {
cat << "EOF"
_ __ __ _____ _
| |/ / / _| |_ _| | |
| ' / __ _ _ __ __ _| |_ | | ___ ___ | |___
_ __ __ _____ _
| |/ / / _| |_ _| | |
| ' / __ _ _ __ __ _| |_ | | ___ ___ | |___
| < / _` | '__/ _` | _| | |/ _ \ / _ \| / __|
| . \ (_| | | | (_| | | | | (_) | (_) | \__ \
|_|\_\__,_|_| \__,_|_| \_/\___/ \___/|_|___/

EOF
echo "--------------------------------------------------"
echo "Karaf Test Tools (kt.sh) - Version 1.0.0"
Expand Down Expand Up @@ -37,11 +55,11 @@ find_karaf_dir() {

local latest_time=0
local latest_dir=""

while IFS= read -r dir; do
local stat_output=$(get_file_mtime "$dir")
local mtime=$(echo "$stat_output" | cut -d' ' -f1)

if (( mtime > latest_time )); then
latest_time=$mtime
latest_dir=$dir
Expand Down Expand Up @@ -114,33 +132,33 @@ USAGE
COMMANDS
start, s Start the Karaf instance
Launches Karaf in the background

debug, d Start Karaf in debug mode
Launches Karaf with JPDA debugging enabled on port 5005

console, c Start Karaf in console mode
Launches Karaf in foreground with direct console access

stop, x Stop the running Karaf instance
Gracefully shuts down the Karaf container

log, l View the latest Karaf log file using less
Useful for scrolling through the entire log file

tail, t Tail the current Karaf log file
Follows the log in real-time, great for watching test execution

grep, g Grep the latest Karaf log file
Searches for patterns in the log file
Example: kt.sh grep "ERROR" finds all error messages

dir, i Print the latest Karaf directory path
Shows the full path to the most recent test instance

pushd, p Change to the latest Karaf directory using pushd
Quickly navigate to the test instance directory
Use 'popd' to return to the previous directory

help, h Show this help message

EXAMPLES
Expand Down Expand Up @@ -238,4 +256,4 @@ case "${1:-help}" in
help|h|*)
usage
;;
esac
esac