Comments (1)
Name of Tester: Jason Coffman (@jasoncoffman)
Date of Test: 26 August 2020
Title of Test: Test Partial Suspension for Spinnaker Accounts - ECS & Lambda
Spinnaker Version: 1.21.4
Plugin Version: 0.0.1
Status: PASS
Step 1:
Create Spinnaker Account for EC2, ECS, and Lambda by creating a response.json
file with the below content to be served via the Golang test server
{
"SpinnakerAccounts": [
{
"AccountId": "111122223333",
"SpinnakerAccountName": "isengard-2",
"Regions": [
"us-west-2"
],
"SpinnakerStatus": "ACTIVE",
"SpinnakerAssumeRole": "role/spinnakerManaged",
"SpinnakerProviders": [
"ecs", "lambda", "ec2"
],
"SpinnakerId": "spinnaker1",
"CreatedAt": "1598026448909979587",
"UpdatedAt": "1598027546352337694"
}
],
"Pagination": {
"NextUrl": ""
}
}
Step 2:
run curl http://localhost:7002/credentials
to verify account creation
Expected:
Account is created with ECS and EC2 enabled
Output:
[
{
"accountId": "111122223333",
"accountType": "isengard-2",
"challengeDestructiveActions": false,
"cloudProvider": "aws",
"environment": "isengard-2",
"name": "isengard-2",
"permissions": {},
"primaryAccount": false,
"providerVersion": "v1",
"requiredGroupMembership": [],
"type": "aws"
},
{
"accountId": "111122223333",
"accountType": "ecs",
"challengeDestructiveActions": false,
"cloudProvider": "ecs",
"environment": "isengard-2",
"name": "isengard-2-ecs",
"permissions": {},
"primaryAccount": false,
"providerVersion": "v1",
"requiredGroupMembership": [],
"type": "ecs"
}
]
Step 3:
Edit Spinnaker Account to only support EC2 by editing the response.json
file with the below content to be served via the Golang test server
{
"SpinnakerAccounts": [
{
"AccountId": "111122223333",
"SpinnakerAccountName": "isengard-2",
"Regions": [
"us-west-2"
],
"SpinnakerStatus": "ACTIVE",
"SpinnakerAssumeRole": "role/spinnakerManaged",
"SpinnakerProviders": [
"ec2"
],
"SpinnakerId": "spinnaker1",
"CreatedAt": "1598026448909989587",
"UpdatedAt": "1598027546352397694"
}
],
"Pagination": {
"NextUrl": ""
}
}
Step 4:
run curl http://localhost:7002/credentials
to verify account deactivation
Expected:
There will be a single account with type: aws
Output:
[
{
"accountId": "111122223333",
"accountType": "isengard-2",
"challengeDestructiveActions": false,
"cloudProvider": "aws",
"environment": "isengard-2",
"name": "isengard-2",
"permissions": {},
"primaryAccount": false,
"providerVersion": "v1",
"requiredGroupMembership": [],
"type": "aws"
}
]
from aws-account-registration-plugin-spinnaker.
Related Issues (20)
- Activate Spinnaker Account - EC2, ECS, Lambda - Sandbox Instance
- Activate and Suspend Spinnaker Account - EC2, ECS, Lambda - Production Instance
- Release action does not create an array for plugins.json
- Test Partial Activation for Spinnaker Accounts - EC2 HOT 1
- Test Incremental Activation for Spinnaker Accounts - EC2 HOT 1
- Test Suspension of Non-Existent Spinnaker Account HOT 1
- Test Multiple Activations for Same Spinnaker Accounts - EC2, ECS, Lambda HOT 1
- Test Multiple Suspensions for Same Spinnaker Accounts - EC2, ECS, Lambda HOT 1
- Test Lambda Function Deployment via Deck UI
- Test EC2 Application Deployment via Spinnaker Pipeline
- Test ECS Fargate Application Deployment via Spinnaker Pipeline
- Test Sigv4 Signature on Requests Sent
- Test Activation for All Spinnaker Accounts - EC2, ECS & Lambda
- Test Suspension for All Spinnaker Accounts - EC2, ECS, Lambda
- Test deployment from Deck for non-existent account
- Implement connection timeout HOT 1
- More logs and potential issue with UpdatedAt.gt/lastSyncTime or initial load HOT 2
- clouddriver issue after removing aws accounts
- Use AccountCredentialsRepository instead of LazyLoadCredentialsRepository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-account-registration-plugin-spinnaker.