aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks
AgeCommit message (Collapse)AuthorFilesLines
2020-08-31AAI-Simulator: Pulling from PNF-SW-UP CSIT to Integration repoajay_dp001112-0/+10234
Issue-ID: INT-1704 Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech> Change-Id: Ifc6a71f8303d3b27b40650dea5564365b08b1372 Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-08-28Update tests for Datafile Collector (DCAE SDK update)Remigiusz Janeczek16-16/+56
Adjust DFC consul configs Make message router sim return array of strings instead of array of json objects as response (as in live environment) Issue-ID: DCAEGEN2-2267 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I792c9abcb1c49d73a790ca9c2e8f46a0e1dfd099
2020-07-29Adjust DFC test files to use FTPES instead of FTPSRemigiusz Janeczek33-790/+822
DFC doesn't support FTPS protocol. FTPS is treated exactly like FTPES and soon DFC won't accept file locations starting with "ftps://". Fix mr-sim.py lint issues Issue-ID: DCAEGEN2-2367 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Idab56aab3bdb6734a04bfc9c9212f2ea800d0d74
2020-07-27Fix vsftpd config setupBartek Grzybowski2-4/+4
Change-Id: I3a178c09cfb0aeae6f32925898b1a38080e981e0 Issue-ID: INT-1662 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-27Add README fileBartek Grzybowski1-0/+58
Change-Id: Id6ad15ca3bde209f3c5c68977098a2280992cd1f Issue-ID: INT-1663 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-27Add HOT parameters for the simulatorBartek Grzybowski3-4/+38
Run simulator instances from runner script Change-Id: I9d9a317c378a84b1846821916fee5f47452944c5 Issue-ID: INT-1662 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-27Setup build env on instanceBartek Grzybowski1-0/+5
Required to build simulator image Change-Id: If323b9cd8c76eaba3a16dc588382f1c86e15f1b1 Issue-ID: INT-1661 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-27Setup runner script for the simulator in HOTBartek Grzybowski3-2/+35
This adds shell runner script and HOT setup to deploy and run it. Change-Id: I88b9b516f38dac789da1caa050192358829e9357 Issue-ID: INT-1661 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-24Update tls-init-containerRemigiusz Janeczek1-1/+1
Previous tls-init-container supplies outdated certificates Issue-ID: DCAEGEN2-2367 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Ib1b4c3fa097e17a06dfc85aa0059879b53cd6624
2020-07-20[PMSHSIM] Refactoring pmsh-pnf-simefiacor12-86/+252
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I40834e906fcc5f33c6e70fb3d3da886a7ee0d521 Issue-ID: INT-1657
2020-07-14Add sftp strict host key checking to DFC consul configsRemigiusz Janeczek13-0/+45
Issue-ID: DCAEGEN2-2219 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I93b673bc947edaeff57a19bda822f6ed70521b87
2020-07-03Add basic cloud-init setup for the simulator instanceBartek Grzybowski2-0/+27
Change-Id: I456358ac26e4ab02d5989a9505541721553034fe Issue-ID: INT-1649 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-03Create basic Heat templateBartek Grzybowski2-0/+55
Basic HOT template to deploy simulator to OpenStack Change-Id: Ic862239c888ba75578b9cc0d3ee8d6e756d72589 Issue-ID: INT-1641 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-07-02netconf-pnp-simulator: fix supervisor patching failureebo2-2/+3
Issue-ID: INT-1639 Change-Id: I28980712fc4b4bff6100ba97489958c0428be26d Signed-off-by: ebo <eliezio.oliveira@est.tech>
2020-06-18Start/stop the 3GPP measurements file generator at simulator start/stopBartek Grzybowski2-6/+21
Change-Id: I6976168afc7cad2a44333e33632775dbb63aec12 Issue-ID: INT-1630 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-17Pass options to each lifecycle method separatelyBartek Grzybowski4-39/+53
This makes the MassPnfSim object instance stateless. Change-Id: Ic8f7aefa0afb74a15491b5b0e8ba1cb80e3aa3ef Issue-ID: INT-1629 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-17Validate the subcommands on each instance method invocationBartek Grzybowski1-20/+33
Change-Id: I22d6d6ef47ae99a7b2ad7f3e1407e0a49c48c953 Issue-ID: INT-1629 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-17Remove the existing_sim_instances instance attributeBartek Grzybowski1-8/+7
Existing simulator instances should be enumerated on each call to helper function, not statically in constructor. Change-Id: I93b7ac11e9dc99ce9d3727d577f057b1469a9439 Issue-ID: INT-1629 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-16Support setting custom username/password for the file server serviceBartek Grzybowski8-14/+28
Change-Id: I21964c4b8819444dd0aebdda117a11ba96f92038 Issue-ID: INT-1627 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-15Drop shell wrapper for docker compose operationsBartek Grzybowski1-19/+0
Docker-compose configuration is already natively supported within MassPnfSim module. Change-Id: I26995126d8a26437821f0f8b254ff82752041b55 Issue-ID: INT-1623 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-15Run the 3GPP measurements file generator in bootstrap phaseBartek Grzybowski2-3/+5
Change-Id: I310acb354003e678020935017d0778f75e7db07f Issue-ID: INT-1623 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-15Generate vsftpd config file in bootstrap phaseBartek Grzybowski2-5/+13
Change-Id: I963ff2ed9dd79f36c8fcb4e19529c4b549f92823 Issue-ID: INT-1621 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-15Make the config generation private method more genericBartek Grzybowski1-14/+15
Change-Id: I2a0b9ef8eb304cfd088cd3a7dc4c61aaf54504c4 Issue-ID: INT-1621 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Add a helper method to generate docker compose fileBartek Grzybowski2-4/+29
Change-Id: I05f5f689e5ec660e0257e558d02ac1965d51b3d3 Issue-ID: INT-1619 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Simplify network name in Compose templateBartek Grzybowski1-4/+4
Generated network name for a service already contains project name so no need to further customize it. Change-Id: Ib77b55f46b7141edeb43470db4a36d10c2ced649 Issue-ID: INT-1619 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Add helper method to generate simulator configBartek Grzybowski1-1/+14
Change-Id: If0deb820f32d6d75c71370ff67c7c42a063d8e0a Issue-ID: INT-1618 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Update Mass PNF simulator documentationBartek Grzybowski1-7/+11
Change-Id: I8b583e958f445965eead876925e8eb385e655eb5 Issue-ID: INT-1617 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Drop action methods decoratorBartek Grzybowski1-24/+0
It's no longer needed after implementing all lifecycle modes in module. Change-Id: Ic2b0c638172e9bb1428ac1f3a7823ce3e36ac206 Issue-ID: INT-1617 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Setup and start docker-compose simulator app directly in Python moduleBartek Grzybowski2-10/+18
Change-Id: I5efaaa69a0c78d9ae9594d1e59d57dd9315613af Issue-ID: INT-1617 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Chown vsftpd config file to root while bootstrappingBartek Grzybowski2-2/+11
Change-Id: I48716f544bd34b05a5524b58500cdff7c96a9578 Issue-ID: INT-1617 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Add internal routine for logs archivingBartek Grzybowski1-2/+26
Change-Id: Ibbb2b4aa71f0ca477b7129e4037cee031e44ae91 Issue-ID: INT-1617 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Remove useless RUNNING_COMPOSE_CONFIG assignmentBartek Grzybowski1-1/+0
Change-Id: I0d66fab438ef53c716ddcebf292309f3a161a51e Issue-ID: INT-1617 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-10Drop shell debug mode in command wrapper methodBartek Grzybowski1-2/+2
Change-Id: I70133119ca8344ad675400e1ea9ba1b8a6f9b38b Issue-ID: INT-1617 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-05Support stopping sending PNF registration messages in Python moduleBartek Grzybowski4-7/+61
Change-Id: Iae7d300e6e09d152b6e7daaebd9c85ba763fc077 Issue-ID: INT-1613 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-05Add test case for invalid '--count' option valueBartek Grzybowski1-0/+18
Change-Id: Ib46c26889f01ce0cd9d90865070d5c5ac9b5d08a Issue-ID: INT-1613 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-05Drop shell wrapper for 'trigger_custom' action as wellBartek Grzybowski2-11/+14
Change-Id: I388038656505c6937e10ba9f65d70d0e6514e17b Issue-ID: INT-1611 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-05Support triggering simulator app directly from MassPnfSim moduleBartek Grzybowski3-26/+40
Change-Id: Ice52848bedf8722aa142de74342190378ea593cd Issue-ID: INT-1611 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-05Drop shell wrapper for stopping simulator instancesBartek Grzybowski2-15/+47
Instance method is added to manage stopping simulator instances and ROP scripts directly in MassPnfSim class. Change-Id: Ic551f99c0f5f2a177b9c72daac02690b0bbded04 Issue-ID: INT-1610 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-02Add helper routine for getting iter range in lifecycle methodsBartek Grzybowski1-5/+9
Change-Id: I3973b7bfd75885bf22154670a6b9f665769470fa Issue-ID: INT-1610 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-02Drop shell wrapper for getting simulators statusBartek Grzybowski2-14/+37
Change-Id: Id7c3c614d472d8ee01533e9bd146f258813e7cbe Issue-ID: INT-1606 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-02Add helper method to get running docker containers names listBartek Grzybowski2-1/+11
Change-Id: I8346302706d6e896b55d845051fe2de18aaafd16 Issue-ID: INT-1606 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-06-02Add helper method to get simulator instance dataBartek Grzybowski3-2/+13
Superfluous call to 'get_pnfsim_ip' function in simulator.sh was also removed. Change-Id: Ifd7be4843fe26768f4b86b64e07d2d9479735ad1 Issue-ID: INT-1606 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-25Add functional tests for verifying simulator services statusBartek Grzybowski4-1/+36
Status is verified after each lifecycle change for proper subcommand action. Change-Id: Ia1c0e1bce24ddf1ca2c805a420e4a0665412aedf Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-25Add functional test for 'clean' subcommandBartek Grzybowski2-0/+10
Change-Id: Iac2b7d5f912b22c6c4b342e350a71ee6ad8b1fbb Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-25Add functional tests for 'stop' subcommandBartek Grzybowski1-0/+21
Change-Id: Id3640c494f21fb4869fcf412dc83824dc8670d12 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-25Add tests for 'trigger_custom' subcommandBartek Grzybowski3-0/+27
Change-Id: I7a2811618adcaaa698a702d264ef2a93bc899704 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-25Add functional tests for 'trigger' commandBartek Grzybowski1-0/+18
Change-Id: Ie3f0a5c5b5276c058da3d284d5531ab5c821e3b8 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-25Add functional tests for 'start' commandBartek Grzybowski1-0/+18
Change-Id: I6a0e6bf35384e861511972aab45faed2fa13a90e Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-25Add functional tests for bootstrap commandsBartek Grzybowski1-0/+60
Change-Id: Idb816780206f8b3b7a14128b7fd4603c4977ce11 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-05-25Add pytest fixturesBartek Grzybowski1-0/+30
This adds fixtures that'll be utilised by unit and functional tests. Change-Id: Iaeed869d8320ccc44d485fc00c590741352e34e6 Issue-ID: INT-1577 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>