fastlane-plugin-aws_device_farm 0.3.20 → 0.3.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e91653f74dbcf72292f3e642baee0a139ab7b9a2eacbc48c943ad23e791dc3c2
4
- data.tar.gz: 98c2cd4e0829037c141d1b9a2d59cf5eb2e6d5cddfc939b0c9f69585c0b110f0
3
+ metadata.gz: 5c173cb27096b637d03769ad277d755ff07ffd5e12616bd760a35862a91d9eac
4
+ data.tar.gz: 193bf0d42adced2d15f63f83f2ffd8ef96c151ece5ab902d4da2791a8596003b
5
5
  SHA512:
6
- metadata.gz: c9abddf60d30aa09fc36e67ae12a1050beaf8e65cf4eed1ceaa35e08fd0e306c47242264f902f23976817994dda3ca89ead18304f116bf08b1eb2e95d1a14e1d
7
- data.tar.gz: 5bf881fc4e026fa5f2337fcaf4865a5a198a1142a9d1b5b2d725116ff864873f1eca2f2feb88dd1ca5b914a32b8e8cfac82dd88e43ee4b7f125145530b57066a
6
+ metadata.gz: 3583ac27a9f2b08e84b7c27e32dbb0bdf7b19ab4a3ce1ac36b6b1e6931aa02e4915b5e34c588a59befdf7b7e342ee87b9c91f63d1516074866b7a142351703d3
7
+ data.tar.gz: 3085a0b7407122706d0baab2918b79934587e80c8c8093e339a4d04bd01e542486c215dbd3b95c98014f85f45d05b095c5ee9b9f0298d54e2ad78a750675554a
data/README.md CHANGED
@@ -84,21 +84,32 @@ The plugin also exposes two ENV variables in case you want to make additional ca
84
84
 
85
85
  * **aws_device_farm**
86
86
 
87
- | Option | Default | Description | Type |
88
- |---|---|---|---|
89
- | name | fastlane | AWS Device Farm Project Name | String |
90
- | binary_path | | Path to App Binary | String |
91
- | test_binary_path | | Path to test bundle | String |
92
- | test_package_type | | Type of test package | String |
93
- | test_type | | Type of test | String |
94
- | device_pool | IOS | AWS Device Farm Device Pool | String |
95
- | wait_for_completion | true | Wait for Test-Run to be completed | Boolean |
96
- | allow_device_errors | false | Do you want to allow device booting errors? | Boolean |
97
- | allow_failed_tests | false | Do you want to allow failing tests? | Boolean |
98
- | test_spec | | Define the device farm custom TestSpec ARN to use (can be obtained using the AWS CLI `devicefarm list-uploads` command) | String |
87
+ | Option | Default | Description | Type | Required |
88
+ |---|---|---|---|---|
89
+ | name | `fastlane` | AWS Device Farm Project Name | String | :white_check_mark: |
90
+ | run_name | | Define the name of the device farm run | String | |
91
+ | binary_path | | Path to App Binary | String | :white_check_mark: |
92
+ | test_binary_path | | Path to test bundle | String | |
93
+ | test_package_type | | Type of test package | String | |
94
+ | test_type | | Type of test | String | |
95
+ | path | | Define the path of the application binary (apk or ipa) to upload to the device farm project | String | :white_check_mark: |
96
+ | device_pool | `IOS` | AWS Device Farm Device Pool | String | :white_check_mark: |
97
+ | network_profile_arn | | Network profile arn you want to use for running the applications | String | |
98
+ | wait_for_completion | `true` | Wait for Test-Run to be completed | Boolean | |
99
+ | allow_device_errors | `false` | Do you want to allow device booting errors? | Boolean | |
100
+ | allow_failed_tests | `false` | Do you want to allow failing tests? | Boolean | |
99
101
  | filter | | Define a filter for your test run and only run the tests in the filter (note that using `test_spec` overrides the `filter` option) | String |
