Skip to content

Commit

Permalink
switch to '=' divider instead of ':'
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Feb 23, 2024
1 parent b931b63 commit c60c3ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Zenodo struct {
type DID struct {
Attributes string `mapstructure:attributes` // did attributes, comma separated, default beamline,btr,cycle,sample
Separator string `mapstructure:separator` // did separator, default "/"
Divider string `mapstructure:divider` // did key-value divider, default ":"
Divider string `mapstructure:divider` // did key-value divider, default "="
}

// OAuthRecord defines OAuth provider's credentials
Expand Down
4 changes: 2 additions & 2 deletions utils/did_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ func TestCreateDID(t *testing.T) {
rec["arr"] = []int{1, 2, 3}
attrs := "bla,foo,arr"
sep := "/"
div := ":"
div := "="
did := CreateDID(rec, attrs, sep, div)
expect := "/arr:1,2,3/bla:value/foo:1"
expect := "/arr=1,2,3/bla=value/foo=1"
if did != expect {
t.Errorf("Fail TestCreateDID did=%s, expect=%s\n", did, expect)
}
Expand Down

0 comments on commit c60c3ef

Please sign in to comment.