This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
test: Split integration and E2E tests for AppStream/NonAppStream #663
Merged
nguyen102
merged 13 commits into
awslabs:feat-secure-workspace-egress
from
nguyen102:egress-split-tests
Aug 20, 2021
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
4a16716
Add AppStream folder test path for integration-tests and e2e tests
2338f4f
Update int test file
0bae59c
Created directory
96d36ba
Update e2e README with studies info
b20d25d
Update e2e README with studies info
d638f1e
Update integration test script
237f78d
Working AppStream Enabled integration tests
9798646
Move budget to common
48b93ee
Merge branch 'feat-secure-workspace-egress' into egress-split-tests
623d312
Updated test location
73ba681
Renamed to include egress
2a01e90
Update README abd run-integration-test script with Egress info
8d6b788
Update var name
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
main/end-to-end-tests/cypress/integration/appstream-egress-enabled/sample.spec.js
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
describe('Sample AppStream test', () => { | ||
it('', () => { | ||
cy.visit('/'); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
144 changes: 0 additions & 144 deletions
144
main/end-to-end-tests/cypress/integration/workspaces.appstream.spec.js
This file was deleted.
Oops, something went wrong.
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
63 changes: 63 additions & 0 deletions
63
...tests/__test__/api-tests/appstream-egress-disabled/data-sources/register-ds-study.test.js
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://aws.amazon.com/apache2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
const { runSetup } = require('../../../../support/setup'); | ||
|
||
describe('Register data source study scenarios', () => { | ||
let setup; | ||
let adminSession; | ||
let accountId; | ||
let bucketName; | ||
|
||
beforeAll(async () => { | ||
setup = await runSetup(); | ||
adminSession = await setup.defaultAdminSession(); | ||
|
||
// We register an account to be used by all the tests in this test suite | ||
accountId = setup.gen.accountId(); | ||
await adminSession.resources.dataSources.accounts.create({ id: accountId }); | ||
|
||
// We register a bucket to be used by all the tests in this test suite | ||
bucketName = setup.gen.string({ prefix: 'ds-bucket-test' }); | ||
await adminSession.resources.dataSources.accounts | ||
.account(accountId) | ||
.buckets() | ||
.create({ name: bucketName }); | ||
}); | ||
|
||
afterAll(async () => { | ||
await setup.cleanup(); | ||
}); | ||
|
||
describe('Registering a data source study', () => { | ||
it('should return study registration information if admin', async () => { | ||
const admin2Session = await setup.createAdminSession(); | ||
const id = setup.gen.string({ prefix: 'ds-study-id-test' }); | ||
const study = { | ||
id, | ||
adminUsers: [admin2Session.user.uid], | ||
}; | ||
|
||
await expect( | ||
admin2Session.resources.dataSources.accounts | ||
.account(accountId) | ||
.buckets() | ||
.bucket(bucketName) | ||
.studies() | ||
.create(study), | ||
).resolves.toMatchObject({ id, accountId, bucket: bucketName }); | ||
}); | ||
}); | ||
}); |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we include egress in the stage-
AppStreamEgressEnabled
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated