Skip to content

Commit

Permalink
addressed todos for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
purnimavenkatasubbu committed Dec 17, 2024
1 parent e56107d commit 39600c9
Show file tree
Hide file tree
Showing 11 changed files with 242 additions and 138 deletions.
2 changes: 1 addition & 1 deletion packages/at_secondary_server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 3.1.2
# 3.2.0
- feat: Added WebSocket support for inbound connections
# 3.1.1
- fix: Store "publicKeyHash" value in the keystore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class InboundMessageListener {
if (streamData is List<int>) {
data = streamData;
} else if (streamData is String) {
data = streamData.codeUnits;
data = utf8.encode(streamData);
} else {
logger.severe('Un-handled data type: ${streamData.runtimeType}');
await _finishedHandler();
Expand Down
2 changes: 1 addition & 1 deletion packages/at_secondary_server/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: at_secondary
description: Implementation of secondary server.
version: 3.1.2
version: 3.2.0
repository: https://github.com/atsign-foundation/at_server
homepage: https://www.example.com
publish_to: none
Expand Down
6 changes: 4 additions & 2 deletions tests/at_end2end_test/config/config-e2e_test_runtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ first_atsign_server:
first_atsign_port: ATSIGN_1_PORT
# # The url to connect to first atServer
first_atsign_url: ATSIGN_1_HOST
# TODO add something like `first_atsign_connection_type: ATSIGN_1_CONNECTION_TYPE`
# # The connection type of first atServer
first_atsign_connection_type: ATSIGN_1_CONNECTION_TYPE

second_atsign_server:
second_atsign_name: 'ATSIGN_2_NAME'
# # The port to connect to second atServer
second_atsign_port: ATSIGN_2_PORT
# # The url to connect to second atServer
second_atsign_url: ATSIGN_2_HOST
# TODO add something like `second_atsign_connection_type: ATSIGN_2_CONNECTION_TYPE`
# # The connection type of second atServer
first_atsign_connection_type: ATSIGN_2_CONNECTION_TYPE
4 changes: 2 additions & 2 deletions tests/at_end2end_test/test/cached_key_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import 'e2e_test_utils.dart' as e2e;

void main() {
late String atSign_1;
late e2e.SimpleOutboundSocketHandler sh1;
late e2e.SimpleOutboundConnection sh1;

late String atSign_2;
late e2e.SimpleOutboundSocketHandler sh2;
late e2e.SimpleOutboundConnection sh2;

int lastValue = DateTime.now().millisecondsSinceEpoch;

Expand Down
Loading

0 comments on commit 39600c9

Please sign in to comment.