Comments (1)
Exemplos da doc:
#!/bin/bash
# Set command paths.
ECHO=/bin/echo
# Make sure that the parameters are specified.
if [ -z "$1" ]; then
$ECHO "Usage: $0 <hostname>"
exit 1
fi
# Get arguments
url=$1
read -p "Test hosting_services resources for $url? (Y/n)" -n 1
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo -e "\nBegin test of $url\n"
#-------------------------
# Test Platform Operations
#-------------------------
echo -e "\nTesting platform operations\n"
echo -e "---------------------------\n"
echo -e "\nList second, third and fourth platforms\n\n"
curl -i -X GET -d "http://$url/hosting_platform?row_count=3&offset=1"
# Site test example: curl -i -X POST -d "url=test3.sfyn.office.koumbit.net&data[platform]=619&data[profile]=51&data[client]=851" "http://$url/hosting_site"
#-----------------------
# Test Client Operations
#-----------------------
echo -e "\nTesting client operations\n"
echo -e "-------------------------\n"
echo -e "\nCreate client named Popo\n\n"
curl -i -X POST -d "name=Popo" "http://$url/hosting_client"
echo -e "\nRetrieve client named Popo\n\n"
curl -i -X GET "http://$url/hosting_client/popo.json"
echo -e "\nChange client Popo's name to Coconut\n\n"
curl -i -X PUT -d "data[title]=Coconut" "http://$url/hosting_client/popo"
echo -e "\nRetrieve all sites for client Coconut\n\n"
curl -i -X POST -d "nid=coconut" "http://$url/hosting_client/sites"
echo -e "\nDisable all sites for client Coconut\n\n"
curl -i -X POST -d "nid=coconut" "http://$url/hosting_client/disable_sites"
echo -e "\nEnable all sites for client Coconut\n\n"
curl -i -X POST -d "nid=coconut" "http://$url/hosting_client/enable_sites"
echo -e "\nDelete client Coconut\n\n"
curl -i -X DELETE "http://$url/hosting_client/coconut"
# Finish up the testing
echo -e "\nCompleted test of $url\n"
else
echo -e "\nAborted test of $url\n"
exit
fi
from sites.
Related Issues (20)
- Nos envios dos emails, só fazer o return se o usuário existir. HOT 5
- Novo Gate para monitores
- página de chamados para administradores
- Implementar upload de arquivo nos chamados HOT 1
- Parar de enviar todo e qualquer email para o reply.to
- Corrigir url do chamado que vai no email (exemplo: https://sites.fflch.usp.br//chamados/213/172) está com udas barras HOT 2
- trocar send para queue no envio dos emails
- Força https com laravel-tools
- Link do logout só funciona se usuário estiver na index, nas outras páginas não
- Enviar emails como cópia oculta
- Datas dos chamados estão com timezone "errado"
- mandar email para solicitante depos que site é aprovado
- Fazer um filtro para os sites não aprovados HOT 1
- Criação de seed e fakers
- Retomar as funções de integração com o Aegir
- Dar a possibilidade do admin deletar uma solicitação de site (pois a opção de delete atualmente só aparece se o site está aprovado) HOT 1
- Dar a possibilidade ao admin voltar o status de um site para Solicitado - útil para quando a task falhar no aegir e quisermos repetir a task
- Dar o possibilidade de restore de backup para o responsável do site
- Atualização para Laravel 8
- Template do e-mail para mudança de responsável
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 sites.