Using the Distributed CloudSim Package for Integration Testing #81
dario-vega
started this conversation in
Show and tell
Replies: 1 comment
|
A code example |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I validated that integration tests can use the distributed CloudSim package directly.
Setup
Using the CloudSim 5.11.6 distribution package:
and referencing it from Maven:
The CloudSim distribution includes the required runtime libraries in the
cloudsim/libdirectory, and thecloudsim.jarmanifest defines the runtime classpath.To explore the available CloudSim APIs and supported functionality, refer to the CloudSim implementation in the Oracle NoSQL open-source repository:
https://github.com/oracle/nosql/blob/main/httpproxy/cloudsim/src/main/java/oracle/nosql/cloudsim/CloudSim.java
Validation
Embedded CloudSim was successfully started from test code:
and used to execute integration tests against a local simulator instance.
Example test:
CI Recommendation
For CI jobs:
cloudsim.jarinto the local Maven repository during the build bootstrap process.mvn clean testto ensure previous CloudSim execution artifacts are removed before running the tests.
Result
Confirmed that the distributed CloudSim 5.11.6 package can be embedded and used successfully for automated integration testing.
All reactions