fastlane-plugin-aws_device_farm 0.3.19 → 0.3.22

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: 1807fefc831fda2247c2fe7fc0fb93fc645faa2a56cd987f97ba87e62c4e3246
4
- data.tar.gz: 882df9ab7719c0743fb19b493dcfe86ef8d4672ddef770baf8bffec1c0746460
3
+ metadata.gz: 544099256d12f0d4004bf995b4637165af3e9cb3f0f1025b83ae0811a85dcd18
4
+ data.tar.gz: c9d236866960147a9cc11b2e790448ee6e8a59820d2a6f4b698c399045a6eea4
5
5
  SHA512:
6
- metadata.gz: ddf94e4ca570f5a63f33540695288d1695bc08187979d135193f519390d5aa95a63a6d9cc9ad8a65a9e7aaa340a41f9061fa25842aabe071bf5f65c727d61e45
7
- data.tar.gz: 5a093c822c3930e3e78a6a4805b081480ce48c380150cfdc95dac22da855948946c95a7f160b279e201127cc69e4f2d8faa6547ae760d7d74d6dde22789dbe39
6
+ metadata.gz: f67516db86753025e49530d857f347f7531d8c0692ecc773476eebd980dd11246604c9531cdf224e9d574d94816eec4eac90b95ab824d07b5227c7f7a4ce7f24
7
+ data.tar.gz: 38123de0baf6645c47ef6b35dcc0e93d981f565fc8c1c85c136d10664c395acd31e23efc96eb1c6a6030d121cd74e2b2824e5a6e532b3c4d8bcecb1e388320e6
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,11 +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,
238
- is_string: true,
239
- optional: false
240
- ),
233
+ optional: true,
234
+ is_string: true
235
+ ),
241
236
  FastlaneCore::ConfigItem.new(
242
237
  key: :wait_for_completion,
243
238
  env_name: 'FL_AWS_DEVICE_FARM_WAIT_FOR_COMPLETION',
@@ -354,7 +349,13 @@ module Fastlane
354
349
  'SCREENSHOT']
355
350
  raise "Artifact type concludes invalid values are: '#{(value - valid_values)}'. 🙈".red unless (value - valid_values).empty?
356
351
  end
357
- )
352
+ ),
353
+ FastlaneCore::ConfigItem.new(
354
+ key: :additional_configuration,
355
+ description: 'Additional configuration settings',
356
+ type: Hash,
357
+ optional: true,
358
+ ),
358
359
  ]
359
360
  end
360
361
 
@@ -445,9 +446,18 @@ module Fastlane
445
446
  configuration_hash = {
446
447
  billing_method: params[:billing_method],
447
448
  locale: params[:locale],
448
- network_profile_arn: params[:network_profile_arn]
449
449
  }
450
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
+
451
461
  @client.schedule_run({
452
462
  name: name,
453
463
  project_arn: project.arn,
@@ -458,6 +468,7 @@ module Fastlane
458
468
  }).run
459
469
  end
460
470
 
471
+
461
472
  def self.fetch_run_status(run)
462
473
  @client.get_run({
463
474
  arn: run.arn
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AwsDeviceFarm
3
- VERSION = "0.3.19"
3
+ VERSION = "0.3.22"
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.19
4
+ version: 0.3.22
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-06 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