зеркало из https://github.com/microsoft/SynapseML.git
chore: rotate outdates SAS url in speech tests (#2173)
This commit is contained in:
Родитель
d5650c92ef
Коммит
cc37da7a44
|
@ -46,13 +46,13 @@ class SpeakerEmotionInferenceSuite extends TransformerFuzzing[SpeakerEmotionInfe
|
|||
"<mstts:express-as role='female' style='calm'>\"This is an example of a sentence with unmatched quotes,\"" +
|
||||
"</mstts:express-as> she said.\"</voice></speak>\n"))
|
||||
|
||||
lazy val df: DataFrame = testData.map(e => e._1).toSeq.toDF("text")
|
||||
lazy val df: DataFrame = testData.keys.toSeq.toDF("text")
|
||||
|
||||
test("basic") {
|
||||
val transformed = ssmlGenerator.transform(df)
|
||||
transformed.show(truncate = false)
|
||||
transformed.collect().map(row => {
|
||||
val actual = testData.get(row.getString(0)).getOrElse("")
|
||||
val actual = testData.getOrElse(row.getString(0), "")
|
||||
val expected = row.getString(2)
|
||||
assert(actual.equals(expected))
|
||||
})
|
||||
|
|
|
@ -233,8 +233,8 @@ class SpeechToTextSDKSuite extends TransformerFuzzing[SpeechToTextSDK] with Spee
|
|||
|
||||
test("SAS URL based access") {
|
||||
val sasURL = "https://mmlspark.blob.core.windows.net/datasets/Speech/audio2.wav?sv=2019-12-12" +
|
||||
"&st=2021-01-25T16%3A40%3A13Z&se=2024-01-26T16%3A40%3A00Z" +
|
||||
"&sr=b&sp=r&sig=NpFm%2FJemAJOGIya1ykQ6f80YdvwpiAuJjnb2RVDtKro%3D"
|
||||
"?sv=2021-10-04&st=2024-02-28T16%3A17%3A55Z&se=2026-03-30T15%3A33%3A00Z" +
|
||||
"&sr=c&sp=rl&sig=5Oy6pEaF4hN3lj8uo6daLN%2F%2BiV9VD6XFNSy%2FZ8Upeeg%3D"
|
||||
|
||||
tryWithRetries(Array(100, 500)) { () => //For handling flaky build machines
|
||||
val uriDf = Seq(Tuple1(sasURL))
|
||||
|
@ -429,8 +429,8 @@ class ConversationTranscriptionSuite extends TransformerFuzzing[ConversationTran
|
|||
|
||||
test("SAS URL based access") {
|
||||
val sasURL = "https://mmlspark.blob.core.windows.net/datasets/Speech/audio2.wav" +
|
||||
"?sv=2019-12-12&st=2021-01-25T16%3A40%3A13Z&se=2024-01-26T16%3A40%3A00Z&sr=b&sp=r" +
|
||||
"&sig=NpFm%2FJemAJOGIya1ykQ6f80YdvwpiAuJjnb2RVDtKro%3D"
|
||||
"?sv=2021-10-04&st=2024-02-28T16%3A17%3A55Z&se=2026-03-30T15%3A33%3A00Z" +
|
||||
"&sr=c&sp=rl&sig=5Oy6pEaF4hN3lj8uo6daLN%2F%2BiV9VD6XFNSy%2FZ8Upeeg%3D"
|
||||
|
||||
tryWithRetries(Array(100, 500)) { () => //For handling flaky build machines
|
||||
val uriDf = Seq(Tuple1(sasURL))
|
||||
|
|
Загрузка…
Ссылка в новой задаче