testdroid-api-client 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 7d86102d4aac9035ffcd04e5b0d355807fb90452
4
- data.tar.gz: f841eb8742a2e46ae51b51aba77fa616720dac05
3
+ metadata.gz: ee583ae4568b99ed6849adc876c2b57f2f94325a
4
+ data.tar.gz: 4373bcb422bf9ee563cb1ae89d78022fe346f7e0
5
5
  SHA512:
6
- metadata.gz: 6f85f360258df234b25ea50719ddbaae878d40d4681073f28523d6fda17a8be014ab413de0432df50caeacdb293f892b52c09b4bf0b407688299c1062fca6ef9
7
- data.tar.gz: 26c909e798f09712b3e3f726dd75cdccec5c155f6dad0fa3909a29e47019b4a7fd51046f2c6f64302ea85020b99d94457e714318bb353aeef4402e74b353d90b
6
+ metadata.gz: 23fcec5757e7beab6f32c49731d9d4901ecd464e0b1cf5183734ad4afc7a97c3f4ce1cf7ff6de5bccc253ddb96ebe4cd0e15877bbd00178139e77b5c3b2e1a95
7
+ data.tar.gz: 1005ce6b0a80b863b985eb147a6977916b2fc2bfb9c592a5c6ab292100ff977d84f02944df4900ea899e6bd5b63879127dad9dc75e7fc616d87dc626b20d9e20
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testdroid-api-client (0.2.0)
4
+ testdroid-api-client (0.2.3)
5
5
  faraday (~> 0.8.8, >= 0.8.8)
6
6
  oauth2 (~> 0.9)
7
7
 
@@ -15,7 +15,7 @@ GEM
15
15
  diff-lcs (1.2.5)
16
16
  faraday (0.8.9)
17
17
  multipart-post (~> 1.2.0)
18
- jwt (1.2.0)
18
+ jwt (1.3.0)
19
19
  multi_json (1.10.1)
20
20
  multi_xml (0.5.5)
21
21
  multipart-post (1.2.0)
@@ -15,6 +15,7 @@ require 'testdroid_api/devices'
15
15
  require 'testdroid_api/device_sessions'
16
16
  require 'testdroid_api/file_sets'
17
17
  require 'testdroid_api/config'
18
+ require 'testdroid_api/parameters'
18
19
 
19
20
  require 'oauth2'
20
21
  require 'logger'
@@ -2,6 +2,8 @@ module TestdroidAPI
2
2
  class Config < CloudResource
3
3
  def initialize(uri, client, params={})
4
4
  super uri, client,"config", params
5
+ @uri, @client = uri, client
6
+ sub_items :parameters
5
7
  end
6
8
  end
7
9
  end
