mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 21:59:23 +08:00
fix Tagging test
This commit is contained in:
@@ -16,6 +16,7 @@ type TagSet struct {
|
|||||||
type Tagging struct {
|
type Tagging struct {
|
||||||
XMLName xml.Name `xml:"Tagging"`
|
XMLName xml.Name `xml:"Tagging"`
|
||||||
TagSet TagSet `xml:"TagSet"`
|
TagSet TagSet `xml:"TagSet"`
|
||||||
|
Xmlns string `xml:"xmlns,attr"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *Tagging) ToTags() map[string]string {
|
func (t *Tagging) ToTags() map[string]string {
|
||||||
|
@@ -32,6 +32,7 @@ func TestXMLUnmarshall(t *testing.T) {
|
|||||||
|
|
||||||
func TestXMLMarshall(t *testing.T) {
|
func TestXMLMarshall(t *testing.T) {
|
||||||
tags := &Tagging{
|
tags := &Tagging{
|
||||||
|
Xmlns: "http://s3.amazonaws.com/doc/2006-03-01/",
|
||||||
TagSet: TagSet{
|
TagSet: TagSet{
|
||||||
[]Tag{
|
[]Tag{
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user