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

Update Feature Files and Test Agents to 1.5.8 #80

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d8fdda5
Update UriValidator to 1.5.8
matthewd0123 Jul 8, 2024
af48e3e
Update UUIDValidator to 1.5.8
matthewd0123 Jul 8, 2024
9ffa236
Update UAttributesValidator to 1.5.8
matthewd0123 Jul 9, 2024
2636a61
Update UriSerializer and UriDeserializer 1.5.8
matthewd0123 Jul 9, 2024
deae544
Remove is_notification_destination
matthewd0123 Jul 9, 2024
12a6065
Update UUIDSerializer/Deserializer to 1.5.8
matthewd0123 Jul 9, 2024
9ea757a
Update RegisterAndUnregister to 1.5.8
matthewd0123 Jul 9, 2024
76a0b73
Update RegisterAndSend to 1.5.8
matthewd0123 Jul 9, 2024
3bac7dd
Update RegisterAndInvoke to 1.5.8
matthewd0123 Jul 9, 2024
c72d538
Make updates based on comments
matthewd0123 Jul 10, 2024
7f30d18
Update rust socket transport to 1.5.8
matthewd0123 Jul 17, 2024
f72166d
Changes to support streamer
matthewd0123 Jul 18, 2024
abb5ea1
Update Python and SocketPython to 1.5.8
matthewd0123 Jul 19, 2024
c2c5229
Update Python and SocketPython to 1.5.8
matthewd0123 Jul 19, 2024
c6dab1b
Merge branch 'feature/update_python_to_1.5.8' of https://github.com/m…
matthewd0123 Jul 19, 2024
6b8c6e9
moderate changes
matthewd0123 Jul 22, 2024
4ac570a
Update UriValidator to 1.5.8
matthewd0123 Jul 8, 2024
2a0f87d
Update UUIDValidator to 1.5.8
matthewd0123 Jul 8, 2024
8967111
Update UAttributesValidator to 1.5.8
matthewd0123 Jul 9, 2024
ffeb97a
Update UriSerializer and UriDeserializer 1.5.8
matthewd0123 Jul 9, 2024
05e6a8f
Remove is_notification_destination
matthewd0123 Jul 9, 2024
288169f
Update UUIDSerializer/Deserializer to 1.5.8
matthewd0123 Jul 9, 2024
6f047f5
Update RegisterAndUnregister to 1.5.8
matthewd0123 Jul 9, 2024
626d81f
Update RegisterAndSend to 1.5.8
matthewd0123 Jul 9, 2024
3a3084e
Update RegisterAndInvoke to 1.5.8
matthewd0123 Jul 9, 2024
1ef4fb4
Make updates based on comments
matthewd0123 Jul 10, 2024
3d7fd0f
Update rust socket transport to 1.5.8
matthewd0123 Jul 17, 2024
204c8c9
Changes to support streamer
matthewd0123 Jul 18, 2024
e802fef
moderate changes
matthewd0123 Jul 22, 2024
83ce12b
Merge branch 'feature/register_and_invoke_1.5.8' of https://github.co…
matthewd0123 Jul 22, 2024
6803734
GO
matthewd0123 Jul 22, 2024
d31e880
stuff
matthewd0123 Jul 22, 2024
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
58 changes: 29 additions & 29 deletions .github/workflows/tck-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build Rust Test Agent
uses: actions-rs/cargo@v1
with:
command: build
args: --manifest-path test_agent/rust/Cargo.toml
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build up_client_socket_java with Maven
working-directory: up_client_socket/java
run: |
mvn clean install --file pom.xml
- name: Build java_test_agent with Maven
working-directory: test_agent/java
run: |
mvn clean install --file pom.xml
# - name: Build Rust Test Agent
# uses: actions-rs/cargo@v1
# with:
# command: build
# args: --manifest-path test_agent/rust/Cargo.toml
# - name: Set up JDK 11
# uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: 'temurin'
# cache: maven
# - name: Build up_client_socket_java with Maven
# working-directory: up_client_socket/java
# run: |
# mvn clean install --file pom.xml
# - name: Build java_test_agent with Maven
# working-directory: test_agent/java
# run: |
# mvn clean install --file pom.xml
- name: Set up Python 3.8.7
uses: actions/setup-python@v3
with:
Expand Down Expand Up @@ -76,19 +76,19 @@ jobs:

