Skip to content

Commit

Permalink
Functional_test: Prefix string to user defined metadatakey (#1022)
Browse files Browse the repository at this point in the history
presigned postpolicy functional test against azure gateway fails
when the metadata key starts with a number.
  • Loading branch information
kannappanr authored and harshavardhana committed Sep 5, 2018
1 parent 01b1561 commit 5190498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functional_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -2271,7 +2271,8 @@ func testPresignedPostPolicy() {
defer reader.Close()

objectName := randString(60, rand.NewSource(time.Now().UnixNano()), "")
metadataKey := randString(60, rand.NewSource(time.Now().UnixNano()), "")
// Azure requires the key to not start with a number
metadataKey := randString(60, rand.NewSource(time.Now().UnixNano()), "user")
metadataValue := randString(60, rand.NewSource(time.Now().UnixNano()), "")

buf, err := ioutil.ReadAll(reader)
Expand Down

0 comments on commit 5190498

Please sign in to comment.