diff --git a/.github/workflows/run_xcodebuild_test_platforms.yml b/.github/workflows/run_xcodebuild_test_platforms.yml index 0400a12a53..cc27cdc32b 100644 --- a/.github/workflows/run_xcodebuild_test_platforms.yml +++ b/.github/workflows/run_xcodebuild_test_platforms.yml @@ -71,7 +71,7 @@ jobs: uses: actions/cache/restore@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 with: path: ${{ github.workspace }}/Build - key: ${{ env.SCHEME }}-iOS-latest-build-main + key: ${{ env.SCHEME }}-iOS-latest-build-maindsadasdas - name: Run iOS Test Suite id: run-tests continue-on-error: ${{ env.RETRY_ON_ERROR == 'true' }} diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index d329901675..d19cf5849c 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -21,18 +21,18 @@ concurrency: cancel-in-progress: ${{ github.ref_name != 'main'}} jobs: - unit-tests-without-coverage: - name: ${{ matrix.scheme }} Unit Tests - strategy: - fail-fast: false - matrix: - scheme: [ - InternalAWSPinpointUnitTests - ] - uses: ./.github/workflows/run_xcodebuild_test_platforms.yml - with: - scheme: ${{ matrix.scheme }} - generate_coverage_report: false + # unit-tests-without-coverage: + # name: ${{ matrix.scheme }} Unit Tests + # strategy: + # fail-fast: false + # matrix: + # scheme: [ + # InternalAWSPinpointUnitTests + # ] + # uses: ./.github/workflows/run_xcodebuild_test_platforms.yml + # with: + # scheme: ${{ matrix.scheme }} + # generate_coverage_report: false unit-tests-with-coverage: name: ${{ matrix.scheme }} Unit Tests @@ -40,18 +40,18 @@ jobs: fail-fast: false matrix: scheme: [ - Amplify, - AWSPluginsCore, - AWSAPIPlugin, - AWSCloudWatchLoggingPlugin, + # Amplify, + # AWSPluginsCore, + # AWSAPIPlugin, + # AWSCloudWatchLoggingPlugin, AWSCognitoAuthPlugin, - AWSDataStorePlugin, - AWSLocationGeoPlugin, - AWSPredictionsPlugin, - AWSPinpointAnalyticsPlugin, - AWSPinpointPushNotificationsPlugin, - AWSS3StoragePlugin, - CoreMLPredictionsPlugin + # AWSDataStorePlugin, + # AWSLocationGeoPlugin, + # AWSPredictionsPlugin, + # AWSPinpointAnalyticsPlugin, + # AWSPinpointPushNotificationsPlugin, + # AWSS3StoragePlugin, + # CoreMLPredictionsPlugin ] uses: ./.github/workflows/run_xcodebuild_test_platforms.yml with: @@ -65,18 +65,18 @@ jobs: fail-fast: false matrix: file: [ - { scheme: Amplify, flags: 'Amplify,unit_tests' }, - { scheme: AWSPluginsCore, flags: 'AWSPluginsCore,unit_tests' }, - { scheme: AWSAPIPlugin, flags: 'API_plugin_unit_test,unit_tests' }, - { scheme: AWSCloudWatchLoggingPlugin, flags: 'Logging_plugin_unit_test,unit_tests' }, + # { scheme: Amplify, flags: 'Amplify,unit_tests' }, + # { scheme: AWSPluginsCore, flags: 'AWSPluginsCore,unit_tests' }, + # { scheme: AWSAPIPlugin, flags: 'API_plugin_unit_test,unit_tests' }, + # { scheme: AWSCloudWatchLoggingPlugin, flags: 'Logging_plugin_unit_test,unit_tests' }, { scheme: AWSCognitoAuthPlugin, flags: 'Auth_plugin_unit_test,unit_tests' }, - { scheme: AWSDataStorePlugin, flags: 'DataStore_plugin_unit_test,unit_tests' }, - { scheme: AWSLocationGeoPlugin, flags: 'Geo_plugin_unit_test,unit_tests' }, - { scheme: AWSPredictionsPlugin, flags: 'Predictions_plugin_unit_test,unit_tests' }, - { scheme: AWSPinpointAnalyticsPlugin, flags: 'Analytics_plugin_unit_test,unit_tests' }, - { scheme: AWSPinpointPushNotificationsPlugin, flags: 'PushNotifications_plugin_unit_test,unit_tests' }, - { scheme: AWSS3StoragePlugin, flags: 'Storage_plugin_unit_test,unit_tests' }, - { scheme: CoreMLPredictionsPlugin, flags: 'CoreMLPredictions_plugin_unit_test,unit_tests' } + # { scheme: AWSDataStorePlugin, flags: 'DataStore_plugin_unit_test,unit_tests' }, + # { scheme: AWSLocationGeoPlugin, flags: 'Geo_plugin_unit_test,unit_tests' }, + # { scheme: AWSPredictionsPlugin, flags: 'Predictions_plugin_unit_test,unit_tests' }, + # { scheme: AWSPinpointAnalyticsPlugin, flags: 'Analytics_plugin_unit_test,unit_tests' }, + # { scheme: AWSPinpointPushNotificationsPlugin, flags: 'PushNotifications_plugin_unit_test,unit_tests' }, + # { scheme: AWSS3StoragePlugin, flags: 'Storage_plugin_unit_test,unit_tests' }, + # { scheme: CoreMLPredictionsPlugin, flags: 'CoreMLPredictions_plugin_unit_test,unit_tests' } ] uses: ./.github/workflows/upload_coverage_report.yml with: @@ -89,7 +89,7 @@ jobs: if: ${{ !cancelled() }} needs: [ unit-tests-with-coverage, - unit-tests-without-coverage + # unit-tests-without-coverage ] env: EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }} diff --git a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/Support/AWSAuthCognitoSessionTests.swift b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/Support/AWSAuthCognitoSessionTests.swift index fdb8862284..206c300847 100644 --- a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/Support/AWSAuthCognitoSessionTests.swift +++ b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/Support/AWSAuthCognitoSessionTests.swift @@ -61,7 +61,7 @@ class AWSAuthCognitoSessionTests: XCTestCase { awsCredentialsResult: .failure(error), cognitoTokensResult: .success(tokens)) - let cognitoTokens = try! session.getCognitoTokens().get() as! AWSCognitoUserPoolTokens + let cognitoTokens = try! session.getCognitoTokens().get() as! String XCTAssertFalse(cognitoTokens.doesExpire()) }