-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add eim tests and update test_provider_oapi
- Loading branch information
1 parent
4f50978
commit bde7ecf
Showing
55 changed files
with
3,498 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -355,4 +355,4 @@ | |
} | ||
], | ||
"check_results": "########" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -371,4 +371,4 @@ | |
} | ||
], | ||
"check_results": "########" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -371,4 +371,4 @@ | |
} | ||
], | ||
"check_results": "########" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -377,4 +377,4 @@ | |
} | ||
], | ||
"check_results": "########" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -341,4 +341,4 @@ | |
} | ||
], | ||
"check_results": "########" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"api:*" | ||
], | ||
"Effect": "Allow", | ||
"Resource": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"api:*" | ||
], | ||
"Effect": "Allow", | ||
"Resource": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"api:Read*" | ||
], | ||
"Effect": "Allow", | ||
"Resource": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"api:*VM*" | ||
], | ||
"Effect": "Allow", | ||
"Resource": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"api:ReadConsumptionAccount" | ||
], | ||
"Resource": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"api:Read*" | ||
], | ||
"Effect": "Allow", | ||
"Resource": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": "*", | ||
"Resource": "*", | ||
"Effect": "Allow" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"api:Read*" | ||
], | ||
"Effect": "Allow", | ||
"Resource": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/qa_provider_oapi/data/policies_files/policy_ReadAccountConsumption.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"api:ReadConsumptionAccount" | ||
], | ||
"Resource": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} |
83 changes: 83 additions & 0 deletions
83
...sources/TF001_user_resource_with_aksk_attributes_ok/step1.user_resource_attributes_ok.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"version": "########", | ||
"terraform_version": "########", | ||
"serial": "########", | ||
"lineage": "########", | ||
"outputs": {}, | ||
"resources": [ | ||
{ | ||
"mode": "managed", | ||
"type": "outscale_access_key", | ||
"name": "access_key_eim01", | ||
"provider": "provider[\"registry.terraform.io/outscale/outscale\"]", | ||
"instances": [ | ||
{ | ||
"schema_version": 0, | ||
"attributes": { | ||
"access_key_id": "##id-0##", | ||
"creation_date": "########", | ||
"expiration_date": "2028-01-01T00:00:00.000+0000", | ||
"id": "##id-0##", | ||
"last_modification_date": "########", | ||
"request_id": "########", | ||
"secret_key": "########", | ||
"state": "ACTIVE", | ||
"user_name": "User-terraform-2" | ||
}, | ||
"sensitive_attributes": [], | ||
"private": "bnVsbA==", | ||
"dependencies": [ | ||
"outscale_user.user-2" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"mode": "managed", | ||
"type": "outscale_user", | ||
"name": "user-1", | ||
"provider": "provider[\"registry.terraform.io/outscale/outscale\"]", | ||
"instances": [ | ||
{ | ||
"schema_version": 0, | ||
"attributes": { | ||
"creation_date": "########", | ||
"id": "##id-1##", | ||
"last_modification_date": "########", | ||
"path": "/terraform/", | ||
"policy": [], | ||
"user_email": "[email protected]", | ||
"user_id": "##id-1##", | ||
"user_name": "User-terraform-1" | ||
}, | ||
"sensitive_attributes": [], | ||
"private": "bnVsbA==" | ||
} | ||
] | ||
}, | ||
{ | ||
"mode": "managed", | ||
"type": "outscale_user", | ||
"name": "user-2", | ||
"provider": "provider[\"registry.terraform.io/outscale/outscale\"]", | ||
"instances": [ | ||
{ | ||
"schema_version": 0, | ||
"attributes": { | ||
"creation_date": "########", | ||
"id": "##id-2##", | ||
"last_modification_date": "########", | ||
"path": "/", | ||
"policy": [], | ||
"user_email": "[email protected]", | ||
"user_id": "##id-2##", | ||
"user_name": "User-terraform-2" | ||
}, | ||
"sensitive_attributes": [], | ||
"private": "bnVsbA==" | ||
} | ||
] | ||
} | ||
], | ||
"check_results": "########" | ||
} |
18 changes: 18 additions & 0 deletions
18
...esources/TF001_user_resource_with_aksk_attributes_ok/step1.user_resource_attributes_ok.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "outscale_user" "user-1" { | ||
user_name = "User-terraform-1" | ||
user_email = "[email protected]" | ||
path = "/terraform/" | ||
} | ||
|
||
|
||
resource "outscale_user" "user-2" { | ||
user_name = "User-terraform-2" | ||
} | ||
|
||
resource "outscale_access_key" "access_key_eim01" { | ||
user_name = outscale_user.user-2.user_name | ||
state = "ACTIVE" | ||
expiration_date = "2028-01-01" | ||
depends_on=[outscale_user.user-2] | ||
} | ||
|
83 changes: 83 additions & 0 deletions
83
...m_resources/TF001_user_resource_with_aksk_attributes_ok/step2.user_resource_update_ok.ref
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"version": "########", | ||
"terraform_version": "########", | ||
"serial": "########", | ||
"lineage": "########", | ||
"outputs": {}, | ||
"resources": [ | ||
{ | ||
"mode": "managed", | ||
"type": "outscale_access_key", | ||
"name": "access_key_eim01", | ||
"provider": "provider[\"registry.terraform.io/outscale/outscale\"]", | ||
"instances": [ | ||
{ | ||
"schema_version": 0, | ||
"attributes": { | ||
"access_key_id": "##id-0##", | ||
"creation_date": "########", | ||
"expiration_date": "2028-01-01T00:00:00.000+0000", | ||
"id": "##id-0##", | ||
"last_modification_date": "########", | ||
"request_id": "########", | ||
"secret_key": "########", | ||
"state": "ACTIVE", | ||
"user_name": "User-terraform-2" | ||
}, | ||
"sensitive_attributes": [], | ||
"private": "bnVsbA==", | ||
"dependencies": [ | ||
"outscale_user.user-2" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"mode": "managed", | ||
"type": "outscale_user", | ||
"name": "user-1", | ||
"provider": "provider[\"registry.terraform.io/outscale/outscale\"]", | ||
"instances": [ | ||
{ | ||
"schema_version": 0, | ||
"attributes": { | ||
"creation_date": "########", | ||
"id": "##id-1##", | ||
"last_modification_date": "########", | ||
"path": "/terraform_update/", | ||
"policy": [], | ||
"user_email": "[email protected]", | ||
"user_id": "##id-1##", | ||
"user_name": "User-terraform-11" | ||
}, | ||
"sensitive_attributes": [], | ||
"private": "bnVsbA==" | ||
} | ||
] | ||
}, | ||
{ | ||
"mode": "managed", | ||
"type": "outscale_user", | ||
"name": "user-2", | ||
"provider": "provider[\"registry.terraform.io/outscale/outscale\"]", | ||
"instances": [ | ||
{ | ||
"schema_version": 0, | ||
"attributes": { | ||
"creation_date": "########", | ||
"id": "##id-2##", | ||
"last_modification_date": "########", | ||
"path": "/", | ||
"policy": [], | ||
"user_email": "[email protected]", | ||
"user_id": "##id-2##", | ||
"user_name": "User-terraform-2" | ||
}, | ||
"sensitive_attributes": [], | ||
"private": "bnVsbA==" | ||
} | ||
] | ||
} | ||
], | ||
"check_results": "########" | ||
} |
18 changes: 18 additions & 0 deletions
18
...am_resources/TF001_user_resource_with_aksk_attributes_ok/step2.user_resource_update_ok.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "outscale_user" "user-1" { | ||
user_name = "User-terraform-11" | ||
user_email = "[email protected]" | ||
path = "/terraform_update/" | ||
} | ||
|
||
|
||
resource "outscale_user" "user-2" { | ||
user_name = "User-terraform-2" | ||
} | ||
|
||
resource "outscale_access_key" "access_key_eim01" { | ||
user_name = outscale_user.user-2.user_name | ||
state = "ACTIVE" | ||
expiration_date = "2028-01-01" | ||
depends_on=[outscale_user.user-2] | ||
} | ||
|
Oops, something went wrong.