![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-aws-s3/Test/Mftf/Test/ |
<?xml version="1.0" encoding="UTF-8"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> <test name="AdminAwsS3ImportBundleProductTest" extends="AdminImportBundleProductTest"> <annotations> <features value="AwsS3"/> <stories value="Import Products"/> <title value="S3 - Import Bundle Product"/> <description value="Imports a .csv file containing a bundle product. Verifies that product is imported successfully and can be purchased."/> <severity value="MAJOR"/> <group value="importExport"/> <group value="Bundle"/> <group value="remote_storage_aws_s3"/> <group value="skip_in_cloud_native_s3"/> <group value="remote_storage_disabled"/> </annotations> <before> <comment userInput="BIC workaround" stepKey="createDirectoryForImportFiles" after="createCustomer"/> <comment userInput="BIC workaround" stepKey="copyImportFile" after="createDirectoryForImportFiles"/> <remove keyForRemoval="createDirectoryForImportImages"/> <helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="createDirectory" stepKey="createDirectoryForImportImagesInS3"> <argument name="path">var/import/images/{{ImportProduct_Bundle.name}}</argument> </helper> <helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="copyFromLocal" stepKey="copyProduct1BaseImage"> <argument name="source">dev/tests/acceptance/tests/_data/{{ImportProductSimple1_Bundle.baseImage}}</argument> <argument name="destination">var/import/images/{{ImportProduct_Bundle.name}}/{{ImportProductSimple1_Bundle.baseImage}}</argument> </helper> <helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="copyFromLocal" stepKey="copyProduct2BaseImage"> <argument name="source">dev/tests/acceptance/tests/_data/{{ImportProductSimple2_Bundle.smallImage}}</argument> <argument name="destination">var/import/images/{{ImportProduct_Bundle.name}}/{{ImportProductSimple2_Bundle.smallImage}}</argument> </helper> <helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="copyFromLocal" stepKey="copyProduct3BaseImage"> <argument name="source">dev/tests/acceptance/tests/_data/{{ImportProductSimple3_Bundle.thumbnailImage}}</argument> <argument name="destination">var/import/images/{{ImportProduct_Bundle.name}}/{{ImportProductSimple3_Bundle.thumbnailImage}}</argument> </helper> <magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.enable_options}}" stepKey="enableRemoteStorage" after="copyProduct3BaseImage"/> <magentoCLI command="remote-storage:sync" timeout="120" stepKey="syncRemoteStorage" after="enableRemoteStorage"/> <comment userInput="BIC workaround" stepKey="createDirectoryForImportFilesInS3" after="syncRemoteStorage"/> <comment userInput="BIC workaround" stepKey="copyProduct1BaseImageInS3" after="createDirectoryForImportFilesInS3"/> <comment userInput="BIC workaround" stepKey="copyProduct2BaseImageInS3" after="copyProduct1BaseImageInS3"/> <comment userInput="BIC workaround" stepKey="copyProduct3BaseImageInS3" after="copyProduct2BaseImageInS3"/> </before> <after> <!-- Delete S3 Data --> <remove keyForRemoval="deleteProductImageDirectory"/> <comment userInput="BIC workaround" stepKey="deleteImportFilesDirectoryS3" after="deleteCustomer"/> <helper class="Magento\AwsS3\Test\Mftf\Helper\S3FileAssertions" method="deleteDirectory" stepKey="deleteImportImagesFilesDirectoryS3" after="deleteImportFilesDirectoryS3"> <argument name="path">var/import/images/{{ImportProduct_Bundle.name}}</argument> </helper> <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache" after="deleteImportImagesFilesDirectoryS3"> <argument name="tags" value=""/> </actionGroup> <!-- Disable AWS S3 Remote Storage & Delete Local Data --> <magentoCLI command="setup:config:set {{RemoteStorageAwsS3ConfigData.disable_options}}" stepKey="disableRemoteStorage" after="logoutFromAdmin"/> <comment userInput="BIC workaround" stepKey="deleteImportFilesDirectoryLocal" after="disableRemoteStorage"/> </after> <!-- Import Bundle Product --> <actionGroup ref="AdminFillImportFormActionGroup" stepKey="fillImportForm"> <argument name="importFile" value="{{ImportProduct_Bundle.fileName}}"/> <argument name="imagesFileDirectory" value="{{ImportProduct_Bundle.name}}"/> </actionGroup> </test> </tests>