Package com.netflix.simianarmy

Examples of com.netflix.simianarmy.MonkeyType


        EVENT
    }

    @Test
    public void test() {
        MonkeyType monkeyType = Types.MONKEY;
        EventType eventType = EventTypes.EVENT;
        BasicRecorderEvent evt = new BasicRecorderEvent(monkeyType, eventType, "region", "test-id");
        testEvent(evt);

        // CHECKSTYLE IGNORE MagicNumberCheck
View Full Code Here


        Assert.assertEquals(query.get("groupType"), "ASG");
        Assert.assertEquals(dateArg.getValue(), queryDate);
    }

    private MonkeyRecorder.Event mkEvent(String instance) {
        final MonkeyType monkeyType = ChaosMonkey.Type.CHAOS;
        final EventType eventType = ChaosMonkey.EventTypes.CHAOS_TERMINATION;
        // SUPPRESS CHECKSTYLE MagicNumber
        return new BasicRecorderEvent(monkeyType, eventType, "region", "id", 1330538400000L)
        .addField("instanceId", instance).addField("groupType", "ASG").addField("groupName", "testGroup");
    }
View Full Code Here

                        fields.put(attr.getName(), attr.getValue());
                    }
                }
                String eid = res.get(Keys.id.name());
                String ereg = res.get(Keys.region.name());
                MonkeyType monkeyType = valueToEnum(MonkeyType.class, res.get(Keys.monkeyType.name()));
                EventType eventType = valueToEnum(EventType.class, res.get(Keys.eventType.name()));
                long eventTime = Long.parseLong(res.get(Keys.eventTime.name()));
                list.add(new BasicRecorderEvent(monkeyType, eventType, ereg, eid, eventTime).addFields(fields));
            }
        } while (result.getNextToken() != null);
View Full Code Here

TOP

Related Classes of com.netflix.simianarmy.MonkeyType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.