forked from javaswift/joss
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue javaswift#7 - Added the extra fields for the new ObjectStore
- Loading branch information
1 parent
b28a4b7
commit aa95474
Showing
5 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,6 @@ public class EndPoint { | |
|
||
public String publicURL; | ||
|
||
public String id; | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/org/javaswift/joss/command/shared/identity/access/Metadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.javaswift.joss.command.shared.identity.access; | ||
|
||
import java.util.List; | ||
|
||
public class Metadata { | ||
|
||
public boolean is_admin; | ||
|
||
public List<String> roles; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,8 @@ public class Tenant { | |
public String id; | ||
|
||
public String name; | ||
|
||
public String handle; | ||
|
||
public String description; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/test/java/org/javaswift/joss/command/shared/identity/access/MetadataTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.javaswift.joss.command.shared.identity.access; | ||
|
||
import org.junit.Test; | ||
|
||
import static junit.framework.Assert.assertNotNull; | ||
|
||
public class MetadataTest { | ||
|
||
@Test | ||
public void constructor() { | ||
assertNotNull(new Metadata()); | ||
} | ||
} |