var feature_json = JSON.parse(fs.readFileSync('./test_manager/testData/workflow_test_data.json', 'utf8'));
const command_list = [];
for(var feature_file_name in feature_json){
for (var language in feature_json[feature_file_name]["ue1"]){
for (var transport in feature_json[feature_file_name]["transports"]){
var port_language = feature_json[feature_file_name]["ue1"][language]
var port_transport = feature_json[feature_file_name]["transports"][transport]
if ("ue2" in feature_json[feature_file_name]){
for (var language_two in feature_json[feature_file_name]["ue2"]){
var second_ue = feature_json[feature_file_name]["ue2"][language_two]
var command_str = "behave --define uE1=" + port_language + " --define uE2=" + second_ue + " --define transport=" + port_transport + " --format json --outfile './reports/" + feature_file_name + "_" + port_language + ".json' --format html --outfile './reports/" + feature_file_name + "_" + port_language + ".html' './features/tests/" + feature_json[feature_file_name]["path"] + "/" + feature_file_name + ".feature'"
for(var feature of feature_json){
for (var language in feature["ue1"]){
for (var transport in feature["transports"]){
var port_language = feature["ue1"][language]
var port_transport = feature["transports"][transport]
if ("ue2" in feature){
for (var language_two in feature["ue2"]){
var second_ue = feature["ue2"][language_two]
var command_str = "behave --define uE1=" + port_language + " --define uE2=" + second_ue + " --define transport1=" + port_transport + " --define transport2=" + port_transport + " --format json --outfile './reports/" + feature["feature_name"] + "_" + port_language + "_" + second_ue + ".json' --format html --outfile './reports/" + feature["feature_name"] + "_" + port_language + "_" + second_ue + ".html' './features/tests/" + feature["path"] + "/" + feature["feature_name"] + ".feature'"
command_list.push(command_str);
}
} else {
var command_str = "behave --define uE1=" + port_language + " --define transport=" + port_transport + " --format json --outfile './reports/" + feature_file_name + "_" + port_language + ".json' --format html --outfile './reports/" + feature_file_name + "_" + port_language + ".html' './features/tests/" + feature_json[feature_file_name]["path"] + "/" + feature_file_name + ".feature'"
var command_str = "behave --define uE1=" + port_language + " --define transport1=" + port_transport + " --format json --outfile './reports/" + feature["feature_name"] + "_" + port_language + ".json' --format html --outfile './reports/" + feature["feature_name"] + "_" + port_language + ".html' './features/tests/" + feature["path"] + "/" + feature["feature_name"] + ".feature'"
command_list.push(command_str);
}
}
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ MANIFEST
**/jar_files/**
*.jar
**/.DS_Store
**/target
**/target
**/summary.json
**/up-java/
**/up-python/
16 changes: 13 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,24 @@ $ python install_dependencies.py
----
*This will install the up-tck dependencies, making its classes and modules available for import in your python code.*

=== Building Rust Test Agent Executable

1. Go to the rust test agent folder (cd test_agent/rust)
2. run "cargo build"


=== Building Java Test Agent Jar

If you would like to run any tests with the Java Test Agent, follow these instructions:

1. Inside a terminal/command prompt, go to up_client_socket folder (cd up_client_socket/java).
2. Run "mvn clean install".This will install the up-client-socket-java.
3. Go to test_agent folder (cd test_agent/java) and run "mvn clean install".This will generate the tck-test-agent-java JAR file under the target folder.
1. Go to the scripts folder and run build_up_java_latest.py
2. Inside a terminal/command prompt, go to up_client_socket folder (cd up_client_socket/java).
3. Run "mvn clean install".This will install the up-client-socket-java.
4. Go to test_agent folder (cd test_agent/java) and run "mvn clean install".This will generate the tck-test-agent-java JAR file under the target folder.

=== Running BDD Tests

For information about running BDD Tests, refer to https://github.com/eclipse-uprotocol/up-tck/blob/main/test_manager/README.adoc[BDD/README.adoc]

=== Sample use cases
image::screenshots/InteropTestingSDK.drawio.svg[]
1 change: 1 addition & 0 deletions dispatcher/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def _flood_to_sockets(self, data: bytes):
"""
# for up_client_socket in self.connected_sockets.copy(): # copy() to avoid RuntimeError
for up_client_socket in self.connected_sockets:
logger.info(f"sending data to {up_client_socket.getpeername()}")
try:
up_client_socket.sendall(data)
except ConnectionAbortedError as e:
Expand Down
4 changes: 4 additions & 0 deletions screenshots/InteropTestingSDK.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading