-
Notifications
You must be signed in to change notification settings - Fork 99
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
Replace AWS.Kinesis/Stream with AWS.S3/Bucket in functional tests #5227
Conversation
Unit-test coverage resultThe unit-test coverage rate is 60.3%. If you want to see the detailed report, please go to
|
@@ -17,42 +17,50 @@ import ( | |||
|
|||
func Test_AWSRedeployWithUpdatedResourceUpdatesResource(t *testing.T) { | |||
templateFmt := "testdata/aws-mechanics-redeploy-withupdatedresource.step%d.bicep" | |||
name := "ms" + uuid.New().String() | |||
name := "radiusfunctionaltestbucket-" + uuid.New().String() |
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.
Could this run into length constraints?
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.
test.Test(t) | ||
} | ||
|
||
func Test_AWS_S3Bucket_Existing(t *testing.T) { |
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.
Can we add doc here to identify the difference between this test and the one above?
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.
added
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.
Could you point me to the doc?
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.
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.
basically the idea is that the first step deploys the S3Bucket resource, then the second step uses the bicep existing
keyword during the deployment, which should retrieve the same resource. If you check the bicep definition here, you can see that the key and the value are not specified. We add them in the test to make sure we get the same resource. Sorry for the confusion :)
Tags: [ | ||
{ | ||
Key: 'testKey' | ||
Value: 'testValue2' |
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.
Where is this value tested?
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.
Unit-test coverage resultThe unit-test coverage rate is 60.3%. If you want to see the detailed report, please go to
|
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.
lgtm
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.
@willdavsmith I would change the title of this PR. e.g. Replace AWS.Kinesis/Stream with S3 in functional tests
or Use S3 xxx
Description
Issue Reference
https://dev.azure.com/azure-octo/Incubations/_workitems/edit/6401