-
Notifications
You must be signed in to change notification settings - Fork 390
Add integration tests for RC manage version operations #914
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
Conversation
Note: That failing integration test is from ML. Fix is in |
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.
Looks mostly good. Just a few tidbits to clean up.
}, | ||
]; | ||
|
||
const VALID_VERSION: admin.remoteConfig.Version = { |
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.
Just wondering. Are these explicit type annotations really required?
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.
I removed the type annotations for VALID_VERSION
. It looks like we need the type annotation for VALID_CONDITIONS
unless I use a const INDIGO: admin.remoteConfig.TagColor = 'INDIGO'
for tag color.
}); | ||
}); | ||
|
||
it('verfy that getTemplateAtVersion() returns the requested template version v2', () => { |
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.
Seems redundant.
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.
This was to confirm that we are not getting the most recent template and having two versions confirms it. I see your point though :)
Will remove the expect
s here, but leave the templates for listVersions
tests.
9ad71f8
to
ca57fd4
Compare
ca57fd4
to
28a22ff
Compare
28a22ff
to
be4d8dc
Compare
listVersions
,getTemplateAtVersion
, androllback
operationsversions
metadata in Remote Config templateslistVersions
, and add unit testsNote: Added
release:stage
to trigger integration tests. Merging toremote-config-vc
master
.