Skip to content

Commit 008d23b

Browse files
committed
test petstore localhost
1 parent da865ca commit 008d23b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/samples-r.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
SWAGGER_BASE_PATH: /v2
2828
steps:
2929
- uses: actions/checkout@v5
30-
- name: Add hosts to /etc/hosts
31-
run: |
32-
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
30+
#- name: Add hosts to /etc/hosts
31+
# run: |
32+
# sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
3333
- uses: r-lib/actions/setup-r@v2
3434
with:
3535
use-public-rspm: true

samples/client/petstore/R/test_petstore.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ library(petstore)
55
var_pet <- Pet$new("name_example", list("photoUrls_example"), 56, Category$new(56, "name_example"), list(Tag$new(56, "name_example")), "available") # Pet | Pet object that needs to be added to the store
66

77
#Add a new pet to the store
8-
api_instance <- PetApi2$new()
8+
api_instance <- PetApi$new()
99
# Configure OAuth2 access token for authorization: petstore_auth
1010
api_instance$api_client$access_token <- 'TODO_YOUR_ACCESS_TOKEN';
1111
api_instance$api_client$username <- 'username';

0 commit comments

Comments
 (0)