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

Use dedicated atSigns for client e2e test #512

Merged
merged 8 commits into from
May 20, 2022
Merged
10 changes: 10 additions & 0 deletions .github/workflows/at_client_sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ jobs:
working-directory: at_end2end_test
run: dart pub get

# Logs into CICD VMs and runs script to update to the latest secondary image
- name: update image on cicd VMs
uses: appleboy/ssh-action@v0.1.4
with:
host: "cicd1.atsign.wtf,cicd2.atsign.wtf"
username: ubuntu
key: ${{ secrets.CICD_SSH_KEY }}
script: |
./update_ce2e_images.sh

# Populate at_credentials.dart from CICD_DATA_DART secret
- name: Get CICD keys into place
run: echo "${{secrets.AT_CICD_CREDENTIALS}}" > at_end2end_test/test/at_credentials.dart
Expand Down
8 changes: 6 additions & 2 deletions at_end2end_test/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ root_server:

# cicd atSign details
atSign:
firstAtSign: '@cicd1'
secondAtSign: '@cicd2'
# @ce2e1 is running latest at_secondary_server trunk
# @ce2e4 is running the latest canary release
# See https://github.com/atsign-foundation/at_client_sdk/issues/447#issuecomment-1075290415 for
# full details.
firstAtSign: '@ce2e1'
secondAtSign: '@ce2e4'
4 changes: 2 additions & 2 deletions at_end2end_test/test/sharing_key_test.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import 'dart:io';
import 'package:uuid/uuid.dart';

import 'package:at_client/at_client.dart';
import 'package:at_client/src/encryption_service/encryption_manager.dart';
import 'package:at_commons/at_commons.dart';
import 'package:at_end2end_test/config/config_util.dart';
import 'package:test/test.dart';
import 'package:uuid/uuid.dart';

import 'test_utils.dart';

Expand Down Expand Up @@ -159,7 +159,7 @@ void main() {
var result = await currentAtSignClientManager?.atClient
.getRemoteSecondary()!
.executeCommand(
'update:ttl:300000$sharedWithAtSign:location.$namespace$currentAtSign $encryptedValue\n',
'update:ttl:300000:$sharedWithAtSign:location.$namespace$currentAtSign $encryptedValue\n',
auth: true);
expect(result != null, true);
var isSyncInProgress = true;
Expand Down