Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -363,17 +363,13 @@ public void ListACLs() {

public void CreateMachineGroup() {
//Construct machineGroup type1: using ArrayList<Machine> to create machinelist
String groupType = "Armory";
String externalName = "testgroup";
String groupTopic = "testtopic";

ArrayList<String> machineList = new ArrayList<String>();
machineList.add("127.0.0.1");
machineList.add("127.0.0.2");

MachineGroup group = new MachineGroup(testMachineGroupName, "ip", machineList);
group.SetGroupType(groupType);
group.SetExternalName(externalName);
group.SetGroupTopic(groupTopic);

try {
Expand All @@ -388,19 +384,16 @@ public void CreateMachineGroup() {
}
public void UpdateMachineGroup() {
//Construct machineGroup type2: using JSONArray to create machinelist
String groupType = "";
String externalName = "testgroup2";
String groupTopic = "testtopic2";

ArrayList<String> machineList = new ArrayList<String>();
machineList.add("uu_id_1");
machineList.add("uu_id_2");

GroupAttribute groupAttribute = new GroupAttribute(externalName, groupTopic);
GroupAttribute groupAttribute = new GroupAttribute("", groupTopic);

MachineGroup group = new MachineGroup(testMachineGroupName, "userdefined", machineList);

group.SetGroupType(groupType);
group.SetGroupAttribute(groupAttribute);

try {
Expand Down
Loading