@@ -0,0 +1,11 @@
1
+
2
+ module TestdroidAPI
3
+ class Parameters < CloudListResource
4
+ end
5
+ class Parameter < CloudResource
6
+ def initialize(uri, client, params= {})
7
+ super uri, client,"parameter", params
8
+ end
9
+
10
+ end
11
+ end
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"get","uri":"http://devel/api/v2/users/1/projects/100730/config/parameters?limit=355043550","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["Faraday v0.8.9"],"Accept":["application/json"],"Authorization":["Bearer 69e0c32e-4ce2-4724-a23e-c4cdbce08806"]}},"response":{"status":{"code":200,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:46:43 GMT"],"content-type":["application/json;charset=UTF-8"],"transfer-encoding":["chunked"],"connection":["keep-alive"],"access-control-allow-methods":["GET, POST, OPTIONS, DELETE"],"access-control-allow-credentials":["true"],"access-control-allow-headers":["DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"]},"body":{"encoding":"UTF-8","base64_string":"eyJkYXRhIjpbeyJpZCI6Mywia2V5IjoiYWJjIiwidmFsdWUiOiJ4eXoifSx7\nImlkIjo0LCJrZXkiOiJLRVkiLCJ2YWx1ZSI6IlZBTFVFIn1dLCJsaW1pdCI6\nMzU1MDQzNTUwLCJuZXh0IjpudWxsLCJvZmZzZXQiOjAsInByZXZpb3VzIjpu\ndWxsLCJzZWFyY2giOiIiLCJzb3J0IjoiIiwidG90YWwiOjIsImVtcHR5Ijpm\nYWxzZX0=\n"},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:42:02 GMT"},{"request":{"method":"delete","uri":"http://devel/api/v2/users/1/projects/100730/config/parameters/3","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["Faraday v0.8.9"],"Accept":["application/json"],"Authorization":["Bearer 69e0c32e-4ce2-4724-a23e-c4cdbce08806"]}},"response":{"status":{"code":204,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:46:44 GMT"],"connection":["keep-alive"],"access-control-allow-methods":["GET, POST, OPTIONS, DELETE"],"access-control-allow-credentials":["true"],"access-control-allow-headers":["DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"]},"body":{"encoding":"US-ASCII","base64_string":""},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:42:04 GMT"},{"request":{"method":"delete","uri":"http://devel/api/v2/users/1/projects/100730/config/parameters/4","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["Faraday v0.8.9"],"Accept":["application/json"],"Authorization":["Bearer 69e0c32e-4ce2-4724-a23e-c4cdbce08806"]}},"response":{"status":{"code":204,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:46:46 GMT"],"connection":["keep-alive"],"access-control-allow-methods":["GET, POST, OPTIONS, DELETE"],"access-control-allow-credentials":["true"],"access-control-allow-headers":["DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"]},"body":{"encoding":"US-ASCII","base64_string":""},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:42:05 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"get","uri":"http://devel/api/v2/users/1/projects","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["Faraday v0.8.9"],"Accept":["application/json"],"Authorization":["Bearer 69e0c32e-4ce2-4724-a23e-c4cdbce08806"]}},"response":{"status":{"code":200,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:26:54 GMT"],"content-type":["application/json;charset=UTF-8"],"transfer-encoding":["chunked"],"connection":["keep-alive"],"access-control-allow-methods":["GET, POST, OPTIONS, DELETE"],"access-control-allow-credentials":["true"],"access-control-allow-headers":["DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"]},"body":{"encoding":"UTF-8","base64_string":"eyJkYXRhIjpbeyJpZCI6MTAwNzMwLCJhcmNoaXZpbmdJdGVtQ291bnQiOjEy\nMCwiYXJjaGl2aW5nU3RyYXRlZ3kiOiJEQVlTIiwiY29tbW9uIjpmYWxzZSwi\nZGVzY3JpcHRpb24iOiIiLCJuYW1lIjoiQW5kcm9pZCBQcm9qZWN0Iiwic2hh\ncmVkQnlFbWFpbCI6ImFkbWluQGxvY2FsaG9zdCIsInNoYXJlZEJ5SWQiOjEs\nInR5cGUiOiJBTkRST0lEIiwiY3JlYXRlVGltZSI6MTQ0Njc1OTQwNDAwMCwi\nYXJjaGl2ZVRpbWUiOm51bGwsImFyY2hpdmluZ1N0cmF0ZWd5RGlzcGxheVZh\nbHVlIjoiMTIwIGRheXMifV0sImxpbWl0IjoyMCwibmV4dCI6bnVsbCwib2Zm\nc2V0IjowLCJwcmV2aW91cyI6bnVsbCwic2VhcmNoIjoiIiwic29ydCI6IiIs\nInRvdGFsIjoxLCJlbXB0eSI6ZmFsc2V9\n"},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:22:13 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"http://devel/oauth/token","body":{"encoding":"UTF-8","base64_string":"Z3JhbnRfdHlwZT1wYXNzd29yZCZ1c2VybmFtZT1hZG1pbiU0MGxvY2FsaG9z\ndCZwYXNzd29yZD1hZG1pbiZjbGllbnRfaWQ9dGVzdGRyb2lkLWNsb3VkLWFw\naSZjbGllbnRfc2VjcmV0\n"},"headers":{"User-Agent":["Faraday v0.8.9"],"Content-Type":["application/x-www-form-urlencoded"],"Accept":["application/json"]}},"response":{"status":{"code":200,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:26:51 GMT"],"content-type":["application/json;charset=UTF-8"],"transfer-encoding":["chunked"],"connection":["keep-alive"],"cache-control":["no-store"],"pragma":["no-cache"],"access-control-allow-methods":["GET, POST, OPTIONS, DELETE"],"access-control-allow-credentials":["true"],"access-control-allow-headers":["DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"]},"body":{"encoding":"UTF-8","base64_string":"eyJhY2Nlc3NfdG9rZW4iOiI2OWUwYzMyZS00Y2UyLTQ3MjQtYTIzZS1jNGNk\nYmNlMDg4MDYiLCJ0b2tlbl90eXBlIjoiYmVhcmVyIiwicmVmcmVzaF90b2tl\nbiI6IjI0NzRhM2QyLTM0MmUtNDU1OS04ZTJlLWEyY2ZkZTNjMjdhMCIsImV4\ncGlyZXNfaW4iOjE3MjAsInNjb3BlIjoicmVhZCB3cml0ZSJ9\n"},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:22:10 GMT"},{"request":{"method":"get","uri":"http://devel/api/v2/me","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["Faraday v0.8.9"],"Accept":["application/json"],"Authorization":["Bearer 69e0c32e-4ce2-4724-a23e-c4cdbce08806"]}},"response":{"status":{"code":200,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:26:52 GMT"],"content-type":["application/json;charset=UTF-8"],"transfer-encoding":["chunked"],"connection":["keep-alive"],"access-control-allow-methods":["GET, POST, OPTIONS, DELETE"],"access-control-allow-credentials":["true"],"access-control-allow-headers":["DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6MSwiYWN0aXZlU2VydmljZUlkIjpudWxsLCJhY2NvdW50SWQiOjEs\nImFkZHJlc3MiOm51bGwsImNpdHkiOm51bGwsImNvZGUiOm51bGwsImNvdW50\ncnkiOm51bGwsImNyZWF0ZVRpbWUiOjE0MTYyMTc1MjEwMDAsImVtYWlsIjoi\nYWRtaW5AbG9jYWxob3N0IiwiZW1haWxOb3RpZmljYXRpb24iOiJBTFdBWVMi\nLCJlbmFibGVkIjp0cnVlLCJpc01haW5Vc2VyIjp0cnVlLCJsYXN0TG9naW5U\naW1lIjoxNDQ3MTg3MjExMDAwLCJtYWluVXNlckVtYWlsIjoiYWRtaW5AbG9j\nYWxob3N0IiwibWFpblVzZXJJZCI6MSwibmFtZSI6IkFkbWluIiwib3JnYW5p\nemF0aW9uIjpudWxsLCJwaG9uZSI6bnVsbCwicm9sZXMiOlt7ImlkIjoxLCJh\nZGRlZEJ5RW1haWwiOm51bGwsImV4cGlyZVRpbWUiOm51bGwsIm5hbWUiOiJB\nRE1JTiJ9LHsiaWQiOjIsImFkZGVkQnlFbWFpbCI6bnVsbCwiZXhwaXJlVGlt\nZSI6bnVsbCwibmFtZSI6IlJFQ09SREVSX1JFQyJ9LHsiaWQiOjI4LCJhZGRl\nZEJ5RW1haWwiOm51bGwsImV4cGlyZVRpbWUiOm51bGwsIm5hbWUiOiJCSUxM\nSU5HIn0seyJpZCI6MjksImFkZGVkQnlFbWFpbCI6bnVsbCwiZXhwaXJlVGlt\nZSI6bnVsbCwibmFtZSI6IlBST0pFQ1RfQURNSU4ifSx7ImlkIjozMCwiYWRk\nZWRCeUVtYWlsIjpudWxsLCJleHBpcmVUaW1lIjpudWxsLCJuYW1lIjoiQ0xV\nU1RFUiJ9XSwic3RhdGUiOm51bGwsInN0YXR1cyI6IkVOQUJMRUQiLCJ0aW1l\nWm9uZSI6bnVsbCwidmF0SUQiOm51bGwsImFwaUtleSI6IjN6dWVzclMyVjhv\nOUZuU1F0MnlKQlBvTlpVNEZ2Q2N6In0=\n"},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:22:11 GMT"},{"request":{"method":"get","uri":"http://devel/api/v2/users/1","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["Faraday v0.8.9"],"Accept":["application/json"],"Authorization":["Bearer 69e0c32e-4ce2-4724-a23e-c4cdbce08806"]}},"response":{"status":{"code":200,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:26:53 GMT"],"content-type":["application/json;charset=UTF-8"],"transfer-encoding":["chunked"],"connection":["keep-alive"],"access-control-allow-methods":["GET, POST, OPTIONS, DELETE"],"access-control-allow-credentials":["true"],"access-control-allow-headers":["DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6MSwiYWN0aXZlU2VydmljZUlkIjpudWxsLCJhY2NvdW50SWQiOjEs\nImFkZHJlc3MiOm51bGwsImNpdHkiOm51bGwsImNvZGUiOm51bGwsImNvdW50\ncnkiOm51bGwsImNyZWF0ZVRpbWUiOjE0MTYyMTc1MjEwMDAsImVtYWlsIjoi\nYWRtaW5AbG9jYWxob3N0IiwiZW1haWxOb3RpZmljYXRpb24iOiJBTFdBWVMi\nLCJlbmFibGVkIjp0cnVlLCJpc01haW5Vc2VyIjp0cnVlLCJsYXN0TG9naW5U\naW1lIjoxNDQ3MTg3MjExMDAwLCJtYWluVXNlckVtYWlsIjoiYWRtaW5AbG9j\nYWxob3N0IiwibWFpblVzZXJJZCI6MSwibmFtZSI6IkFkbWluIiwib3JnYW5p\nemF0aW9uIjpudWxsLCJwaG9uZSI6bnVsbCwicm9sZXMiOlt7ImlkIjoxLCJh\nZGRlZEJ5RW1haWwiOm51bGwsImV4cGlyZVRpbWUiOm51bGwsIm5hbWUiOiJB\nRE1JTiJ9LHsiaWQiOjIsImFkZGVkQnlFbWFpbCI6bnVsbCwiZXhwaXJlVGlt\nZSI6bnVsbCwibmFtZSI6IlJFQ09SREVSX1JFQyJ9LHsiaWQiOjI4LCJhZGRl\nZEJ5RW1haWwiOm51bGwsImV4cGlyZVRpbWUiOm51bGwsIm5hbWUiOiJCSUxM\nSU5HIn0seyJpZCI6MjksImFkZGVkQnlFbWFpbCI6bnVsbCwiZXhwaXJlVGlt\nZSI6bnVsbCwibmFtZSI6IlBST0pFQ1RfQURNSU4ifSx7ImlkIjozMCwiYWRk\nZWRCeUVtYWlsIjpudWxsLCJleHBpcmVUaW1lIjpudWxsLCJuYW1lIjoiQ0xV\nU1RFUiJ9XSwic3RhdGUiOm51bGwsInN0YXR1cyI6IkVOQUJMRUQiLCJ0aW1l\nWm9uZSI6bnVsbCwidmF0SUQiOm51bGwsImFwaUtleSI6IjN6dWVzclMyVjhv\nOUZuU1F0MnlKQlBvTlpVNEZ2Q2N6In0=\n"},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:22:12 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"post","uri":"http://devel/api/v2/users/1/projects/100730/config/parameters?key=KEY&value=VALUE","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["Faraday v0.8.9"],"Accept":["application/json"],"Authorization":["Bearer 69e0c32e-4ce2-4724-a23e-c4cdbce08806"]}},"response":{"status":{"code":201,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:26:55 GMT"],"content-type":["application/json;charset=UTF-8"],"transfer-encoding":["chunked"],"connection":["keep-alive"],"access-control-allow-methods":["GET, POST, OPTIONS, DELETE"],"access-control-allow-credentials":["true"],"access-control-allow-headers":["DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"]},"body":{"encoding":"UTF-8","base64_string":"eyJpZCI6NCwia2V5IjoiS0VZIiwidmFsdWUiOiJWQUxVRSJ9\n"},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:22:14 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1 @@
1
+ {"http_interactions":[{"request":{"method":"get","uri":"http://devel/api/v2/users/1/projects","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["Faraday v0.8.9"],"Accept":["application/json"],"Authorization":["Bearer 69e0c32e-4ce2-4724-a23e-c4cdbce08806"]}},"response":{"status":{"code":200,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:26:56 GMT"],"content-type":["application/json;charset=UTF-8"],"transfer-encoding":["chunked"],"connection":["keep-alive"],"access-control-allow-methods":["GET, POST, OPTIONS, DELETE"],"access-control-allow-credentials":["true"],"access-control-allow-headers":["DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"]},"body":{"encoding":"UTF-8","base64_string":"eyJkYXRhIjpbeyJpZCI6MTAwNzMwLCJhcmNoaXZpbmdJdGVtQ291bnQiOjEy\nMCwiYXJjaGl2aW5nU3RyYXRlZ3kiOiJEQVlTIiwiY29tbW9uIjpmYWxzZSwi\nZGVzY3JpcHRpb24iOiIiLCJuYW1lIjoiQW5kcm9pZCBQcm9qZWN0Iiwic2hh\ncmVkQnlFbWFpbCI6ImFkbWluQGxvY2FsaG9zdCIsInNoYXJlZEJ5SWQiOjEs\nInR5cGUiOiJBTkRST0lEIiwiY3JlYXRlVGltZSI6MTQ0Njc1OTQwNDAwMCwi\nYXJjaGl2ZVRpbWUiOm51bGwsImFyY2hpdmluZ1N0cmF0ZWd5RGlzcGxheVZh\nbHVlIjoiMTIwIGRheXMifV0sImxpbWl0IjoyMCwibmV4dCI6bnVsbCwib2Zm\nc2V0IjowLCJwcmV2aW91cyI6bnVsbCwic2VhcmNoIjoiIiwic29ydCI6IiIs\nInRvdGFsIjoxLCJlbXB0eSI6ZmFsc2V9\n"},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:22:16 GMT"},{"request":{"method":"get","uri":"http://devel/api/v2/users/1/projects/100730/config/parameters/4","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"User-Agent":["Faraday v0.8.9"],"Accept":["application/json"],"Authorization":["Bearer 69e0c32e-4ce2-4724-a23e-c4cdbce08806"]}},"response":{"status":{"code":500,"message":null},"headers":{"server":["nginx/1.8.0"],"date":["Tue, 10 Nov 2015 20:26:58 GMT"],"content-type":["application/json;charset=UTF-8"],"transfer-encoding":["chunked"],"connection":["keep-alive"]},"body":{"encoding":"UTF-8","base64_string":"eyJtZXNzYWdlIjoiSW50ZXJuYWwgU2VydmVyIEVycm9yIiwic3RhdHVzQ29k\nZSI6NTAwfQ==\n"},"http_version":null},"recorded_at":"Tue, 10 Nov 2015 20:22:17 GMT"}],"recorded_with":"VCR 2.9.3"}
@@ -0,0 +1,44 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ describe TestdroidAPI::Config do
4
+ before :all do
5
+ VCR.use_cassette('pcp_oauth2_auth_config', :record => :new_episodes) do
6
+ @user = client_local_host("http://devel").authorize
7
+ end
8
+ end
9
+
10
+ it 'get current project config params' do
11
+ project_name = "Android Project"
12
+ VCR.use_cassette('pcp_get_current', :record => :new_episodes) do
13
+ android_project = @user.projects.list.detect {|project| project.name.casecmp(project_name) == 0 }
14
+ expect(android_project.config.parameters).to_not be_nil
15
+
16
+ end
17
+ end
18
+ it 'set project config params' do
19
+ project_name = "Android Project"
20
+ android_project = nil
21
+ params_id = nil
22
+ VCR.use_cassette('pcp_get_current', :record => :new_episodes) do
23
+ android_project = @user.projects.list.detect {|project| project.name.casecmp(project_name) == 0 }
24
+ expect(android_project.config.parameters).to_not be_nil
25
+ end
26
+ VCR.use_cassette('pcp_delete_params', :record => :new_episodes) do
27
+ config_params = android_project.config.parameters.list_all.each { |param| param.delete}
28
+ end
29
+
30
+ VCR.use_cassette('pcp_set_current_config', :record => :new_episodes) do
31
+ config_params = android_project.config.parameters.create({:params => {:key => 'KEY', :value => "VALUE"}})
32
+ params_id = config_params.id
33
+
34
+ end
35
+ VCR.use_cassette('pcp_validate_config', :record => :new_episodes) do
36
+ android_project = @user.projects.list.detect {|project| project.name.casecmp(project_name) == 0 }
37
+ expect(android_project.config.parameters.get(params_id).key).to eq ('KEY')
38
+ expect(android_project.config.parameters.get(params_id).value).to eq ('VALUE')
39
+ end
40
+ VCR.use_cassette('pcp_delete_params_final', :record => :new_episodes) do
41
+ config_params = android_project.config.parameters.list_all.each { |param| param.delete}
42
+ end
43
+ end
44
+ end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "testdroid-api-client"
3
- s.version = "0.2.2"
3
+ s.version = "0.2.3"
4
4
 
5
5
 
6
6
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testdroid-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sakari Rautiainen
@@ -166,6 +166,7 @@ files:
166
166
  - lib/testdroid_api/files.rb
167
167
  - lib/testdroid_api/label_groups.rb
168
168
  - lib/testdroid_api/labels.rb
169
+ - lib/testdroid_api/parameters.rb
169
170
  - lib/testdroid_api/projects.rb
170
171
  - lib/testdroid_api/runs.rb
171
172
  - lib/testdroid_api/user.rb
@@ -221,6 +222,11 @@ files:
221
222
  - spec/fixtures/cassettes/pc_oauth2_auth_config.json
222
223
  - spec/fixtures/cassettes/pc_set_current_config.json
223
224
  - spec/fixtures/cassettes/pc_validate_config.json
225
+ - spec/fixtures/cassettes/pcp_delete_params.json
226
+ - spec/fixtures/cassettes/pcp_get_current.json
227
+ - spec/fixtures/cassettes/pcp_oauth2_auth_config.json
228
+ - spec/fixtures/cassettes/pcp_set_current_config.json
229
+ - spec/fixtures/cassettes/pcp_validate_config.json
224
230
  - spec/fixtures/cassettes/r_all_project_33029366_runs.json
225
231
  - spec/fixtures/cassettes/r_delete_test_run.json
226
232
  - spec/fixtures/cassettes/r_oauth2_auth_runs.json
@@ -229,6 +235,7 @@ files:
229
235
  - spec/fixtures/cassettes/upload_files.json
230
236
  - spec/fixtures/project.json
231
237
  - spec/label_groups_spec.rb
238
+ - spec/project_config_parameters_spec.rb
232
239
  - spec/project_config_spec.rb
233
240
  - spec/project_spec.rb
234
241
  - spec/run_spec.rb
@@ -302,6 +309,11 @@ test_files:
302
309
  - spec/fixtures/cassettes/pc_oauth2_auth_config.json
303
310
  - spec/fixtures/cassettes/pc_set_current_config.json
304
311
  - spec/fixtures/cassettes/pc_validate_config.json
312
+ - spec/fixtures/cassettes/pcp_delete_params.json
313
+ - spec/fixtures/cassettes/pcp_get_current.json
314
+ - spec/fixtures/cassettes/pcp_oauth2_auth_config.json
315
+ - spec/fixtures/cassettes/pcp_set_current_config.json
316
+ - spec/fixtures/cassettes/pcp_validate_config.json
305
317
  - spec/fixtures/cassettes/r_all_project_33029366_runs.json
306
318
  - spec/fixtures/cassettes/r_delete_test_run.json
307
319
  - spec/fixtures/cassettes/r_oauth2_auth_runs.json
@@ -310,6 +322,7 @@ test_files:
310
322
  - spec/fixtures/cassettes/upload_files.json
311
323
  - spec/fixtures/project.json
312
324
  - spec/label_groups_spec.rb
325
+ - spec/project_config_parameters_spec.rb
313
326
  - spec/project_config_spec.rb
314
327
  - spec/project_spec.rb
315
328
  - spec/run_spec.rb