1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-25 03:48:10 +02:00

fix Tagging test

This commit is contained in:
Konstantin Lebedev 2021-10-20 19:12:00 +05:00
parent 0b834600d5
commit dc7e525cb9
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@ type TagSet struct {
type Tagging struct {
XMLName xml.Name `xml:"Tagging"`
TagSet TagSet `xml:"TagSet"`
Xmlns string `xml:"xmlns,attr"`
}
func (t *Tagging) ToTags() map[string]string {

View file

@ -32,6 +32,7 @@ func TestXMLUnmarshall(t *testing.T) {
func TestXMLMarshall(t *testing.T) {
tags := &Tagging{
Xmlns: "http://s3.amazonaws.com/doc/2006-03-01/",
TagSet: TagSet{
[]Tag{
{