Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/machine group external name #99

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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