-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to using a role for CI (#348)
* switch to using a role for integrated tests * separate python * setup permision&test against CI_PubSub_Role * test against iot account * update host * test host * use a ci job role for test * update role permission * update tests to use host argument * quick run discovery test * quick test for gg discovery * migrate gg discovery test * more comments --------- Co-authored-by: Vera Xia <[email protected]>
- Loading branch information
Showing
14 changed files
with
69 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
name: HandleStaleDiscussions | ||
on: | ||
schedule: | ||
- cron: '0 */4 * * *' | ||
discussion_comment: | ||
types: [created] | ||
schedule: | ||
- cron: '0 */4 * * *' | ||
discussion_comment: | ||
types: [created] | ||
|
||
jobs: | ||
handle-stale-discussions: | ||
name: Handle stale discussions | ||
runs-on: ubuntu-latest | ||
permissions: | ||
discussions: write | ||
steps: | ||
- name: Stale discussions action | ||
uses: aws-github-ops/handle-stale-discussions@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
handle-stale-discussions: | ||
name: Handle stale discussions | ||
runs-on: ubuntu-latest | ||
permissions: | ||
discussions: write | ||
steps: | ||
- name: Stale discussions action | ||
uses: aws-github-ops/handle-stale-discussions@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,13 @@ | |
from TestToolLibrary.skip import ModeIsWebSocket | ||
|
||
|
||
HOST = "arc9d2oott9lj-ats.iot.us-east-1.amazonaws.com" # <[email protected]> 003261610643 | ||
PORT = 8443 | ||
CA = "./test-integration/Credentials/rootCA.crt" | ||
CERT = "./test-integration/Credentials/certificate_drs.pem.crt" | ||
KEY = "./test-integration/Credentials/privateKey_drs.pem.key" | ||
TIME_OUT_SEC = 30 | ||
# This is a pre-generated test data from DRS integration tests | ||
# The test resources point to account # <[email protected]> 003261610643 | ||
ID_PREFIX = "Id-" | ||
GGC_ARN = "arn:aws:iot:us-east-1:003261610643:thing/DRS_GGC_0kegiNGA_0" | ||
GGC_PORT_NUMBER_BASE = 8080 | ||
|
@@ -108,10 +108,14 @@ | |
} | ||
''' | ||
|
||
my_check_in_manager = checkInManager(2) | ||
my_check_in_manager.verify(sys.argv) | ||
mode = my_check_in_manager.mode | ||
host = my_check_in_manager.host | ||
|
||
def create_discovery_info_provider(): | ||
discovery_info_provider = DiscoveryInfoProvider() | ||
discovery_info_provider.configureEndpoint(HOST, PORT) | ||
discovery_info_provider.configureEndpoint(host, PORT) | ||
discovery_info_provider.configureCredentials(CA, CERT, KEY) | ||
discovery_info_provider.configureTimeout(TIME_OUT_SEC) | ||
return discovery_info_provider | ||
|
@@ -196,9 +200,6 @@ def verify_group_object(discovery_info): | |
|
||
############################################################################ | ||
# Main # | ||
my_check_in_manager = checkInManager(1) | ||
my_check_in_manager.verify(sys.argv) | ||
mode = my_check_in_manager.mode | ||
|
||
skip_when_match(ModeIsWebSocket(mode), "This test is not applicable for mode: %s. Skipping..." % mode) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters