CLI: Add command to migrate all datasources to use encrypted password fields (#17118)
closes: #17107
This commit is contained in:
committed by
Carl Bergquist
parent
b9181df212
commit
151b24b95f
@@ -37,3 +37,12 @@ func TestDateAge(t *testing.T) {
|
||||
So(GetAgeString(time.Now().Add(-time.Hour*24*409)), ShouldEqual, "1y")
|
||||
})
|
||||
}
|
||||
|
||||
func TestToCamelCase(t *testing.T) {
|
||||
Convey("ToCamelCase", t, func() {
|
||||
So(ToCamelCase("kebab-case-string"), ShouldEqual, "kebabCaseString")
|
||||
So(ToCamelCase("snake_case_string"), ShouldEqual, "snakeCaseString")
|
||||
So(ToCamelCase("mixed-case_string"), ShouldEqual, "mixedCaseString")
|
||||
So(ToCamelCase("alreadyCamelCase"), ShouldEqual, "alreadyCamelCase")
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user