100
- | print_web_url_of_run | false | Do you want to print the web url of run in the messages? | Boolean |
101
- | print_waiting_periods | true | Do you want to print `.` while waiting for a run? | Boolean
102
+ | billing_method | `METERED` | Specify the billing method for the run | String | |
103
+ | locale | `en_US` | Specify the locale for the run | String | |
104
+ | test_spec | | Define the device farm custom TestSpec ARN to use (can be obtained using the AWS CLI `devicefarm list-uploads` command) | String |
105
+ | print_web_url_of_run | `false` | Do you want to print the web url of run in the messages? | Boolean | |
106
+ | print_waiting_periods | `true` | Do you want to print `.` while waiting for a run? | Boolean | |
107
+ | junit_xml_output_path | `junit.xml` | JUnit xml output path | String | |
108
+ | junit_xml | `false` | Do you want to create JUnit.xml? | Boolean | |
109
+ | artifact | `false` | Do you want to download Artifact? | Boolean | |
110
+ | artifact_output_dir | `./test_outputs` | Artifact output directory | String | |
111
+ | artifact_types | `[]` | Specify the artifact types one wants to download | Array | |
112
+
102
113
 
103
114
  Possible types see: http://docs.aws.amazon.com/sdkforruby/api/Aws/DeviceFarm/Client.html#create_upload-instance_method
104
115
 
@@ -85,12 +85,9 @@ module Fastlane
85
85
 
86
86
  run
87
87
  end
88
-
89
- # Get the network profile from params if value is provided
90
- if params[:network_profile_arn]
91
- configuration[:network_profile_arn] = params[:network_profile_arn]
92
- end
93
-
88
+
89
+
90
+
94
91
  # rubocop:enable Metrics/BlockNesting
95
92
  #
96
93
  #####################################################
@@ -233,10 +230,9 @@ module Fastlane
233
230
  key: :network_profile_arn,
234
231
  env_name: 'FL_AWS_DEVICE_FARM_NETWORK_PROFILE_ARN',
235
232
  description: 'Network profile arn you want to use for running the applications',
236
- default_value: nil,
237
- optional: false,
233
+ optional: true,
238
234
  is_string: true
239
- ),
235
+ ),
240
236
  FastlaneCore::ConfigItem.new(
241
237
  key: :wait_for_completion,
242
238
  env_name: 'FL_AWS_DEVICE_FARM_WAIT_FOR_COMPLETION',
@@ -353,7 +349,13 @@ module Fastlane
353
349
  'SCREENSHOT']
354
350
  raise "Artifact type concludes invalid values are: '#{(value - valid_values)}'. 🙈".red unless (value - valid_values).empty?
355
351
  end
356
- )
352
+ ),
353
+ FastlaneCore::ConfigItem.new(
354
+ key: :additional_configuration,
355
+ description: 'Additional configuration settings',
356
+ type: Hash,
357
+ optional: true,
358
+ ),
357
359
  ]
358
360
  end
359
361
 
@@ -444,9 +446,18 @@ module Fastlane
444
446
  configuration_hash = {
445
447
  billing_method: params[:billing_method],
446
448
  locale: params[:locale],
447
- network_profile_arn: params[:network_profile_arn]
448
449
  }
449
450
 
451
+ # Get the network profile from params if value is provided
452
+ if params[:network_profile_arn]
453
+ configuration_hash[:network_profile_arn] = params[:network_profile_arn]
454
+ end
455
+
456
+ # Add additional configuration arguments if provided.
457
+ if params[:additional_configuration]
458
+ configuration_hash.update(params[:additional_configuration])
459
+ end
460
+
450
461
  @client.schedule_run({
451
462
  name: name,
452
463
  project_arn: project.arn,
@@ -457,6 +468,7 @@ module Fastlane
457
468
  }).run
458
469
  end
459
470
 
471
+
460
472
  def self.fetch_run_status(run)
461
473
  @client.get_run({
462
474
  arn: run.arn
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AwsDeviceFarm
3
- VERSION = "0.3.20"
3
+ VERSION = "0.3.23"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-aws_device_farm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.20
4
+ version: 0.3.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helmut Januschka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-28 00:00:00.000000000 Z
11
+ date: 2021-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -140,7 +140,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.0.8
143
+ rubyforge_project:
144
+ rubygems_version: 2.7.9
144
145
  signing_key:
145
146
  specification_version: 4
146
147
  summary: Run UI Tests on AWS Devicefarm