Skip to content

testMondogDsbMinikube.sh asserting on VerifyServiceInstancesCountScenario #7

@mrmccarthy

Description

@mrmccarthy

I deployed the Mongo DSB via the deployer:

go run deployer.go deploy-mongodsb -local-cluster-ip=$(minikube ip) -namespace=testing
and then tripped over an assert when trying to run the minikube script:

$ ./testMongoDsbMinikube.sh
Root Url - http://192.168.99.100:32708/dsb
Executing Test Case "Create DSB Instance"
Initializing Test Scenario "Verify Service Instances Count"
Executing Test Scenario "Verify Service Instances Count"
Invoking http GET on http://192.168.99.100:32708/dsb/service_instances
Test Scenario "Verify Service Instances Count" PASSED!
Initializing Test Scenario "Create DSB Instance"
Executing Test Scenario "Create DSB Instance"
Invoking http POST on http://192.168.99.100:32708/dsb/service_instances with body:
{
  "instanceId" : "6b6dcaad-96ed-4167-9e00-8247164a5e7f",
  "instanceSettings" : {
    "plan" : "standard"
  }
}
Test Scenario "Create DSB Instance" PASSED!
Initializing Test Scenario "Verify Service Instances Count"
Executing Test Scenario "Verify Service Instances Count"
Invoking http GET on http://192.168.99.100:32708/dsb/service_instances
Test Scenario "Verify Service Instances Count" FAILED!
Test Case "Create DSB Instance" FAILED!
Exception in thread "main" java.lang.AssertionError: expected:<1> but was:<0>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:743)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.junit.Assert.assertEquals(Assert.java:555)
	at org.junit.Assert.assertEquals(Assert.java:542)
	at com.emc.ocopea.scenarios.mongodsb.VerifyServiceInstancesCountScenario.executeScenario(VerifyServiceInstancesCountScenario.java:27)
	at com.emc.ocopea.scenarios.ScenarioRunner.executeScenario(ScenarioRunner.java:112)
	at com.emc.ocopea.scenarios.ScenarioRunner.lambda$run$0(ScenarioRunner.java:92)
	at java.util.ArrayList.forEach(ArrayList.java:1249)
	at com.emc.ocopea.scenarios.ScenarioRunner.run(ScenarioRunner.java:90)
	at com.emc.ocopea.mongodsb.MongoDsbTesterMain.createDsbInstanceTest(MongoDsbTesterMain.java:42)
	at com.emc.ocopea.mongodsb.MongoDsbTesterMain.main(MongoDsbTesterMain.java:28)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions