Skip to content

Commit

Permalink
feat(release): Update SDK to support VPC API generated on 2022-07-20
Browse files Browse the repository at this point in the history
Signed-off-by: Deepak Selvakumar <[email protected]>
  • Loading branch information
deepaksibm committed Feb 24, 2023
1 parent 32e0bb4 commit 7e2c594
Show file tree
Hide file tree
Showing 8 changed files with 5,972 additions and 495 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@

# rspec failure tracking
.rspec_status

*.env
.env
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: ruby
cache: bundler
sudo: required
dist: focal

rvm:
- 2.5.1
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This makefile is used to make it easier to run the tests.

test-unit:
bundle exec rake test:unit

test-example:
bundle exec rake test:examples

test-int:
bundle exec rake test:integration
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Setting up and using the API client is simple, just pass in your authenticator o

# Pass the authenticator into the VpcV1 service
vpc_v1 = IbmVpc::VpcV1.new(
version: "2022-03-29" # Will default to the latest version if not specified
version: "2022-09-13" # Will default to the latest version if not specified
authenticator: authenticator
)

Expand Down
10 changes: 10 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ namespace :test do
t.warning = true
t.deps = %i[dotenv rubocop]
end

Rake::TestTask.new do |t|
t.name = "examples"
t.description = "Run example tests (put credentials in a .env file)"
t.libs << "test"
t.test_files = FileList["test/examples/*.rb"]
t.verbose = true
t.warning = true
t.deps = %i[dotenv rubocop]
end
end

desc "Run unit & integration tests"
Expand Down
846 changes: 642 additions & 204 deletions lib/ibm_vpc/vpc_v1.rb

Large diffs are not rendered by default.

Loading

0 comments on commit 7e2c594

Please sign in to comment.